Rails 2.02

Ciao a tutti,
ho aggiornato rails alla versione 2.02. Creo la mia applicazione ma
quando vado ad avviare webrick mi da questo errore:
ruby script/server
=> Booting WEBrick…
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:159:in
require_frameworks': no such file to load -- openssl (RuntimeError) from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:88:inprocess’
from
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:in send' from /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:49:inrun’
from /home/andrea/blog/config/environment.rb:13
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
/usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:496:in
require' from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/dependencies.rb:342:innew_constants_in’
… 7 levels…
from
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:39
from
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from script/server:3

prima di tutto

sudo gem install mongrel

che è un server più potente, poi casomai riporta l’eventuale errore

=> Booting WEBrick…
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/initializer.rb:159:in
`require_frameworks’: no such file to load – openssl (RuntimeError)
from

ti manca la libreria openssl di ruby
mi e’successo anche a me su un server linux
dopo aver installato e compilato ruby da codice sorgente
e installato rails 2.0.2
ho provato a far partire WEBrick (anche con mongrel) mi dava
quell’ errore

soluzione:

vai nella dir dei sorgenti di ruby

cd ext
cd openssl
ruby extconf.rb
make
make install

ciao
Alessandro Batisti

Ho provato a fare il make ma mi da questo errore:

make
cc -I. -I/usr/lib/ruby/1.8/i486-linux -I/usr/lib/ruby/1.8/i486-linux -I.
-fPIC -fno-strict-aliasing -g -O2 -fPIC -c foo.c
foo.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘not’
make: *** [foo.o] Error 1

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs