| Message: 90135 |
 |
BY: Mike Pomraning (pilcrow) DATE: 2009-09-06 14:50 SUBJECT: RE: DBI.connect error-uninitialized Mysql:Driver > ruby -rmysql -e 'p Mysql::VERSION'
> -e:1:in `<main>': uninitialized constant
> Mysql::VERSION (NameError)
``require "mysql"'' is not giving a fatal error, but it is not finding the mysql-ruby package that we expect. ``DBI.connect("dbi:Mysql...")'' gives you a different error, but I'd similarly suspect that it is silently failing to find dbd/Mysql.rb.
I think if you can solve why the ``p Mysql::VERSION'' test didn't work, you'll have
found the problem for ``DBI.connect()'' as well.
However, this seems squarely an installation problem now. The answer is somewhere in
$ ruby -rmysql -e 'puts $"'
-or-
$ strace -s 1024 -e trace=file -rmysql -e 0
but may take a while to find.
-Mike | |