How to install Nokogiri Ruby gem with mkmf.log saying libiconv not found?

To diagnose and solve, here’s what worked for me. To find out what failed, go to your ruby gems directory. For example: $ cd <MY RUBY DIRECTORY>/lib/ruby/gems/2.0.0/gems If you don’t know your gem directory, try this: $ echo $GEM_HOME /opt/gems/2.0.0 $ cd /opt/gems/2.0.0/gems What version of nokogiri am I installing? $ ls -ladg nokogiri-* nokogiri-1.5.5 … Read more

How to use Bundler with offline .gem file?

I’m using Rails 3.0.3, new to Rails 3 and bundler. I got this same error with: gem ‘mygem’, :path => ‘/path/to/gem’ Resolved by specifying the version number: gem ‘mygem’, ‘0.0.1’, :path => ‘/path/to/gem’ Using >=0.0.1 for the version reverted to the original error. I can’t explain any of this, however. Quoting JD’s helpful commment, from … Read more

What are the ethics & etiquette of forking someone else’s github project to release it as a gem?

So, if you’re not going to release a gem, just go ahead and fork (assuming the license allows it) and don’t worry about it. That’s 100% OK and even expected behavior at this point. Forks are actually one of the easiest ways to accept patches from contributors. The network graph is often a good way … Read more

Gem install hangs indefinitely

If gem install is hanging, it’s most likely a network, proxy, or firewall issue on your end. You can investigate by issuing your gem install command in verbose mode with -V. It’ll show you what URLs it’s communicating with to download the gem, and you can hopefully see what it’s doing and where it’s hanging: … Read more

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