Reputation: 2495
September 3rd Updated
sudo apt-get install libssl-dev
libssl-dev already the newest version.
but still getting the same error.
root@Lintong:~# gem install rails
ERROR: Loading command: install (LoadError)
cannot load such file -- openssl
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
I installed ruby by compiling I did not use rvm. I asked how to install ruby on mint without using rvm here
installed ruby using apt-get install ruby 2.0.0 succeeded but not using correct ruby version
now when I do gem install rails I got the above error, what dependencies am I missing? I don't usually use linux for development. I am doing this for the first time because I am deploying to a vps (digital ocean)
Upvotes: 0
Views: 220
Reputation: 107728
I think you're missing the libssl-dev
package. Try installing that package and recompiling Ruby. You may be missing other packages as well.
Upvotes: 0