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
成功了。