Skip to content

Instantly share code, notes, and snippets.

@Irio
Created December 19, 2011 11:24
Show Gist options
  • Star 20 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save Irio/1496746 to your computer and use it in GitHub Desktop.
Save Irio/1496746 to your computer and use it in GitHub Desktop.
Solution for "cannot load such file -- openssl" on RVM
When I tried run "rake test", I received:
rake aborted!
cannot load such file -- openssl
Tasks: TOP => test:units => test:prepare => db:test:prepare => db:abort_if_pending_migrations => environment
(See full trace by running task with --trace)
Solution:
$ rvm pkg install openssl
$ rvm remove 1.9.3
$ rvm install 1.9.3 --with-openssl-dir=$rvm_path/usr
@kalashnikovisme
Copy link

Thanks!

@Moriort
Copy link

Moriort commented Aug 25, 2023

Thanks! Awesome!

@chazz884
Copy link

It Works!!

@OlegSviridenko
Copy link

Great! Command for WSL with rvm
rvm install 2.7.8 --with-openssl-dir=/usr/share/rvm/usr

@FrendaWinter
Copy link

Nice! I understand now.

@PushitChaudhary
Copy link

PushitChaudhary commented Apr 8, 2024

Great! Command for WSL with rvm rvm install 2.7.8 --with-openssl-dir=/usr/share/rvm/usr

thank you
so much !! it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment