开发者

`require': File not found zlib.so

I've installed ruby and r开发者_Python百科uby gems on an Arm architecture. On Arm dns323, the ruby binary works, 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 is:

gem environment

Of course, zlib.so exists in that folder!

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


Try setting the RUBYLIB environment variable. Make sure it includes the directory in which 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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜