gem install fails with openssl failure

后端 未结 11 1096
花落未央
花落未央 2020-12-07 07:51

I tried to install cocoapods (http://cocoapods.org/) on my OSX Mountain Lion.

 moshe-mbp:~ moshem$ gem install cocoapods
 ERROR:  Could not find a valid gem          


        
11条回答
  •  感动是毒
    2020-12-07 08:36

    I fixed it by only appending to the PATH variable in my ~/.bash_profile, which in my case meant changing

    export PATH="/usr/local/mysql/bin:$PATH"
    export PATH=$M2:$PATH
    export PATH=$JAVA_HOME/bin:$PATH
    

    to

    export PATH="$PATH:/usr/local/mysql/bin"
    export PATH=$PATH:$M2
    export PATH=$PATH:$JAVA_HOME/bin
    

    In terminal, type nano ~/.bash_profile to start editing.

提交回复
热议问题