Welcome Guest | Login

Cannot install/upgrade Typo gem

I'd like to upgrade my existing typo blog to 5.1 Cartier-Bresson
http://blog.typosphere.org/2008/07/21/typo-5-1-cartier-bresson-is-out

The gem install is not working for me however. I created a ~/gems directory and pointed GEM_PATH to it, but when the dependency gem_plugin is being installed, it bombs out

Install required dependency gem_plugin? [Yn]  y
ERROR:  While executing gem ... (Errno::EACCES)
   Permission denied - /usr/local/lib/ruby/gems/1.8/cache/gem_plugin-0.2.3.gem

There's a gem_plugin-0.2.2.gem in that last location, so if I could get that updated, maybe I won't have to update via tarball.

2008-07-22 09:35 PM

Contact info

I've installed the gem gem_plugin-0.2.3 on the server now.

2008-07-22 11:39 PM

Thanks...but now I hit the same kind of thing with dependencies fastthread-1.0.1, cgi_multipart_eof_fix-2.5.0, and rails-app-installer-0.2.0, and I don't know how many other dependencies are going to do this too afterwards. So I don't think this GEM_PATH trick works all that well.

2008-07-23 02:56 PM

Contact info
Hi Milkfish,

We have now installed fastthread-1.0.1, cgi_multipart_eof_fix-2.5.0, and rails-app-installer-0.2.0 on the server. Let us us know if you are still facing any issues while upgrading to Typo 5.1

2008-07-23 06:49 PM

Got a little further. mongrel-1.1.5 (Ruby) complained, but I bypassed it since I am just a fcgi user. Required dependency ruby-debug installed okay, but the columnize-0.1 gem hit the permission problem this time.

2008-07-23 07:45 PM

Contact info
Hi Milkfish,

I have now installed the gem columnize-0.1 as a user using the command

$ gem install columnize  -v 0.1 -i ~/.gems/

Successfully installed columnize-0.1
Installing ri documentation for columnize-0.1...
Installing RDoc documentation for columnize-0.1...

As shown above you can install all the required gems with in user privilege. I hope the following wiki link will help you to know more about installing gems as a user.

http://www.hostingrails.com/forums/wiki_thread/2

2008-07-23 08:02 PM

Thanks much to all of you for your help. The -i switch is what I needed to install the 5.1 gem.

Unfortunately, running ~/.gems/bin/typo install <dir> as the Typo people advise failed to recognize my MySQL database name setting and trashed my blog, so I had to restore it from my subversion repo. It looks like the way to upgrade is to go with the tarball after all.

2008-07-23 09:23 PM

Contact info

Hello Guest! In order to post you must be an active client with us, please log in or sign up.