RSS
 

Archive for January, 2010

Installing the cheat GEM

19 Jan

I guess that I must have installed the cheat GEM on Ruby 1.8.6, but it was so long ago that I was thinking that it was part of the Ruby base – part of the charm in using Ruby I guess. Anyway it’s a quick install right just go to the command prompt : C:Userswinston>gem install cheat the console indicated that all went well [Successfully installed cheat-1.2.1; 1 gem installed; Installing ri documentation for cheat-1.2.1...; Installing RDoc documentation for cheat-1.2.1...] but on testing:C:Userswinston>cheat cheat

c:/ruby19/lib/ruby/gems/1.9.1/gems/cheat-1.2.1/lib/cheat.rb:150:in`cache_dir’
uninitialized constant Cheat::PLATFORM (NameError) from c:/ruby19/lib/ruby/gems/1.9.1/gems/cheat-1.2.1/lib/cheat.rb:16:in `sheets’
from c:/ruby19/lib/ruby/gems/1.9.1/gems/cheat-1.2.1/bin/cheat:4:in`<top  (required)>’
from c:/Ruby19/bin/cheat:19:in`load’
from c:/Ruby19/bin/cheat:19:in`<main>’

Not cool, cheat.rb is failing! Read the rest of this entry »

 
Comments Off

Posted in Developer, Ruby Notes

 

Installing Ruby 1.9.1

16 Jan

I decided to install Ruby 1.9.1 on Vista – since I may as well work with the latest version but I did leave Ruby 1.8.6 installed as well in case there were some incompatibility issues.

I ran Ruby 1.9.1 for a day or two with no problems until I installed the mysql gem (gem install mysql) and immediately ran into failing database operations. After looking around the net the best fix to the problem that I found was as follows:

Solution: Copied libmysql.dll from this address: http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/ to c:ruby19bin. The fix works with mysql version: 5.1.30, which is what I have installed and it replaces the dll that was installed by the mysql gem. So far everything looks like it is working properly.

 
Comments Off

Posted in Developer, Ruby Notes