I know I am beginning to sound whiney... but I need help :/

Discussion in 'Ruby' started by Mike J., Mar 7, 2004.

  1. Mike J.

    Mike J. Guest

    ...but now I have rebuilt my system, and installed ruby, installed
    sqlite (which I know works because I have created a database replete
    with tables and data and other apps see it, like BeAccessible) but when
    I try to install ruby-dbi or sqlite-ruby it bombs.

    $ ruby -v
    ruby 1.6.4 (2001-06-04) [i586-beos]

    sqlite-ruby:

    $ ruby extconf.rb
    checking for main() in -lsqlite... no
    checking for sqlite.h... yes
    checking for sqlite_open() in -lsqlite... no

    ruby-dbi:

    $ ruby setup.rb show
    bin-dir /boot/home/config/bin
    rb-dir /boot/home/config/lib/ruby/site_ruby/1.6
    so-dir /boot/home/config/lib/ruby/site_ruby/1.6/i586-beos
    ruby-path /boot/home/config/bin/ruby
    make-prog make
    with dbi,dbd_sqlite
    without (not specified)
    $

    $ ruby setup.rb setup
    entering setup phase...
    setting #! line to "#!/boot/home/config/bin/ruby"
    setup.rb: skip bin/proxyserver(dbd_proxy) by user option
    /boot/home/config/bin/ruby extconf.rb
    checking for sqlite_open() in -lsqlite... no
    make
    make: *** No targets. Stop.
    setup failed
    'system make' failed
    try "ruby setup.rb --help" for usage
    $

    I am at my wits end!! Does anyone have ANY idea what could be going
    wrong?? As I said, other applications see sqlite just fine, why can't
    ruby pick it up??
     
    Mike J., Mar 7, 2004
    #1
    1. Advertising

  2. Mike J.

    Jamis Buck Guest

    Mike J. wrote:
    > ...but now I have rebuilt my system, and installed ruby, installed
    > sqlite (which I know works because I have created a database replete
    > with tables and data and other apps see it, like BeAccessible) but when
    > I try to install ruby-dbi or sqlite-ruby it bombs.
    >
    > $ ruby -v
    > ruby 1.6.4 (2001-06-04) [i586-beos]
    >
    > sqlite-ruby:
    >
    > $ ruby extconf.rb
    > checking for main() in -lsqlite... no
    > checking for sqlite.h... yes
    > checking for sqlite_open() in -lsqlite... no
    >


    Try looking in the mkmf.log file -- it should explain why the last check
    is failing. Or, email it (mkmf.log) to me (directly:
    ) and I'll take a look at it (I'm the author of
    sqlite-ruby, so I suppose it's my responsibility...;)).

    - Jamis

    --
    Jamis Buck

    http://www.jamisbuck.org/jamis

    ruby -h | ruby -e
    'a=[];readlines.join.scan(/-(.)\[e|Kk(\S*)|le.l(..)e|#!(\S*)/) {|r| a <<
    r.compact.first };puts "\n>#{a.join(%q/ /)}<\n\n"'
     
    Jamis Buck, Mar 7, 2004
    #2
    1. Advertising

  3. Mike J.

    daz Guest

    Jamis Buck wrote:
    > Mike J. wrote:
    > >
    > > $ ruby -v
    > > ruby 1.6.4 (2001-06-04) [i586-beos]
    > >
    > > sqlite-ruby:
    > >
    > > $ ruby extconf.rb
    > > checking for main() in -lsqlite... no
    > > checking for sqlite.h... yes
    > > checking for sqlite_open() in -lsqlite... no
    > >

    >
    > Try looking in the mkmf.log file -- it should explain why the last check
    > is failing. Or, email it (mkmf.log) to me (directly:
    > ) and I'll take a look at it (I'm the author of
    > sqlite-ruby, so I suppose it's my responsibility...;)).
    >
    > - Jamis
    >


    I added a dir_config to the extconf.rb file to install.

    "D:/SQLite" <your path here> contains two sub-directories (include & lib)
    which mkmf.rb uses to create the Makefile. Without this, sqlite.h and
    sqlite.lib are sought in the <?>standard search path</?>.

    #-----------------------
    require 'mkmf'

    dir_config("sqlite", "D:/SQLite") # <--- ADDED line

    have_library( "sqlite" )
    if have_header( "sqlite.h" ) and have_library( "sqlite", "sqlite_open" )
    create_makefile( "_sqlite" )
    end
    #-----------------------

    dir_config allows command line parameters of (e.g.) ...
    --with-sqlite-lib=usr/local/env/dev/nul/blah
    (That's one Windows user's idea of a non-Windows pathname)


    daz
     
    daz, Mar 7, 2004
    #3
    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. Luc The Perverse

    Sound Quality In Sound API

    Luc The Perverse, Oct 30, 2005, in forum: Java
    Replies:
    4
    Views:
    1,489
    Andrew Thompson
    Oct 31, 2005
  2. Replies:
    0
    Views:
    507
  3. Jesse B.
    Replies:
    9
    Views:
    236
    Jesse B.
    Mar 27, 2010
  4. Andries

    I know, I know, I don't know

    Andries, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    237
    Gregory Toomey
    Apr 23, 2004
  5. Replies:
    1
    Views:
    594
Loading...

Share This Page