Dbi install failed

Hi,

I 'm trying to install dbi on a w2k machine (ruby 1.8.0):

C:\testdir\dbi\ruby-dbi-all>ruby setup.rb config --with=dbi,dbd_mysql
setup.rb:586: warning: parenthesize argument(s) for future version
entering config phase…
config done.

C:\testdir\dbi\ruby-dbi-all>ruby setup.rb setup
setup.rb:586: warning: parenthesize argument(s) for future version
entering setup phase…
setting #! line to "#!e:/ruby/bin/ruby"
setup.rb: skip bin/proxyserver(dbd_proxy) by user option
setup.rb: skip ext/dbd_sqlite(dbd_sqlite) by user option
setup.rb: skip ext/dbd_sybase(dbd_sybase) by user option
setup done.

C:\testdir\dbi\ruby-dbi-all>ruby setup.rb install
setup.rb:586: warning: parenthesize argument(s) for future version
entering install phase…
mkdir -p e:/ruby/bin
install sqlsh.rb e:/ruby/bin
install failed
Permission denied - e:/ruby/bin/sqlsh.rb
try “ruby setup.rb --help” for usage

Why “Permission denied”??
Anybody an idea?

Thanks
thomas eric

“thomas eric” sanniso@gmx.de wrote in message

Why “Permission denied”??
Anybody an idea?

The file is saved in Read_Only mode.
You will have to change properties, rename or delete sqlsh.rb from
c:\ruby\bin and then try again.

You will have to do this for every file and directory that the package tries
to install.
I don’t know why the installer does that. Painful!

I have successfully installed this package many times … so feel free to
call back if you run into any other problems.

After installation, I have used it for ADO only.

– shanko

Thanks a lot! That was it!

I now try to connect to my local MySQL server.
Without success:

Source:

···


require "dbi"
DBI.connect(“DBI:Mysql:Project”, “root”, “”)

Message:

c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:490:in load_driver': is not a class/module (TypeError) from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in_get_full_driver’
from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect’

Any idea??

thomas eric

Ruby/DBI depends on the ruby-mysql package. You can get it here:
http://www.tmtm.org/mysql/

Install it, and try again.

Regards,

  Michael

···

On Mon, Dec 15, 2003 at 06:49:44AM +0900, thomas eric wrote:

Thanks a lot! That was it!

I now try to connect to my local MySQL server.
Without success:

Source:
--
require "dbi"
DBI.connect("DBI:Mysql:Project", "root", "")

Message:
--
c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:490:in `load_driver': is not
a class/module (TypeError)
  from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in
  `_get_full_driver'
  from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect'

Any idea??

Hi Michael,

I just did it!
It works perfect and it’s really fast :slight_smile:

Thanks!

thomas

Michael Neumann wrote:

···

On Mon, Dec 15, 2003 at 06:49:44AM +0900, thomas eric wrote:

Thanks a lot! That was it!

I now try to connect to my local MySQL server.
Without success:

Source:

require “dbi”
DBI.connect(“DBI:Mysql:Project”, “root”, “”)

Message:

c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:490:in load_driver': is not a class/module (TypeError) from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:392:in _get_full_driver’
from c:/ruby/lib/ruby/site_ruby/1.8/dbi/dbi.rb:372:in `connect’

Any idea??

Ruby/DBI depends on the ruby-mysql package. You can get it here:
http://www.tmtm.org/mysql/

Install it, and try again.

Regards,

Michael