Recently, I was trying to install RhoMobile suite on my ubuntu11.10 machine. And faced some issues for installing ‘rhosync’ package. This blog tells how to fix these issues (as they worked for me).
I am assuming ruby and gem are already installed on your machine.
Note: if you are on older version of ruby please upgrade to 1.9.2
Rhodes was installed without any problem –
sudo gem install rhodes
Now, the problem arrived for installing RhoSync
salil@local:~$ sudo gem install rhosync Building native extensions. This could take a while... ERROR: Error installing rhosync: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- mkmf (LoadError) from <internal:lib/rubygems/custom_require>:29:in `require' from extconf.rb:1:in `<main>'
To fix the above error, run following command –
apt-get install ruby1.9.1-dev
Now retry installing rhosync.
sudo gem install rhosync
Now, you will see the ‘rhosync’ getting installed successfully.
Another common error -
ERROR: Could not find a valid gem 'Rhosync' (>= 0) in any repository
To fix the above error, check the following points-
1. Check the name of the package you are trying to install. It should be ‘rhosync’ instead of ‘Rhosync’. It’s case-sensitive.
2. It’s possible that the source for your gem repository is empty. So, add one with the following command –
gem sources --add http://rubygems.org
Salil [at] IntelliGrape [dot] com