no such file to load -- openssl (RuntimeError) 解决

2148阅读 0评论2012-03-08 sbc19861004
分类:Python/Ruby

给自己做的LFS按转redmine,config的时候报错:

no such file to load -- openssl

openssl我是安装了的,不过路径不是标准路径,而是装在默认的/usr/local/ssl下。查看ruby的安装目录,没有ssl相关的信息。于是去源码包查看,发现ext/openssl目录,执行:

/home/ruby/bin/ruby extconf.rb --with-openssl-include=/usr/local/ssl/include/ --with-openssl-lib=/usr/local/ssl/lib
make
make install 

再去redmine下执行,问题解决。
上一篇:gdb 子进程 多进程 fork 调试
下一篇:nginx mp4 streaming 一个bug的全程解