stephan-nordnes-eriksen/ruby_ship

Wrapper for gem install is not working

Opened this issue · 1 comments

When I try to run the command to install ruby gems using the wrapper script ./bin/ruby_ship_gem.sh install <gem_name> , I get the following error as output:

ERROR:  Loading command: install (LoadError)
	dlopen(/Users/jordancech/Development/dads-ruby-toolchain/bin/shipyard/darwin_ruby/lib/ruby/2.3.0/x86_64-darwin16/openssl.bundle, 0x0009): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
  Referenced from: /Users/jordancech/Development/dads-ruby-toolchain/bin/shipyard/darwin_ruby/lib/ruby/2.3.0/x86_64-darwin16/openssl.bundle
  Reason: tried: '/usr/local/opt/openssl/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/lib/libssl.1.0.0.dylib' (no such file), '/usr/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/Cellar/openssl@1.1/1.1.1l_1/lib/libssl.1.0.0.dylib' (no such file), '/usr/local/lib/libssl.1.0.0.dylib' (no such file), '/usr/lib/libssl.1.0.0.dylib' (no such file) - /Users/jordancech/Development/dads-ruby-toolchain/bin/shipyard/darwin_ruby/lib/ruby/2.3.0/x86_64-darwin16/openssl.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass
ruby: No such file or directory -- ./tools/auto_relink_dylibs.rb (LoadError)

I had gotten a similar error when I tried to install gems using a Gemfile and the Ruby Ship wrapper for bundle ./bin/ruby_ship_bundle.sh install

I did look into what os specific script the wrappers are calling, ./bin/shipyard/darwin_gem.sh and I found that when one of the arguments is install, it is attemtping to call the referenced auto_relink_dylibs.rb script, and it is indeed there in the file hierarchy.

It has been a long while since I have done anything with this project, so it is not unlikely that some of the dependencies has change.

What you can do; run $ ls /usr/local/opt/openssl/lib/ and post the response here. It seems as either you do not have openssl installed, or that the openssl dylib has changed name.