`

cannot load such file -- openssl

 
阅读更多
在建立项目后,运行bundle install 的时候,忽然报错了:cannot load such file -- openssl。
解决办法:进入到ruby源码包的所在路径(我下载ruby后,解压到了:/home/naitnix/Downloads/ruby相关/ruby-1.9.3-p0),进入到该目录,然后进入ext/openssl,执行:
sudo ruby extconf.rb,然后执行:sudo  make  && sudo  make install
分享到:
评论
1 楼 jaycongwen 2012-05-17  
帮我看看啊,我刚学
wen@wen-desktop:~$ cd /home/wen/.rvm/src/ruby-1.9.3-p194/ext/openssl
wen@wen-desktop:~/.rvm/src/ruby-1.9.3-p194/ext/openssl$ ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.
wen@wen-desktop:~/.rvm/src/ruby-1.9.3-p194/ext/openssl$ ruby extconf.rb
=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff... ===
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
=== Checking for required stuff... ===
checking for openssl/ssl.h... no
=== Checking for required stuff failed. ===
Makefile wasn't created. Fix the errors above.
wen@wen-desktop:~/.rvm/src/ruby-1.9.3-p194/ext/openssl$ make
make: 没有什么可以做的为 `all'。
wen@wen-desktop:~/.rvm/src/ruby-1.9.3-p194/ext/openssl$

相关推荐

Global site tag (gtag.js) - Google Analytics