Ruby 1.9.2 how to install RMagick on Windows?

I just installed RMagick 2.13.1 successfully on Windows with Ruby v1.9.x ! Let me spill out the procedure, before I forget. Install DevKit : https://github.com/oneclick/rubyinstaller/wiki/Development-Kit . Install ImageMagick 6.6.x with windows installer with headers. NOTE: -Do not install ImageMagick in a path which has spaces in it. The default path C:/Program Files/… will not work. … Read more

Ruby 1.9.2 and Rails 3 cannot open rails console

Apparently ubuntu and ruby don’t always catch dependencies like they should. From the first google hit (yeah, I clicked on this stack-overflow in place #2 before checking out the first result.) Navigate to the Ruby source and enter: sudo apt-get install libreadline5-dev cd ext/readline ruby extconf.rb make sudo make install So, if you’re on another … Read more

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

Ruby : How to write a gem? [closed]

Rubygems.org’s Guides is one of the best resources for writing your own gem. If you’re using Bundler in your app, you might want to look at Ryan Bigg’s guide to Developing a RubyGem using Bundler and the Railscast on creating gems with Bundler. If you’re interested in tools to help you write gems: Jeweler – … Read more

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

sqlite3 gem fails to install

I had an almost similar problem as you where I had sqlite3 installed and yet the sqlite3 gem would not install. I was seeing an error message as follows, user-name-rajas-macbook-pro:rails3 user-namer$ gem install sqlite3 Building native extensions. This could take a while… ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. /Users/user-namer/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb … Read more