Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-14724

[Ruby] gem install red-arrow fails on debian because <thrift> .pc is not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • 6.0.0
    • None
    • Ruby

    Description

      The gem red-arrow (via red_parquet) on debian fails to install after following the published instructions to install the dependent libarrow-dev and libarrow-glib-dev packages.

      The build error is in the makefile creation stage in extconf
      .pc doesn't exist: <thrift> (PackageConfig::NotFoundError)

      Full error:

      #8 35.24 *** extconf.rb failed ***
      #8 35.24 Could not create Makefile due to some reason, probably lack of necessary
      #8 35.24 libraries and/or headers.  Check the mkmf.log file for more details.  You may
      #8 35.24 need configuration options.
      #8 35.24
      #8 35.24 Provided configuration options:
      #8 35.24        --with-opt-dir
      #8 35.24        --without-opt-dir
      #8 35.24        --with-opt-include
      #8 35.24        --without-opt-include=${opt-dir}/include
      #8 35.24        --with-opt-lib
      #8 35.24        --without-opt-lib=${opt-dir}/lib
      #8 35.24        --with-make-prog
      #8 35.24        --without-make-prog
      #8 35.24        --srcdir=.
      #8 35.24        --curdir
      #8 35.24        --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
      #8 35.24        --enable-debug-build
      #8 35.24        --disable-debug-build
      #8 35.24        --enable-debug-build
      #8 35.24        --disable-debug-build
      #8 35.24        --with-pkg-config
      #8 35.24        --without-pkg-config
      #8 35.24        --with-override-variables
      #8 35.24        --without-override-variables
      #8 35.24 /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:389:in `parse_pc': .pc doesn't exist: <thrift> (PackageConfig::NotFoundError)
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:233:in `declaration'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:178:in `requires_private'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:509:in `block in all_required_packages'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:259:in `collect_requires'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:265:in `block in collect_requires'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:260:in `each'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:260:in `collect_requires'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:508:in `all_required_packages'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:283:in `collect_cflags'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:191:in `cflags_only_other'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:569:in `cflags_only_other'
      #8 35.24        from /usr/local/bundle/gems/pkg-config-1.4.6/lib/pkg-config.rb:616:in `have_package'
      #8 35.24        from /usr/local/bundle/gems/glib2-3.4.9/lib/mkmf-gnome.rb:458:in `required_pkg_config_package'
      #8 35.24        from extconf.rb:41:in `<main>'
      

      I have included a Dockefile (called Dockerfile.test) that recreates the issue and the log of the output from docker build -f Dockerfile.test .

      Attachments

        1. docker_build.log
          8 kB
          Will Spurgin
        2. Dockerfile.test
          1 kB
          Will Spurgin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wspurgin Will Spurgin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: