$ ruby -v
ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
$ gem env
RubyGems Environment:
- VERSION: 0.9.4 (0.9.4)
- INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
- GEM PATH:
- c:/ruby/lib/ruby/gems/1.8
- REMOTE SOURCES:
-
http://gems.rubyforge.orgstart of my ruby program:
p require('rubygems')
p gem('mysql')
p gem('dbi')
dbh = DBI.connect('DBI:Mysql:money', 'mysqluser', 'xxxxxxx')
returns:
false
true
true
C:/ruby/code/rdbm.rb:9: uninitialized constant DBI (NameError)
so, when I start ruby, rubygems is already included? Interesting.
adding "require('irb') makes everything work. So my real problem is that
this is not how it says to do it in the 'book', and so I am concerned
that something might not be set up right.
--
Posted via
http://www.ruby-forum.com/.