PDA

View Full Version : RubyGem problems


merrua
August 29th, 2006, 12:08 PM
I am planning on setting up MySql/Ruby module and Im finding it hard to find a detailed explaination.

While I was trying one instructions I realised RubyGems wasnt working. I thought maybe I just hadnt set it up properly and downloaded RubyGem, moved the files in their rubygems-0.9.0 folder into my ruby folder

C:\ruby\rubygems-0.9.0

Then I went into the ruby folder
the into the rubygems-0.9.0 folder
then gave the command

>ruby setup.rb

I got this error message after successfully built RubyGem message


hook C:/ruby/rubygems-0.9.0/ ./post-install.rb failed:
undefined method 'post_install_message' for #<Gem::Specification:0X3337fa8>


However I am still getting this message when I click on any of the rubygems options in my start menu.

ex RubyGems Package Manager

Windows is searching for gemhelp.cmd. To locate the file yourself, click Browse

Any idea what could have caused this?
And how do I fix it?

merrua
August 29th, 2006, 12:09 PM
sorry could you move this to the general discussion section in the ruby forums?

rob
August 29th, 2006, 03:27 PM
It looks like your best bet is going to be reinstalling the one-click Ruby package. Make sure you completely uninstall it first, and after running the uninstaller, make sure the C:\Ruby folder is completely gone.

merrua
August 30th, 2006, 09:42 AM
Ok. I did that. Everything seemed ok, except the newer ruby version required me to download activestate for tk.

I get this error when I run RubyGems,

c...\ruby\bin\ruby: illegal switch in RUBYOPT: -e <RuntimeError>

I forgot to delete RUBYOPT so I think its wrong. Whats the correct details for RUBYOPT for the latest ruby release?

rob
August 30th, 2006, 05:54 PM
RUBYOPT on Windows on the latest release of the One-click Ruby Installer should be:

RUBYOPT=-rubygems

merrua
August 31st, 2006, 06:02 AM
RUBYOPT on Windows on the latest release of the One-click Ruby Installer should be:

RUBYOPT=-rubygems

Tried your suggestion.

error is now

ruby: illegal switch in RUBYOPT: -R <RuntimeError>

rob
August 31st, 2006, 04:06 PM
When you reinstalled it, did you make sure it was with a user that had Admin rights?

Also, try reinstalling it agian, this time first manually deleting the RUBYOPT environment variable in System -> Advanced -> Environment Variables before reinstalling.

merrua
September 4th, 2006, 08:57 AM
That seems to have fixed it.
Thanks, I thought i was looking at another afternoon working on
this problem.

I didnt think this solution would work as I tried doing it thursday and that failed too,
but today the unistall, delete and reinstall worked perfectly.

Really shows that sometimes trying a solution again, can work.

rob
September 4th, 2006, 07:15 PM
I think the RUBYOPT environment variable wasn't being deleted by the installer. Possibly something that needs further investigation.

BTW.. That's a great package though. Couldn't ask for an easier way to install Ruby :)

merrua
September 6th, 2006, 10:16 AM
ya, pity the addons are so confusing.
ah well. Part done.