Project

General

Profile

Redmine 2.2.3 - with error "readline (LoadError)"

Added by Quang T about 11 years ago

Hi, this is first time I install Redmine, also first install ruby, rubygems. I have got prolem with output

[root@centos redmine]# bundle exec rails console production
/usr/local/ruby/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
        from /usr/local/ruby/lib/ruby/1.8/irb/completion.rb:10
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/commands/console.rb:3:in `require'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/commands/console.rb:3
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:38:in `require'
        from /usr/local/ruby/lib/ruby/gems/1.8/gems/railties-3.2.12/lib/rails/commands.rb:38
        from script/rails:6:in `require'
        from script/rails:6

And here my enviroment

[root@centos redmine]# gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.0
  - RUBY VERSION: 1.8.7 (2008-05-31 patchlevel 0) [i686-linux]
  - INSTALLATION DIRECTORY: /usr/local/ruby/lib/ruby/gems/1.8
  - RUBY EXECUTABLE: /usr/local/ruby/bin/ruby
  - EXECUTABLE DIRECTORY: /usr/local/ruby/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-linux
  - GEM PATHS:
     - /usr/local/ruby/lib/ruby/gems/1.8
     - /root/.gem/ruby/1.8
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

The content of config/database.yml

production:
  adapter: mysql
  database: redmine
  host: localhost
  username: root
  password: "12312311" 
  encoding: utf8
  socket: /var/lib/mysql/mysql.sock

I don't know way to solve this, please help me. If I missing anythings about infos, please tell me, I will post at here