Ruby on Rails: ‘require_frameworks’: no such file to load — net/https (RuntimeError)
May 28, 2010 | ruby / ruby on railsauthor: Karol Zielinski | comments: 10 | views: 1847
Tags: ruby on rails, ssl
I started to learn Ruby on Rails. First impression (based on screencasts and presentations) was very good. Next… I wanted to try it by myself. And first trouble… “initializer.rb:271:in `require_frameworks’: no such file to load — net/https (RuntimeError)”
However since the beginning…
sudo apt-get install ruby
sudo apt-get install rubygems
gem install rails
rails myappname cd myappname ruby script/server
And… first error. What can I see on console?
=> Booting WEBrick => Rails 2.3.8 application starting on http://0.0.0.0:3000 /home/user/.gem/ruby/1.8/gems/rails-2.3.8/lib/initializer.rb:271:in `require_frameworks': no such file to load -- net/https (RuntimeError) (...)
What is wrong?
I don’t have the Ruby SSL support installed.
What can I do?
sudo apt-get install libopenssl-ruby1.8
and that’s all. Everything works fine right now.
Hello, I'm Karol Zielinski, internet evangelist, an entrepreneur, project manager and a web developer from Gdynia, Poland. I like creative design, good advertisement, social media and all kind of stuff around the web.
May 28, 2010, 5:37 am
[...] wiadomości z tego serwisu Follow us on Twitter 49 śledzących RSS Feed 309 czytelników Ruby on Rails: 'require_frameworks': no such file to load — net/https (RuntimeError) 1 głosuj! Rozpocząłem właśnie swoją przygodę z Ruby on Rails. Pierwsze wrażenie [...]
June 4, 2010, 8:16 pm
thanks, was running into this problem too, and this fixed it. but how you went from “net/https” to “sudo apt-get install libopenssl-ruby1.8″ remains a mystery to me!
June 9, 2010, 1:55 am
Chalk it up to idiot policies for splitting packages by linux maintainers.
rake and irb aren’t included in the based ruby package ubuntu, really?
June 9, 2010, 10:45 pm
Just direct to the point… a lot of thanx
June 12, 2010, 8:25 am
lot of thanx…………..
June 15, 2010, 6:41 am
lot of thanx…………..
June 18, 2010, 11:10 pm
Gracias!!!! no entendia porque mi error.
July 30, 2010, 2:12 pm
thanks
August 23, 2010, 11:07 am
You saved my bacon! Perfect fix. THANK YOU! (Where can send the beer?)
August 23, 2010, 11:09 am
Note: This error cropped up after upgrading to Ubuntu 10.04 LTS. Apparently the upgrade manager thought this library should be removed along with a couple hundred other that were legitimately obsoleted. My site came back up after adding this library back.