When a gem fails, where do I find the mkmf.log file?

The mkmf.log file can be found under the gem’s installation directory. rvm If you are using RVM, then look for a directory similar to ~/.rvm/gems/ruby-1.9.3-p194/gems/some-cool-gem-name/ext/mkmf.log You can list all the mkmf.log files available with this command: find ~/.rvm -name mkmf.log rbenv find ~/.rbenv -name mkmf.log

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?

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 that case you have to invoke rake <taskname>, but that depends … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)