Can't run Ruby 2.2.3 with RVM on OSX
Downloading http://curl.haxx.se/ca/cacert.pem and adding
export SSL_CERT_FILE=PATH_TO_THe_DOWNLOADED_FILE/cacert.pem
to the .bash_profile/.zshrc partially fixed the issue, because it throws the following error on my system:
Excon::Errors::SocketError: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `ENV['SSL_CERT_DIR'] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, `ENV['SSL_CERT_FILE'] = path_to_file`, `Excon.defaults[:ssl_verify_callback] = callback` (see OpenSSL::SSL::SSLContext#verify_callback), or `Excon.defaults[:ssl_verify_peer] = false` (less secure).
Setting Excon.defaults[:ssl_verify_peer] to false in a Rails initializer (only on development/test envs) makes it work.
Update: Reinstalling 2.2.3 from source got rid of all my problems.
rvm remove 2.2.3
rvm install 2.2.3 --disable-binary
Can't run Ruby 2.2.3 with RVM on OSX
Downloading http://curl.haxx.se/ca/cacert.pem and adding
export SSL_CERT_FILE=PATH_TO_THe_DOWNLOADED_FILE/cacert.pem
to the .bash_profile/.zshrc partially fixed the issue, because it throws the following error on my system:
Excon::Errors::SocketError: Unable to verify certificate, please set `Excon.defaults[:ssl_ca_path] = path_to_certs`, `ENV['SSL_CERT_DIR'] = path_to_certs`, `Excon.defaults[:ssl_ca_file] = path_to_file`, `ENV['SSL_CERT_FILE'] = path_to_file`, `Excon.defaults[:ssl_verify_callback] = callback` (see OpenSSL::SSL::SSLContext#verify_callback), or `Excon.defaults[:ssl_verify_peer] = false` (less secure).
Setting Excon.defaults[:ssl_verify_peer] to false in a Rails initializer (only on development/test envs) makes it work.
Update: Reinstalling 2.2.3 from source got rid of all my problems.
rvm remove 2.2.3
rvm install 2.2.3 --disable-binary
Can I upgrade to the current version of Ruby (2.2.3) on OS X v10.6.8?
I suggest that you use RVM to install Ruby.
curl -sSL https://get.rvm.io | bash -s stable --ruby
You need to restart the terminal in order to run rvm:
rvm install 2.2
rvm use 2.2 --default
Ruby 2.2.3 in 2020
On MacOS using rbenv instead of rvm solves this issue and has allowed me to move onto another host of dependency issues.
RVM: failure in installing latest version of ruby on Mac OSX El Capitan
Try updating Homebrew, exit Terminal, and re-open. Then rvm install ruby-1.9.3-p551 <- Use your version #
Also make sure to set it as default. rvm --default use {version #}, exit Terminal, and re-open.
I got it by accident. Some of it from this YouTube video: Setting Up Ruby [ Ruby on Rails from the Ground Up - 2/5 ]. The rest was by poking it with a sharp stick.
Related Topics
More Concise Version of Max/Min Without the Block
Ruby Ternary Operator Structure
Scraping a Site That Requires Login Username and Password on Two Separate Pages
How to Stop Savon from Adding Prefixes to Soap.Body
Activerecord::Associationtypemismatch in Controller#Create on Dropdown Select for a Rails Self Join
Can't Install Ruby via Rvm, Error Running '_Rvm_Make -J4' on Ubuntu 22.04
Nested Form_For Singular Resource
Requiring a Ruby Gem in Ruby Script Breaks Cron Job Execution
How to Convert PDF to Excel or CSV in Rails 4
Rails Query Timestamp Between Two Hours
Ruby Looks for Class Variable in the Object Instead of Specific Class
Gem Install Rails Doesn't Work Due to Openssl/Etimedout in Windows
Using Delta Indexes for Associations in Thinking Sphinx
Performing a "Fast-Forward" Merge with Rugged
Single Table Inheritance to Refer to a Child Class with Its Own Fields