gem cannot access rubygems.org

api.rubygems.org is currently experiencing issues with IPv6 setup: this hostname has 4 IPv6 addresses, but responds on neither of them. Neither to ping, nor to TCP connection attempts. When you are running gem, your gem tries IPv6 addresses first and times out on them, not having time to even try IPv4 addresses. The solution is … Read more

Install Gem from Github Branch?

You don’t need to build the gem locally. In your gemfile you can specify a github source with a ref, branch or tag. gem ‘rails’, git: ‘git://github.com/rails/rails.git’, ref: ‘4aded’ gem ‘rails’, git: ‘git://github.com/rails/rails.git’, branch: ‘2-3-stable’ gem ‘rails’, git: ‘git://github.com/rails/rails.git’, tag: ‘v2.3.5’ Then you run bundle install or the short form is just bundle. Read more … Read more

You don’t have write permissions for the /var/lib/gems/2.3.0 directory

You first need to uninstall the ruby installed by Ubuntu with something like sudo apt-get remove ruby. Then reinstall ruby using rbenv and ruby-build according to their docs: cd $HOME sudo apt-get update sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt1-dev libcurl4-openssl-dev libffi-dev git clone https://github.com/rbenv/rbenv.git ~/.rbenv echo ‘export PATH=”$HOME/.rbenv/bin:$PATH”‘ >> … Read more

How to install gem from GitHub source?

well, that depends on the project in question. Some projects have a *.gemspec file in their root directory. In that case, it would be gem build GEMNAME.gemspec gem install gemname-version.gem Other projects have a rake task, called “gem” or “build” or something like that, in this case you have to invoke “rake “, but that … Read more