Installing Ruby Gems with native extensions in Ubuntu
I’ve recently started experimenting with using Ubuntu for my Ruby development. Some of the Gems like JSON and HPricot have extension compilation step which doesn’t work on a default Ubuntu installation.
Here are a few steps that you need to get it to work.
- Open up Synaptic Package Manager from System > Preferences
- Search for “ruby1.8-dev”, right click and check “Mark for installation”
- Search for “build-essential” and mark it for installation as well
- Click “Apply” in the toolbar
After the update is finished, you should be able to install Gems which require native extensions compilation.
No comments yet, be the first one!
Leave a Reply