I've just tried installing Ruby on Rails via the RailsInstaller for Windows. All went absolutely fine, until I tried creating my first app. Basically I run
rails new 'first_app'
and it creates all the appropriate files but throws up this error message when trying to run 'bundle install'
C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:
36:in `require': 193: %1 is not a valid Win32 application. - C:/RailsInstaller
/Ruby1.9.3/lib/ruby/1.9.1/i386-mingw32/openssl.so (LoadError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/openssl.rb:17:in `<top (
required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/net/https.rb:22:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/custo
m_require.rb:36:in `require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:316:in `connection_for'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:368:in `request'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:203:in `fetch_http'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:213:in `fetch_http'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/remot
e_fetcher.rb:231:in `fetch_path'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:265:in `load_specs'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:231:in `block in list'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:227:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:227:in `list'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:150:in `find_matching_with_errors'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/spec_
fetcher.rb:89:in `fetch_with_errors'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:110:in `find_gems_with_sources'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:228:in `find_spec_by_name_and_version'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/depen
dency_installer.rb:259:in `install'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:121:in `block in execute'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:115:in `each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nds/install_command.rb:115:in `execute'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd.rb:278:in `invoke'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd_manager.rb:147:in `process_args'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/comma
nd_manager.rb:117:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/site_ruby/1.9.1/rubygems/gem_r
unner.rb:65:in `run'
from C:/RailsInstaller/Ruby1.9.3/bin/gem:21:in `<main>'
I've tried re-installing but it still pulls up that error.
The relevant error message here is 193: %1 is not a valid Win32 application.
Checkout this answer for a previous question about the same; it explains why the problem happens, and provides suggestions as to how to fix it.
The person who provided the answer - Luis Lavena - has worked extensively to make ruby work well on windows, and is the creator of Ruby Installer for Windows.
Related
I'm upgrading Ruby from version 2.5.1 to 2.7.2.
So, I'm Upgrading Cucumber from 3.1.2 to the latest version 8.0.0.rc.1
I'm just learning Ruby as I work, so I'm sorry if I ask any question that is too easy for you.
The stack for the error is:
loading content yaml support/data/static_content.yaml
loading environment yaml support/environments/stage.yaml
cannot load such file -- cucumber/formatter/legacy_api/ast (LoadError)
/home/acabista/Documents/automations/web-automation/cucumber/support/patches/rerun_file.rb:2:in `require'
/home/acabista/Documents/automations/web-automation/cucumber/support/patches/rerun_file.rb:2:in `<top (required)>'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/glue/registry_and_more.rb:123:in `require'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/glue/registry_and_more.rb:123:in `load_code_file'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:145:in `load_file'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:82:in `block in load_files!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:81:in `each'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:81:in `load_files!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime.rb:274:in `load_step_definitions'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime.rb:74:in `run!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/cli/main.rb:29:in `execute!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/bin/cucumber:9:in `<top (required)>'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/cucumber:23:in `load'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/cucumber:23:in `<main>'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/ruby_executable_hooks:24:in `eval'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/ruby_executable_hooks:24:in `<main>'
[acabista#acabista cucumber]$ ./start_auto.sh
loading content yaml support/data/static_content.yaml
loading environment yaml support/environments/stage.yaml
cannot load such file -- cucumber/formatter/legacy_api/ast (LoadError)
/home/acabista/Documents/automations/web-automation/cucumber/support/patches/rerun_file.rb:2:in `require'
/home/acabista/Documents/automations/web-automation/cucumber/support/patches/rerun_file.rb:2:in `<top (required)>'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/glue/registry_and_more.rb:123:in `require'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/glue/registry_and_more.rb:123:in `load_code_file'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:145:in `load_file'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:82:in `block in load_files!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:81:in `each'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime/support_code.rb:81:in `load_files!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime.rb:274:in `load_step_definitions'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/runtime.rb:74:in `run!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/lib/cucumber/cli/main.rb:29:in `execute!'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/gems/cucumber-8.0.0/bin/cucumber:9:in `<top (required)>'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/cucumber:23:in `load'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/cucumber:23:in `<main>'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/ruby_executable_hooks:24:in `eval'
/home/acabista/.rvm/gems/ruby-2.7.2#web-automation/bin/ruby_executable_hooks:24:in `<main>'
These are the first 2 lines from the file rerun_file.rb that is throwing the error:
require 'cucumber/formatter/io'
require 'cucumber/formatter/legacy_api/ast'
And I just use Ast in two parts of my code:
!(Cucumber::Formatter::LegacyApi::Ast::ScenarioOutline === feature_element)
Cucumber::Ast::OutlineTable::ExampleRow === table_row
I can't post more of the code because it's proprietary.
I already tried some other things that I found here in stackoverflow but nothing seems to work, and I really want to upgrade Cucumber, so going back to 3.1.2 is not a fix. How can I do that?
while generating controllers, I am getting this error message:
Leticias-MacBook-Pro:portfolio Tish$ rails g controller welcome index about music loops projects
/Users/Tish/.rvm/gems/ruby-2.3.1/gems/sqlite3-1.3.12/lib/sqlite3.rb:6:in `require': incompatible library version - /Users/Tish/.rvm/gems/ruby-2.3.1/gems/sqlite3-1.3.12/lib/sqlite3/sqlite3_native.bundle (fatal)
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/sqlite3-1.3.12/lib/sqlite3.rb:6:in `rescue in <top (required)>'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/sqlite3-1.3.12/lib/sqlite3.rb:2:in `<top (required)>'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `require'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:91:in `block (2 levels) in require'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `each'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:86:in `block in require'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `each'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler/runtime.rb:75:in `require'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/bundler-1.13.6/lib/bundler.rb:106:in `require'
from /Users/Tish/Projects/portfolio/config/application.rb:7:in `<top (required)>'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application.rb:82:in `require'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application.rb:82:in `preload'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application.rb:143:in `serve'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application.rb:131:in `block in run'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application.rb:125:in `loop'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application.rb:125:in `run'
from /Users/Tish/.rvm/gems/ruby-2.3.1/gems/spring-2.0.0/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
Nothing I have tried makes it stop. I have reinstalled every gem it complains about, but the changes do not persist. I've followed every fix I can find/understand but I am chasing my tail on this one.
Working on OSX...
Your rails is not linked with the right ruby version. Use the following code:
rvm use ruby-<version number> like: (rvm use ruby-2.1.4)
then reinstall the bundler:
gem uninstall bundler
gem install bundler
bundle install once again with the new version.
bundle install
Then proceed with your rails g command.
I'm new to Ruby on Rails. So, I'd got this error before, and I reinstalled rails and ruby and installed them again, but I still get it.
The error is:
/home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
from /home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require'
from /home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `each'
from /home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:72:in `block in require'
from /home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `each'
from /home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler/runtime.rb:61:in `require'
from /home/X/.rvm/gems/ruby-2.2.1/gems/bundler-1.11.2/lib/bundler.rb:99:in `require'
from /home/X/Documents/Appw/config/application.rb:7:in `<top (required)>'
from /home/X/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:78:in `require'
from /home/X/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /home/X/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /home/X/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:75:in `server'
from /home/X/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /home/X/.rvm/gems/ruby-2.2.1/gems/railties-4.2.5/lib/rails/commands.rb:17:in `<top (required)>'
from /home/X/Documents/Appw/bin/rails:9:in `require'
from /home/X/Documents/Appw/bin/rails:9:in `<top (required)>'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/lib/spring/client/rails.rb:28:in `load'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/lib/spring/client/rails.rb:28:in `call'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/lib/spring/client/command.rb:7:in `call'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/lib/spring/client.rb:28:in `run'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/bin/spring:51:in `<top (required)>'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/lib/spring/binstub.rb:11:in `load'
from /home/X/.rvm/gems/ruby-2.2.1/gems/spring-1.6.1/lib/spring/binstub.rb:11:in `<top (required)>'
from /home/X/Documents/Appw/bin/spring:13:in `require'
from /home/X/Documents/Appw/bin/spring:13:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
I tried updating the uglifier gem, but nothing happened.
It looks like you have't installed nodejs
sudo apt-get install nodejs
Should work !!!
The problem was that I didn't have nodejs installed. After I've installed it, everything worked smoothly.
What is you gemfile/gem list?
Actually having meteor installed doesn't count as having nodejs installed. nodejs is required for uglifier package, so simple: yum install nodejs resolves the issue.
I'm learning Ruby from Michael Hartl's tutorial. I'm following the steps one by one, but I can't get passed this one. When I input "bundle exec rspec spec/requests/static_pages_spec.rb" I get a very long error response as opposed to a simple "1 example, 0 failures". I changed the necessary code in the static pages directories and I'm fairly confident the code is correct as I simply copied and pasted. The error message is this:
/Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `require': dlopen(/Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle, 9): Library not loaded: /Users/marlon/.bundler/tmp/1219/gems/nokogiri-1.6.0/ports/i686-apple-darwin11/libxml2/2.8.0/lib/libxml2.2.dylib (LoadError)
Referenced from: /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle
Reason: Incompatible library version: nokogiri.bundle requires version 11.0.0 or later, but libxml2.2.dylib provides version 10.0.0 - /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri/nokogiri.bundle
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/nokogiri-1.6.0/lib/nokogiri.rb:28:in `<top (required)>'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/capybara-1.1.2/lib/capybara.rb:2:in `require'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/capybara-1.1.2/lib/capybara.rb:2:in `<top (required)>'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320#global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
from /Users/marlon/rails_projects/sample_app/config/application.rb:7:in `<top (required)>'
from /Users/marlon/rails_projects/sample_app/config/environment.rb:2:in `require'
from /Users/marlon/rails_projects/sample_app/config/environment.rb:2:in `<top (required)>'
from /Users/marlon/rails_projects/sample_app/spec/spec_helper.rb:3:in `require'
from /Users/marlon/rails_projects/sample_app/spec/spec_helper.rb:3:in `<top (required)>'
from /Users/marlon/rails_projects/sample_app/spec/requests/static_pages_spec.rb:1:in `require'
from /Users/marlon/rails_projects/sample_app/spec/requests/static_pages_spec.rb:1:in `<top (required)>'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run'
from /Users/marlon/.rvm/gems/ruby-1.9.2-p320/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun'
dyn172-30-28-254:sample_app marlon$
Please let me know what I can do to fix this. I appreciate all the help, thanks in advance!
You should install nokogiri dependencies:
brew install libxml2 --with-xml2-config
brew install libxslt
I have been trying to setup Ruby on Rails for the past 2 days now. I had them running at one stage but broke it. I have gone through re-installing Ruby and Rails via RVM and I am attempting to get going on the tutorial I have been working on. The problem I have is that when I run the command 'rails s' within the Rails app directory I get the following error message:
Exiting
/home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require': no such file to load -- openssl (LoadError)
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/session/cookie.rb:1:in `<top (required)>'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /home/hugo/.rvm/gemsin my terminal /ruby-1.9.2-p290/gems/actionpack-3.1.1/lib/action_dispatch/middleware/session/cookie_store.rb:4:in `<top (required)>'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/configuration.rb:131:in `const_get'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/configuration.rb:131:in `session_store'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application.rb:172:in `block in default_middleware_stack'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application.rb:146:in `tap'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application.rb:146:in `default_middleware_stack'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/engine.rb:446:in `app'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application/finisher.rb:37:in `block in <module:Finisher>'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `instance_exec'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:30:in `run'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `each'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/initializable.rb:54:in `run_initializers'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/application.rb:96:in `initialize!'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/hugo/rails_projects/web_app/config/environment.rb:5:in `<top (required)>'
from /home/hugo/rails_projects/web_app/config.ru:4:in `require'
from /home/hugo/rails_projects/web_app/config.ru:4:in `block in <main>'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:51:in `instance_eval'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:51:in `initialize'
from /home/hugo/rails_projects/web_app/config.ru:1:in `new'
from /home/hugo/rails_projects/web_app/config.ru:1:in `<main>'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:40:in `eval'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/builder.rb:40:in `parse_file'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/server.rb:200:in `app'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/server.rb:46:in `app'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/server.rb:301:in `wrapped_app'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/rack-1.3.5/lib/rack/server.rb:252:in `start'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands/server.rb:70:in `start'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:54:in `block in <top (required)>'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'
from /home/hugo/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Can somebody explain to me this error please? I am getting very tired. Thanks in advance.
You compiled ruby without the openssl dependencies. Do
rvm requirements
(or rvm notes if you are using an older version of rvm that doesn't have rvm requirements)
and see what you need to install in your system (typically these are apt-get commands if you are running ubuntu for example), and then recompile your ruby installation
by
rvm remove 1.9.2
rvm install 1.9.2
The first line has the following error:
`require': no such file to load -- openssl (LoadError)
RVM needs to know how to get to your openssl library.
See http://beginrescueend.com/packages/openssl/ for more information on setting up openssl with RVM.