OraRails

Oracle(9i,10g)+RubyOnRails(Ver1.2.1+Apache+mongrel)の設定メモ

no such file to load -- openssl

2010-02-12 20:33:01 | Rails2.3.5 + Debian
var/www/rails1# ruby script/server
=> Booting WEBrick
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:271:in `require_frameworks': no such file to load -- openssl (RuntimeError)
`require_frameworks': no such file to load -- openssl (RuntimeError):/
となる。ググッテみたら opensslのエラーらしい


cd /usr/local/src/ruby-1.8.6-p388#
cd 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.
webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# make
make: Nothing to be done for `all'.
webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# ruby -r openssl -e
ruby: no code specified for -e
webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# ruby -r openssl -e ""
ruby: no such file to load -- openssl (LoadError)
webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# apt-get install openssl-devel
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package openssl-devel
webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# apt-get install openssl
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
ca-certificates
The following NEW packages will be installed:
openssl
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 1015kB of archives.
After unpacking 2355kB of additional disk space will be used.
Get:1 http://ftp.riken.jp etch/main openssl 0.9.8c-4etch4 [1015kB]
Fetched 1015kB in 0s (1311kB/s)
Selecting previously deselected package openssl.
(Reading database ... 31542 files and directories currently installed.)
Unpacking openssl (from .../openssl_0.9.8c-4etch4_i386.deb) ...
Creating directory /etc/ssl
Setting up openssl (0.9.8c-4etch4) ...

webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# ruby -r openssl -e ""
ruby: no such file to load -- openssl (LoadError)
webkarte9:/usr/local/src/ruby-1.8.6-p388/ext/openssl# ruby -r openssl -e
ruby: no code specified for -e
webkarte9:/usr/local/src/ruby-1.8.6-p388/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.


apt-get install gcc g++ make zlib1g-dev libreadline5-dev openssl libssl0.9.7 libssl-dev
Reading package lists... Done
Building dependency tree... Done
gcc is already the newest version.
make is already the newest version.
zlib1g-dev is already the newest version.
libreadline5-dev is already the newest version.
openssl is already the newest version.
The following extra packages will be installed:
g++-4.1 libstdc++6-4.1-dev
Suggested packages:
gcc-4.1-doc lib64stdc++6 libstdc++6-4.1-doc
The following NEW packages will be installed:
g++ g++-4.1 libssl-dev libssl0.9.7 libstdc++6-4.1-dev
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 8630kB of archives.
After unpacking 27.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.riken.jp etch/main libstdc++6-4.1-dev 4.1.1-21 [1634kB]
Get:2 http://ftp.riken.jp etch/main g++-4.1 4.1.1-21 [2615kB]
Get:3 http://ftp.riken.jp etch/main g++ 4:4.1.1-15 [1360B]
Get:4 http://ftp.riken.jp etch/main libssl-dev 0.9.8c-4etch4 [2094kB]
Get:5 http://ftp.riken.jp etch/main libssl0.9.7 0.9.7k-3.1etch2 [2286kB]
Fetched 8630kB in 3s (2226kB/s)
Preconfiguring packages ...
Selecting previously deselected package libstdc++6-4.1-dev.
(Reading database ... 31918 files and directories currently installed.)
Unpacking libstdc++6-4.1-dev (from .../libstdc++6-4.1-dev_4.1.1-21_i386.deb) ...
Selecting previously deselected package g++-4.1.
Unpacking g++-4.1 (from .../g++-4.1_4.1.1-21_i386.deb) ...
Selecting previously deselected package g++.
Unpacking g++ (from .../g++_4%3a4.1.1-15_i386.deb) ...
Selecting previously deselected package libssl-dev.
Unpacking libssl-dev (from .../libssl-dev_0.9.8c-4etch4_i386.deb) ...
Selecting previously deselected package libssl0.9.7.
Unpacking libssl0.9.7 (from .../libssl0.9.7_0.9.7k-3.1etch2_i386.deb) ...
Setting up libssl-dev (0.9.8c-4etch4) ...
Setting up libssl0.9.7 (0.9.7k-3.1etch2) ...

Setting up libstdc++6-4.1-dev (4.1.1-21) ...
Setting up g++-4.1 (4.1.1-21) ...
Setting up g++ (4.1.1-15) ...

完了


最新の画像もっと見る