philz
12-21-2007, 09:28 AM
I have written a rails 2.0 application and I am trying to deploy it to my website. I am having quite a few difficulties.
I login using ssh and run "gem list". This returns rails (1.2.6). But when I do a gem udpate I get:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /usr/lib/ruby/gems/1.8/cache/mysql-2.7.gem
I have tried to followed another forum post. The steps involved I did were:
step 1: vi ~/bash_profile
step 2: add the variable
export GEM_HOME=$HOME/ruby/gems
step 3: cp -r /lib/ruby/gems/1.8/ ~/ruby/gems/
step 4: gem update
but gem list still returns the old version of rails. :( Still no joy.
In the hostmonster control panel the rails version is also 1.2.6 :(
Can anyone help tell me know to install the latest version of rails and install additional gems.
I login using ssh and run "gem list". This returns rails (1.2.6). But when I do a gem udpate I get:
ERROR: While executing gem ... (Errno::EACCES)
Permission denied - /usr/lib/ruby/gems/1.8/cache/mysql-2.7.gem
I have tried to followed another forum post. The steps involved I did were:
step 1: vi ~/bash_profile
step 2: add the variable
export GEM_HOME=$HOME/ruby/gems
step 3: cp -r /lib/ruby/gems/1.8/ ~/ruby/gems/
step 4: gem update
but gem list still returns the old version of rails. :( Still no joy.
In the hostmonster control panel the rails version is also 1.2.6 :(
Can anyone help tell me know to install the latest version of rails and install additional gems.