How to install therubyracer gem on 10.10 Yosemite?

gem uninstall libv8 brew install v8 gem install therubyracer gem install libv8 -v ‘3.16.14.3’ — –with-system-v8 this is the only way it worked for me on 10.10 (ruby 2.1.2) Or try gem install libv8 -v ‘XX.XX.XX’ — –with-system-v8 adding the version of the gem 🙂 UPDATE for Mac OS Catalina: brew tap homebrew/versions brew install … Read more

Impossible to Install PG gem on my mac with Mavericks

If you want to avoid using MacPorts, you can download the Postgres App and place it into the Application directory. Then, specify the location of newly downloaded pg_config: gem install pg — –with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config If you run in to missing headers problem, try specifying the include directory of the app: gem install pg — –with-pg-include=”/Applications/Postgres.app/Contents/Versions/latest/include/”

How do I list all versions of a gem available at a remote site?

Well, it was easier than I thought (well, not really, let’s say as easy as it should be): gem list rhc –remote –all Which returns: *** REMOTE GEMS *** rhc (0.84.15, 0.84.13, 0.83.9, 0.82.18, 0.81.14, 0.80.5, 0.79.5, 0.77.8, 0.75.9, 0.74.6, 0.74.5, 0.73.14, 0.72.29, 0.71.2, 0.69.6, 0.69.3, 0.68.5) rhcp (0.2.18, 0.2.17, 0.2.16, 0.2.15, 0.2.14, 0.1.9, 0.1.8, … Read more

Unable to install gem – Failed to build gem native extension – cannot load such file — mkmf (LoadError)

There are similar questions: `require’: no such file to load — mkmf (LoadError) Failed to build gem native extension (mkmf (LoadError)) – Ubuntu 12.04 Usually, the solution is: sudo apt-get install ruby-dev Or, if that doesn’t work, depending on your ruby version, run something like: sudo apt-get install ruby1.9.1-dev Should fix your problem. Still not … Read more

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