Watson1978 opened a new issue, #46235:
URL: https://github.com/apache/arrow/issues/46235

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   When I have not installed pkg-config package in my environment,  it fails to 
install `red-arrow`.
   
   ```
   $ brew list pkg-config
   Error: No such keg: /opt/homebrew/Cellar/pkg-config
   
   $ gem install red-arrow
   Building native extensions. This could take a while...
   ERROR:  Error installing red-arrow:
        ERROR: Failed to build gem native extension.
   
       current directory: 
/Users/watson/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/red-arrow-19.0.1/ext/arrow
   /Users/watson/.rbenv/versions/3.4.2/bin/ruby extconf.rb
   checking --enable-debug-build option... no
   checking C++ compiler... clang++
   checking g++ version... 17 (gnu++17)
   checking for --enable-debug-build option... no
   checking for -Wall option to compiler... yes
   checking for -Wcast-align option to compiler... yes
   checking for -Wextra option to compiler... no
   checking for -Wformat=2 option to compiler... yes
   checking for -Winit-self option to compiler... yes
   checking for -Wlarger-than-65500 option to compiler... yes
   checking for -Wmissing-declarations option to compiler... yes
   checking for -Wmissing-format-attribute option to compiler... yes
   checking for -Wmissing-include-dirs option to compiler... yes
   checking for -Wmissing-noreturn option to compiler... yes
   checking for -Wmissing-prototypes option to compiler... yes
   checking for -Wnested-externs option to compiler... yes
   checking for -Wold-style-definition option to compiler... yes
   checking for -Wpacked option to compiler... yes
   checking for -Wp,-D_FORTIFY_SOURCE=2 option to compiler... yes
   checking for -Wpointer-arith option to compiler... yes
   checking for -Wundef option to compiler... yes
   checking for -Wout-of-line-declaration option to compiler... yes
   checking for -Wunsafe-loop-optimizations option to compiler... no
   checking for -Wwrite-strings option to compiler... yes
   checking for Homebrew... yes
   checking for Homebrew... yes
   checking for arrow version (>= 19.0.0)... no (nonexistent)
   installing 'apache-arrow' native package... succeeded
   checking for arrow version (>= 19.0.0)... no (nonexistent)
   *** extconf.rb failed ***
   Could not create Makefile due to some reason, probably lack of necessary
   libraries and/or headers.  Check the mkmf.log file for more details.  You may
   need configuration options.
   
   Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include=${opt-dir}/include
        --without-opt-include
        --with-opt-lib=${opt-dir}/lib
        --without-opt-lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/Users/watson/.rbenv/versions/3.4.2/bin/$(RUBY_BASE_NAME)
        --enable-debug-build
        --disable-debug-build
        --enable-debug-build
        --disable-debug-build
        --with-pkg-config
        --without-pkg-config
        --with-override-variables
        --without-override-variables
   
   To see why this extension failed to compile, please check the mkmf.log which 
can be found here:
   
     
/Users/watson/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/extensions/arm64-darwin-24/3.4.0/red-arrow-19.0.1/mkmf.log
   
   extconf failed, exit code 1
   
   Gem files will remain installed in 
/Users/watson/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/red-arrow-19.0.1 
for inspection.
   Results logged to 
/Users/watson/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/extensions/arm64-darwin-24/3.4.0/red-arrow-19.0.1/gem_make.out
   ```
   
   ```
   $ brew install pkg-config
   ==> Downloading https://ghcr.io/v2/homebrew/core/pkgconf/manifests/2.4.3-1
   Already downloaded: 
/Users/watson/Library/Caches/Homebrew/downloads/f938254e85413ef0d18283c9c932823434b88c0c790e04e7534e2a3e923d0588--pkgconf-2.4.3-1.bottle_manifest.json
   ==> Fetching pkgconf
   ==> Downloading 
https://ghcr.io/v2/homebrew/core/pkgconf/blobs/sha256:3feba2e952500e4ab9261ac59a19e07c310d1147e31496f62b591e4b21b68683
   Already downloaded: 
/Users/watson/Library/Caches/Homebrew/downloads/0ce8509e6e69d74b96d152a70f97dab65c83fe0e2e9287fc2ea1292c4512f968--pkgconf--2.4.3.arm64_sequoia.bottle.1.tar.gz
   ==> Pouring pkgconf--2.4.3.arm64_sequoia.bottle.1.tar.gz
   🍺  /opt/homebrew/Cellar/pkgconf/2.4.3: 27 files, 487.4KB
   ==> Running `brew cleanup pkgconf`...
   Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
   Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
   
   $ brew list pkg-config
   /opt/homebrew/Cellar/pkgconf/2.4.3/bin/bomtool
   /opt/homebrew/Cellar/pkgconf/2.4.3/bin/pkg-config
   /opt/homebrew/Cellar/pkgconf/2.4.3/bin/pkgconf
   /opt/homebrew/Cellar/pkgconf/2.4.3/include/pkgconf/ (5 files)
   /opt/homebrew/Cellar/pkgconf/2.4.3/lib/libpkgconf.6.dylib
   /opt/homebrew/Cellar/pkgconf/2.4.3/lib/pkgconfig/libpkgconf.pc
   /opt/homebrew/Cellar/pkgconf/2.4.3/lib/ (2 other files)
   /opt/homebrew/Cellar/pkgconf/2.4.3/sbom.spdx.json
   /opt/homebrew/Cellar/pkgconf/2.4.3/share/aclocal/pkg.m4
   /opt/homebrew/Cellar/pkgconf/2.4.3/share/doc/ (2 files)
   /opt/homebrew/Cellar/pkgconf/2.4.3/share/man/ (5 files)
   
   $ gem install red-arrow
   Building native extensions. This could take a while...
   Successfully installed red-arrow-19.0.1
   1 gem installed
   ```
   
   
   Is this expected behavior?
   I want an error message to let me know that `pkg-config is  mandatory tools`,
   or I hope `pkg-config` will be install automatically.
   
   ## Environment
   - Machine
     - Apple M1 Max
   - OS
     - macOS 15.5 Beta
   - Ruby
     - ruby 3.4.2 (2025-02-15 revision d2930f8e7a) +PRISM [arm64-darwin24]
   - Compiler
     - Apple clang version 17.0.0 (clang-1700.0.13.3)
   
   ## Reproduce
   ```
   $ brew uninstall pkg-config
   $ gem install red-arrow
   ```
   
   Thanks.
   
   ### Component(s)
   
   Ruby


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to