kou commented on issue #39400:
URL: https://github.com/apache/arrow/issues/39400#issuecomment-1873562524

   Ah, sorry. The command line is wrong:
   
   ```console
   $ BUNDLE_GEMFILE=../c_glib/Gemfile bundle exec ../c_glib/test/run-test.sh
   ```
   
   We may need to improve `test/run-test.sh` for macOS and rbenv:
   
   ```diff
   diff --git a/c_glib/test/run-test.sh b/c_glib/test/run-test.sh
   index 33e9fbf85d..afa8aed4ed 100755
   --- a/c_glib/test/run-test.sh
   +++ b/c_glib/test/run-test.sh
   @@ -34,14 +34,14 @@ for module in "${modules[@]}"; do
      module_build_dir="${build_dir}/${module}"
      if [ -d "${module_build_dir}" ]; then
        LD_LIBRARY_PATH="${module_build_dir}:${LD_LIBRARY_PATH}"
   +    DYLD_LIBRARY_PATH="${module_build_dir}:${DYLD_LIBRARY_PATH}"
      fi
    done
    export LD_LIBRARY_PATH
   +export DYLD_LIBRARY_PATH
    
    if [ "${BUILD}" != "no" ]; then
   -  if [ -f "Makefile" ]; then
   -    make -j8 > /dev/null || exit $?
   -  elif [ -f "build.ninja" ]; then
   +  if [ -f "build.ninja" ]; then
        ninja || exit $?
      fi
    fi
   @@ -59,4 +59,9 @@ for module in "${modules[@]}"; do
    done
    export GI_TYPELIB_PATH
    
   -${GDB} ruby ${test_dir}/run-test.rb "$@"
   +if type rbenv > /dev/null 2>&1; then
   +  RUBY="$(rbenv which ruby)"
   +else
   +  RUBY=ruby
   +fi
   +${GDB} "${RUBY}" ${test_dir}/run-test.rb "$@"
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to