dbi install failed

T

thomas eric

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
 
S

Shashank Date

thomas eric said:
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
 
T

thomas eric

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
 
M

Michael Neumann

Thanks a lot! That was it!

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

Source:
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
 
T

thomas eric

Hi Michael,

I just did it!
It works perfect and it's really fast :)

Thanks!

thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top