dbi install failed

Discussion in 'Ruby' started by thomas eric, Dec 14, 2003.

  1. thomas eric

    thomas eric Guest

    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, Dec 14, 2003
    #1
    1. Advertising

  2. "thomas eric" <> 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
     
    Shashank Date, Dec 14, 2003
    #2
    1. Advertising

  3. thomas eric

    thomas eric Guest

    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
     
    thomas eric, Dec 14, 2003
    #3
  4. 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
     
    Michael Neumann, Dec 14, 2003
    #4
  5. thomas eric

    thomas eric Guest

    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: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
    >
    >
    >
     
    thomas eric, Dec 14, 2003
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ulloa
    Replies:
    1
    Views:
    537
    Juha Laiho
    Jul 22, 2004
  2. Jerome Hauss
    Replies:
    0
    Views:
    181
    Jerome Hauss
    Oct 13, 2004
  3. Asby

    Mason, DBI, and DBI::Pg

    Asby, Jul 24, 2003, in forum: Perl Misc
    Replies:
    0
    Views:
    185
  4. Tim Haynes
    Replies:
    3
    Views:
    148
    Ron Reidy
    Sep 13, 2003
  5. Chris

    DBI install failed

    Chris, May 26, 2006, in forum: Perl Misc
    Replies:
    0
    Views:
    131
    Chris
    May 26, 2006
Loading...

Share This Page