Note that there are some explanatory texts on larger screens.

plurals
  1. POgem install fails with openssl failure
    primarykey
    data
    text
    <p>I tried to install cocoapods (<a href="http://cocoapods.org/">http://cocoapods.org/</a>) on my OSX Mountain Lion.</p> <pre><code> moshe-mbp:~ moshem$ gem install cocoapods ERROR: Could not find a valid gem 'cocoapods' (&gt;= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (https://rubygems.org/latest_specs.4.8.gz) </code></pre> <p>first I tried</p> <pre><code> rvm reinstall all --force </code></pre> <p>then I tried </p> <pre><code> brew upgrade openssl ==&gt; Upgrading openssl ==&gt; Downloading http://openssl.org/source/openssl-1.0.1e.tar.gz Already downloaded: /Library/Caches/Homebrew/openssl-1.0.1e.tar.gz ==&gt; perl ./Configure --prefix=/usr/local/Cellar/openssl/1.0.1e --openssldir=/usr/local/etc/openssl zlib-dynamic shared d ==&gt; make ==&gt; make test ==&gt; make install MANDIR=/usr/local/Cellar/openssl/1.0.1e/share/man MANSUFFIX=ssl ==&gt; Caveats To install updated CA certs from Mozilla.org: brew install curl-ca-bundle This formula is keg-only: so it was not symlinked into /usr/local. Mac OS X already provides this software and installing another version in parallel can cause all kinds of trouble. The OpenSSL provided by OS X is too old for some software. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables: LDFLAGS: -L/usr/local/opt/openssl/lib CPPFLAGS: -I/usr/local/opt/openssl/include ==&gt; Summary /usr/local/Cellar/openssl/1.0.1e: 429 files, 15M, built in 5.1 minutes </code></pre> <p>I then tried</p> <pre><code>openssl version </code></pre> <p>and still(!) gets the older version</p> <pre><code>moshe-mbp:~ moshem$ openssl version OpenSSL 0.9.8r 8 Feb 2011 moshe-mbp:~ moshem$ </code></pre> <p>what am I doing wrong? how can I install the cocoapods gem?</p> <p>thanks</p> <hr> <p>EDIT, trying @sean suggestion:</p> <pre><code>moshe-mbp:~ moshem$ brew update Updated Homebrew from 672af665 to 10b4d426. ==&gt; Updated Formulae bash wireshark moshe-mbp:~ moshem$ brew install openssl Error: openssl-1.0.1e already installed moshe-mbp:~ moshem$ brew link openssl --force Linking /usr/local/Cellar/openssl/1.0.1e... 1139 symlinks created moshe-mbp:~ moshem$ brew install curl-ca-bundle Error: curl-ca-bundle-1.87 already installed moshe-mbp:~ moshem$ moshe-mbp:~ moshem$ openssl version OpenSSL 0.9.8r 8 Feb 2011 moshe-mbp:~ moshem$ gem install cocoapods ERROR: Could not find a valid gem 'cocoapods' (&gt;= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (https://rubygems.org/latest_specs.4.8.gz) </code></pre> <hr> <p>EDIT (2) after fixing issues with brew doctor</p> <pre><code>moshe-mbp:~ moshem$ gem install cocoapods ERROR: Could not find a valid gem 'cocoapods' (&gt;= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (https://rubygems.org/latest_specs.4.8.gz) moshe-mbp:~ moshem$ openssl version OpenSSL 0.9.8r 8 Feb 2011 moshe-mbp:~ moshem$ brew update Updated Homebrew from 10b4d426 to 6a00bc3c. ==&gt; Updated Formulae clozure-cl python python3 moshe-mbp:~ moshem$ brew install openssl Error: openssl-1.0.1e already installed moshe-mbp:~ moshem$ moshe-mbp:~ moshem$ echo $PATH /Users/moshem/.rvm/gems/ruby-2.0.0-p0/bin:/Users/moshem/.rvm/gems/ruby-2.0.0-p0@global/bin:/Users/moshem/.rvm/rubies/ruby-2.0.0-p0/bin:/Users/moshem/.rvm/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/tools:/platforms:/platform-tools: moshe-mbp:~ moshem$ </code></pre> <hr> <p>EDIT after altering the /etc/paths</p> <p>I edited the /etc/path files to:</p> <pre><code>/usr/local/bin /usr/bin /bin /usr/sbin /sbin </code></pre> <p>closed terminal completly and reopend and it still launches the old version of openssl!</p> <p>why?</p> <pre><code>moshe-mbp:~ moshem$ env $PATH env: /Users/moshem/.rvm/gems/ruby-2.0.0-p0/bin:/Users/moshem/.rvm/gems/ruby-2.0.0-p0@global/bin:/Users/moshem/.rvm/rubies/ruby-2.0.0-p0/bin:/Users/moshem/.rvm/bin:/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin:/tools:/platforms:/platform-tools </code></pre> <hr> <p>EDIT, my bash_profile</p> <pre><code>source "`brew --prefix grc`/etc/grc.bashrc" export PATH=${JAVA_HOME}/bin:$PATH export PATH="$PATH:$ANDROID_SDK/tools:$ANDROID_SDK/platforms:$ANDROID_SDK/platform-tools:$ANDROID_NDK" [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* </code></pre> <p>BTW, the /etc/grc.bashrc doesn't seem to exist on my machine. both this line and the rvm line at the end were added by installed scripts</p> <hr> <p>EDIT</p> <pre><code>moshe-mbp:~ moshem$ rvm pkg install openssl Fetching openssl-1.0.1c.tar.gz to /Users/moshem/.rvm/archives Extracting openssl to /Users/moshem/.rvm/src/openssl-1.0.1c Configuring openssl in /Users/moshem/.rvm/src/openssl-1.0.1c. Compiling openssl in /Users/moshem/.rvm/src/openssl-1.0.1c. Installing openssl to /Users/moshem/.rvm/usr Please note that it's required to reinstall all rubies: rvm reinstall all --force Updating openssl certificates moshe-mbp:~ moshem$ openssl version OpenSSL 1.0.1e 11 Feb 2013 moshe-mbp:~ moshem$ gem source -r http://rubygems.org/ http://rubygems.org/ removed from sources moshe-mbp:~ moshem$ gem source -a https://rubygems.org/ Error fetching https://rubygems.org/: SSL_connect returned=1 errno=0 state=SSLv3 read server key exchange B: bad ecpoint (https://rubygems.org/specs.4.8.gz) moshe-mbp:~ moshem$ gem install cocoapods ERROR: Could not find a valid gem 'cocoapods' (&gt;= 0) in any repository </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload