Installing Redmine 2.0 : no such file to load -- openssl
Added by Craig Efrein over 12 years ago
When trying to migrate my database, I am getting this error. Thank you in advance for your assistance.
Centos 6.2 64bit
openssl and openssl-devel are installed.
[root@redmine redmine]# RAILS_ENV=production rake db:migrate --trace ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment WARNING: no SSL support found. Will not be able to fetch HTTPS URLs! rake aborted! no such file to load -- openssl /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `block in require' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/session/cookie.rb:1:in `<top (required)>' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `block in require' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:236:in `load_dependency' /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.5/lib/active_support/dependencies.rb:251:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/actionpack-3.2.5/lib/action_dispatch/middleware/session/cookie_store.rb:4:in `<top (required)>' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application/configuration.rb:140:in `const_get' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application/configuration.rb:140:in `session_store' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:268:in `block in default_middleware_stack' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:232:in `tap' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:232:in `default_middleware_stack' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/engine.rb:469:in `app' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application/finisher.rb:31:in `block in <module:Finisher>' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `instance_exec' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/initializable.rb:30:in `run' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/initializable.rb:55:in `block in run_initializers' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/initializable.rb:54:in `run_initializers' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:136:in `initialize!' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/railtie/configurable.rb:30:in `method_missing' /opt/redmine/config/environment.rb:14:in `<top (required)>' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:103:in `require' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:103:in `require_environment!' /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.5/lib/rails/application.rb:292:in `block (2 levels) in initialize_tasks' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain' /usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain' /usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run' /usr/local/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>' /usr/local/bin/rake:19:in `load' /usr/local/bin/rake:19:in `<main>' Tasks: TOP => db:migrate => environment
Replies (2)
RE: Installing Redmine 2.0 : no such file to load -- openssl - Added by Craig Efrein over 12 years ago
Go to the Ruby source and run the following.
cd ext/openssl
Run the command one after the others.
ruby extconf.rb
make
sudo make install
Hopefully no one else will loose an hour on this.
RE: Installing Redmine 2.0 : no such file to load -- openssl - Added by Daniel Alonso over 8 years ago
Craig Efrein, you saved my fucking day!