0
ruby -e 'require "digest/md5"'

抛出错误:

<internal:lib/rubygems/custom_require>:29:in `require': libcrypto.so.0.9.8: cannot open shared object file: No such file or directory - /opt/local/lib/ruby/1.9.1/armv5tel-linux-eabi/digest/md5.so (LoadError)
    from <internal:lib/rubygems/custom_require>:29:in `require'
    from -e:1:in `<main>'

知道如何将 Ruby 链接到加密库吗?

尝试在 QNAP NAS 服务器上运行 Ruby on Rails。

操作系统是ARM Linux。

编辑:

试图使用

export LD_LIBRARY_PATH=/share/MD0_DATA/.qpkg/Optware/local/lib/ruby/1.9.1/armv5tel-linux-eabi/digest:$LD_LIBRARY_PATH
export RUBYLIB=/share/MD0_DATA/.qpkg/Optware/local/lib/ruby/1.9.1/armv5tel-linux-eabi/digest:$RUBYLIB

但我不知道我是否做得对。

解决了

ln -s /share/MD0_DATA/.qpkg/Optware/lib/libcrypto.so.0.9.8 /lib/libcrypto.so.0.9.8

成功了。

4

1 回答 1

0

按照运行提供的说明rvm requirements为我解决了这个问题。

于 2012-10-27T21:10:53.400 回答