how to undo bundle update
There is one obvious way: git checkout — Gemfile.lock and then run bundle install It assumes you use git – but who does not now days, I have everything in git.
There is one obvious way: git checkout — Gemfile.lock and then run bundle install It assumes you use git – but who does not now days, I have everything in git.
Use rvmsudo command instead of sudo
Check what rubies are installed: rvm list Then make sure to use one of the installed rubies: rvm use 1.9.3-p327 And test if openssl is available: ruby -ropenssl -e “puts :OK” It will print OK if openssl is enabled, otherwise you will get exception In case of exception => UPDATE: new version of rvm has … Read more
Your RVM is installed in /usr/local/rvm – it’s often called system installation, this requires that your user ubuntu will be added to rvm group: rvm group add rvm “$USER” yes use $USER it will be replaced by your shell with your user name then log out and log in, ensure with: id that your user … Read more
Use rvm to install zlib https://rvm.io/packages/zlib/ rvm package install zlib rvm remove 1.9.1 rvm install 1.9.1 -C –with-zlib-dir=$rvm_path/usr Edit: The rvm package command was renamed to rvm pkg in v1.6.25.
If you put the RVM source line in your bashrc (in order to ensure that non-interactive shells have access to RVM), you will need to source .bashrc from your .bash_profile with the following as the last lines in your .bash_profile if [ -f “$HOME/.bashrc” ]; then source $HOME/.bashrc fi This pre-supposes that you have [[ … Read more
Adding the following (taken from .bash_profile) to .bashrc fixed it for me: [[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”
RVM doesn’t behave well if apt-get update has errors. If your apt sources have an invalid repository that gives 404 or GPG error, RVM will refuse to work. This can be confusing because it happens even if the faulty repository has nothing to do with ruby or RVM. The following fix worked for me (Ubuntu): … Read more
There’s three main options available today: rvm which is the most established, but also the most intrusive in terms of shell modifications. rbenv which is lower impact, and still works as well. chruby which purports to be even lighter than rbenv. Personally I prefer rbenv because it works well with Homebrew and doesn’t mangle the … Read more
rvm pkg install openssl (older format – rvm package install openssl) rvm pkg install iconv (older format – rvm package install iconv) rvm remove 1.9.2 rvm install 1.9.2 -C –with-openssl-dir=$HOME/.rvm/usr,–with-iconv-dir=$HOME/.rvm/usr Credit to http://www.isnull.com.ar/