`require ': File not found zlib.so

I installed ruby โ€‹โ€‹and ruby โ€‹โ€‹gems on the Arm architecture. The ruby โ€‹โ€‹binary works in Arm dns323, but when I run the gem binary, I have an error:

/opt/lib/ruby/1.9.1/rubygems/spec_fetcher.rb:1:in `require ': file not found - / opt / lib / ruby โ€‹โ€‹/ 1.9.1 / arm-linux / zlib.so (LoadError)

The only command that works:

gem environment

Of course zlib.so exists in this folder!

If you have an idea about this problem, please help me!

+3
source share
1 answer

Try setting the RUBYLIB environment variable. Make sure that it contains the directory where zlib.so is located. I also run Ruby on ARM, this is what I use:

export RUBYLIB=/usr/lib/ruby/2.0.0/arm-linux-eabi:/usr/lib/ruby/2.0.0/
0
source

All Articles