Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > dbi install failed

Reply
Thread Tools

dbi install failed

 
 
thomas eric
Guest
Posts: n/a
 
      12-14-2003
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






 
Reply With Quote
 
 
 
 
Shashank Date
Guest
Posts: n/a
 
      12-14-2003

"thomas eric" <(E-Mail Removed)> 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


 
Reply With Quote
 
 
 
 
thomas eric
Guest
Posts: n/a
 
      12-14-2003
Thanks a lot! That was it!

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

Source:
--
require "dbi"
DBI.connect("DBI:Mysqlroject", "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




 
Reply With Quote
 
Michael Neumann
Guest
Posts: n/a
 
      12-14-2003
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:Mysqlroject", "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



 
Reply With Quote
 
thomas eric
Guest
Posts: n/a
 
      12-14-2003
Hi Michael,

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

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:Mysqlroject", "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
>
>
>




 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DBI install failed Chris Perl Misc 0 05-26-2006 10:26 AM
DBI Mysql storing DBI:binary, trouble with character 26 Jerome Hauss Ruby 0 10-13-2004 03:04 PM
DBI and DBI::Oracle packages configuration ulloa Perl 1 07-22-2004 05:52 PM
DBI problem : How can I load quickly one huge table with DBI ??. Tim Haynes Perl Misc 3 09-13-2003 03:43 AM
Mason, DBI, and DBI::Pg Asby Perl Misc 0 07-24-2003 09:04 PM



Advertisments