Skip to content

Instantly share code, notes, and snippets.

@myersjustinc
Last active November 10, 2016 18:58
Show Gist options
  • Save myersjustinc/eebf0882088e847edb26c9c8dba809ba to your computer and use it in GitHub Desktop.
Save myersjustinc/eebf0882088e847edb26c9c8dba809ba to your computer and use it in GitHub Desktop.
RVM things I've run into
  • SSL issues when installing any gem, either using gem install or bundle install:

    • Replace the certs from rvm osx-ssl-certs with the ones from cURL:

      $ wget 'https://curl.haxx.se/ca/cacert.pem'
      $ cp cacert.pem /usr/local/etc/openssl/cert.pem
      $ sudo cp cacert.pem /etc/openssl/cert.pem
      
  • Switching Ruby versions inside a Python virtualenv throws a warning such as:

    Warning! PATH is not properly set up, '/Users/idguser/.rvm/gems/ruby-2.3.1/bin' is not at first place,
            usually this is caused by shell initialization files - check them for 'PATH=...' entries,
            it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
            to fix temporarily in this shell session run: 'rvm use ruby-2.3.1'.
    
    • Add the following to ~/.rvmrc:

      rvm_silence_path_mismatch_check_flag=1
      
  • Installing pg or hitimes gems fails with an error such as:

    ld: in '/usr/local/lib/libiconv.2.dylib', file was built for i386 which is not
    the architecture being linked (x86_64): /usr/local/lib/libiconv.2.dylib for
    architecture x86_64
    
    • The pdftk utility includes its own libiconv, which causes some issues. Unlink it while installing the pg gem:

      $ brew unlink pdftk
      $ bundle install  # or:    $ gem install pg
      $ brew link pdftk
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment