Sunday, April 13, 2014
ERROR: cannot verify rubygems.orgs certificate, issued by a/C=US/O=GeoTrust, Inc./CN=RapidSSL CA. Unable to locally verify the issuers authority.
[LINUX_SERVER]# openssl s_client -host rubygems.org -port 443
socket: Connection refused
-à Here ideally the certificate should be visible.
[LINUX_SERVER]# ruby -ropenssl -e 'p OpenSSL::OPENSSL_VERSION'
"OpenSSL 1.0.0 29 Mar 2010"
Following are the commands to install/update openssl:
1. rvm pkg install openssl
2. rvm reinstall all —force —with-openssl-dir=$rvm_path/
This usually occurs if you are behind a firewall
à will allow the installation behind a firewall.
For the openssl hearbleed issues, can google out and go through the various security patches.
Posting fe below:
Saturday, April 12, 2014
Ok, so the topic can be found very easy! But how will you be installing in a linux box, in which you don’t have root/admin access, and/or ports are blocked by firewall.
- Install WinScp
- Connect to the linux box
- Transfer the .gem files downloaded from gem repository, to the linux box
[doel@MY_LINUX_SERVER~]$ gem install rails --local /home/doel/rails-4.0.2.gem
ERROR: While executing gem ... (Gem::DependencyError)
Unable to resolve dependencies: sprockets-rails requires sprockets (~> 2.8); railties requires thor (< 2.0, >= 0.18.1); actionmailer requires mail (~> 2.5.4); activerecord requires arel (~> 4.0.0), activerecord-deprecated_
finders (~> 1.0.2); activemodel requires builder (~> 3.1.0); actionpack requires builder (~> 3.1.0), rack-test (~> 0.6.2), erubis (~> 2.7.0); activesupport requires i18n (>= 0.6.4, ~> 0.6), multi_json (~> 1.3), tzinfo (~> 0.3.37), thread_safe (~> 0.1)
In order to install all the dependencies, you need to install all the gem one by one.Though it's a laborious task, but unless you are getting admin/root access it's another workaround.