Ruby 1.9.2 and Rails 3 cannot open rails console
Apparently ubuntu and ruby don't always catch dependencies like they should.
From the first google hit (yeah, I clicked on this stack-overflow in place #2 before checking out the first result.)
Navigate to the Ruby source and enter:
sudo apt-get install libreadline5-dev
cd ext/readline
ruby extconf.rb
make
sudo make install
So, if you're on another distro, make sure you install readline somehow (source/package), then run make/install on extconf from the source. I tried what gkaykck suggested of course but got this without readline already on my system.
$ ruby extconf.rb
checking for tgetnum() in -lncurses... no
checking for tgetnum() in -ltermcap... no
checking for tgetnum() in -lcurses... no
checking for readline/readline.h... no
checking for editline/readline.h... no
Cannot launch Rails console
Try again with a normal user, after installing RVM as a normal user.
Installing RVM as root is a pain as far as I experienced, I particularly had paths issues.
Error starting rails server 3 with Ruby 1.9.3 and Rails 3.2.13
Either you've misspelled a resources declaration in your config/routes.rb
file or a gem you're using has during a generator. Do a search for resoures
in said file and replace it with resources
.
That's what this error is referring to:
undefined method 'resoures'
getting error messsage when starting rails console:
You need an environment called "development," not "Listings_development." Rename your environment and try starting the console again.
Console not loading server
rails console
isn't supposed to run the server. It's the console, and you just mess with it, typing stuff inside and getting replies from it via on-screen text messages.
Everything's working fine, you may continue venturing into the mysterious and rewarding world of Ruby on Rails development.
Rails console not working with redgreen gem
Specifying in my Gemfile:
gem 'test-unit', '1.2.3'
...seems to work for me with 1.9.3 and Rails 3.2.8. It would, however, be nice to use this with a more recent version of test-unit (looks like 2.5.2 is the latest right now)...
Rails- Cannot Load Error
You need at least Ruby version 1.9.3 or above to use Rails 4 I believe.
Related Topics
How to Avoid Nomethoderror For Nil Elements When Accessing Nested Hashes
What Does the "||=" Operand Stand for in Ruby
How to Remove Blank Elements from an Array
How to Read Lines of a File in Ruby
Ruby: Easiest Way to Filter Hash Keys
How to Do Static Content in Rails
How to Get Filename Without Extension from File Path in Ruby
How to Create a Sha1 Hash in Ruby
How to Get Ruby/Homebrew/Rvm to Work on Yosemite
What Does Class_Eval ≪≪-"End_Eval", _File_, _Line_ Mean in Ruby
Why Are Methods in Ruby Documentation Preceded by a Hash Sign
How to Use Define_Method to Create Class Methods