views:

228

answers:

3

When trying to install the mysql gem from cPanel on my website, I get an error saying that the gem requires Ruby >= 1.8.6. This is a shared server and the version of Ruby is 1.8.5 and can't be upgraded. I do not have shell access and it seems the only way for me to install a gem is through the list of gems within cPanel.

How can I get mysql for my website?

+2  A: 

You can try to install an older gem. 2.7.5 seems to be the proper version.

Yuval F
From what I can tell, the cPanel interface doesn't let me specify a version. If I enter mysql -v 2.7.5 for example it concatenates everything and tries to fetch a gem called mysqlv275.And as I've mentionned above, I do not have shell access. Are there other ways for me to install gems?
JRL
When you install a reuby gem, does it just create a directory for the gem in the gems folder? If so, could I just get the gem files and upload them to the gems directory, or are there some settings taking place? I have access to the gems directory through the file browser in cPanel.
JRL
+1  A: 

Ruby 1.8.5 is pretty old and as far as I know hasn't been actively supported by Rails for a while. You really need 1.8.6 and preferably 1.8.7. If your host won't upgrade it may be time to look elsewhere. If you really have no other option, you should to what Yuval suggests and try installing an older version of the gem.

Peter Wagenet
A: 

No one having answered how to install a gem without shell access, I'll assume it can't be done and so will accept my own answer.

JRL