Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7687669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:45:17+00:00 2026-05-31T19:45:17+00:00

When I want to execute Rails 3 console, it throws this: $ script/rails c

  • 0

When I want to execute Rails 3 console, it throws this:

$ script/rails c
/usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (Load Error)

I tried to install libreadline-dev:

$ sudo wajig install libreadline-dev
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
Se instalarán los siguientes paquetes extras:
  libncurses5-dev libreadline6-dev
Se instalarán los siguientes paquetes NUEVOS:
  libncurses5-dev libreadline-dev libreadline6-dev
0 actualizados, 3 se instalarán, 0 para eliminar y 6 no actualizados.
Necesito descargar 1799kB de archivos.
Se utilizarán 7266kB de espacio de disco adicional después de esta operación.
¿Desea continuar [S/n]? 
Des:1 http://mx.archive.ubuntu.com/ubuntu/ lucid/main libncurses5-dev 5.7+20090803-2ubuntu3 [1564kB]
Des:2 http://mx.archive.ubuntu.com/ubuntu/ lucid/main libreadline6-dev 6.1-1 [234kB]
Des:3 http://mx.archive.ubuntu.com/ubuntu/ lucid/main libreadline-dev 6.1-1 [904B]
Descargados 1799kB en 3seg. (477kB/s)
Seleccionando el paquete libncurses5-dev previamente no seleccionado.
(Leyendo la base de datos ...  00%
225006 ficheros y directorios instalados actualmente.)
Desempaquetando libncurses5-dev (de .../libncurses5-dev_5.7+20090803-2ubuntu3_i386.deb) ...
Seleccionando el paquete libreadline6-dev previamente no seleccionado.
Desempaquetando libreadline6-dev (de .../libreadline6-dev_6.1-1_i386.deb) ...
Seleccionando el paquete libreadline-dev previamente no seleccionado.
Desempaquetando libreadline-dev (de .../libreadline-dev_6.1-1_i386.deb) ...
Procesando disparadores para man-db ...
Procesando disparadores para install-info ...
Configurando libncurses5-dev (5.7+20090803-2ubuntu3) ...
Configurando libreadline6-dev (6.1-1) ...
Configurando libreadline-dev (6.1-1) ...

But when I tried again,it throws tha same again:

$ script/rails c
/usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (LoadError)
    from /usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands/console.rb:3:in `require'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands/console.rb:3:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands.rb:20:in `require'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands.rb:20:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Then, I try to install readline using rvm:

# rvm pkg install readline
Fetching readline-5.2.tar.gz to /usr/local/rvm/archives
Extracting readline-5.2.tar.gz to /usr/local/rvm/src
Applying patch '/usr/local/rvm/patches/readline-5.2/shobj-conf.patch'...
Configuring readline in /usr/local/rvm/src/readline-5.2.
Compiling readline in /usr/local/rvm/src/readline-5.2.
Installing readline to /usr/local/rvm/usr
Fetching readline-6.2.tar.gz to /usr/local/rvm/archives
Extracting readline-6.2.tar.gz to /usr/local/rvm/src
Applying patch '/usr/local/rvm/patches/readline-6.2/patch-shobj-conf.diff'...
Configuring readline in /usr/local/rvm/src/readline-6.2.
Compiling readline in /usr/local/rvm/src/readline-6.2.
Installing readline to /usr/local/rvm/usr

But again the same:

$ script/rails c
/usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/irb/completion.rb:9:in `require': no such file to load -- readline (LoadError)
    from /usr/local/rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/irb/completion.rb:9:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands/console.rb:3:in `require'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands/console.rb:3:in `<top (required)>'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands.rb:20:in `require'
    from /usr/local/rvm/gems/ruby-1.9.2-p318/gems/railties-3.0.4/lib/rails/commands.rb:20:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

What else should I try?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T19:45:19+00:00Added an answer on May 31, 2026 at 7:45 pm

    I must check rvm requirements and ensure that all packages were installed.
    Then reintall ruby:

    rvm reinstall 1.9.2
    Removing /usr/local/rvm/src/ruby-1.9.2-p318...
    Removing /usr/local/rvm/rubies/ruby-1.9.2-p318...
    Removing default ruby interpreter
    Removing ruby-1.9.2-p318 aliases...
    Removing ruby-1.9.2-p318 wrappers...
    Removing ruby-1.9.2-p318 environments...
    Removing ruby-1.9.2-p318 binaries...
    Installing Ruby from source to: /usr/local/rvm/rubies/ruby-1.9.2-p318, this may take a while depending on your cpu(s)...
    ruby-1.9.2-p318 - #fetching 
    ruby-1.9.2-p318 - #extracting ruby-1.9.2-p318 to /usr/local/rvm/src/ruby-1.9.2-p318
    ruby-1.9.2-p318 - #extracted to /usr/local/rvm/src/ruby-1.9.2-p318
    ruby-1.9.2-p318 - #configuring 
    ruby-1.9.2-p318 - #compiling 
    ruby-1.9.2-p318 - #installing 
    Removing old Rubygems files...
    Installing rubygems-1.8.18 for ruby-1.9.2-p318 ...
    Installation of rubygems completed successfully.
    ruby-1.9.2-p318 - adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
    ruby-1.9.2-p318 - #importing default gemsets (/usr/local/rvm/gemsets/)
    Install of ruby-1.9.2-p318 - #complete 
    

    And finally it works:

    $ script/rails c
    DEPRECATION WARNING: railtie_name is deprecated and has no effect. (called from <top (required)> at /home/israel/proyectos/d-Formacion/config/application.rb:7)
    /usr/local/rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.0.4/lib/action_dispatch/http/mime_type.rb:98: warning: already initialized constant PDF
    Loading development environment (Rails 3.0.4)
    1.9.2-p318 :001 > exit
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is the error I'm getting: Task not supported by 'mysql2' /Users/me/.rvm/gems/ruby-1.8.7-p352@project/gems/rails-2.3.8/lib/tasks/databases.rake:380 Here is
I want to execute this sql script inside my seed.rb LOAD DATA LOCAL INFILE
I want to have a button that, when clicked, will execute rails code. Is
I want to execute statements like (shell is bash) /# source /workspace/scripts/script.sh /workspace/scripts# source
I want to execute a php-script from php that will use different constants and
Is there a way to run processes from rails script/console in the background? I
In Rails 3, I want to run cmd prompt at windows platform using ruby
I am using Ruby on Rails. I want to create a filter field on
I want to write a script in Ruby to clean up some messed up
I'm playing around with Rails & Sinatra, and I want to execute commands on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.