mysql-ruby-2.4.5 problem

Discussion in 'Ruby' started by William Sundberg, Feb 3, 2004.

  1. --=-spKdg9uAI3Y4+jYWcE6X
    Content-Type: text/plain
    Content-Transfer-Encoding: 7bit

    Hi I am trying to install the MySql module but receive the following
    error:

    ruby extconf.rb --with-mysql-dir=/usr/local/mysql-4.0.17
    checking for mysql_query() in -lmysqlclient... no
    checking for main() in -lm... yes
    checking for mysql_query() in -lmysqlclient... no
    checking for main() in -lz... yes
    checking for mysql_query() in -lmysqlclient... no
    checking for main() in -lsocket... no
    checking for mysql_query() in -lmysqlclient... no
    checking for main() in -lnsl... yes
    checking for mysql_query() in -lmysqlclient... no

    I have just upgraded my MySql server to version: 4.0.17.






    --=-spKdg9uAI3Y4+jYWcE6X
    Content-Disposition: attachment; filename=mkmf.log
    Content-Transfer-Encoding: quoted-printable
    Content-Type: text/plain; name=mkmf.log; charset=UTF-8

    find_library: checking for mysql_query() in -lmysqlclient... --------------=
    ------ no

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lruby-static -lmysqlcl=
    ient -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lruby-static -lmysqlcl=
    ient -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lruby-static -lmysqlcl=
    ient -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lruby-static -lmysqlcl=
    ient -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lruby-static -lmysqlclient -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lruby-static -lmysqlclient -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    --------------------

    have_library: checking for main() in -lm... -------------------- yes

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lruby-static -lm -ldl=
    -lcrypt -lm -lc"
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { main(); return 0; }
    /* end */

    --------------------

    find_library: checking for mysql_query() in -lmysqlclient... --------------=
    ------ no

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lm -lruby-static -lmys=
    qlclient -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lm -lruby-static -lmys=
    qlclient -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lm -lruby-static -lmys=
    qlclient -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lm -lruby-static -lmys=
    qlclient -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lm -lruby-static -lmysqlclient -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lm -lruby-static -lmysqlclient -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    --------------------

    have_library: checking for main() in -lz... -------------------- yes

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lm -lruby-static -lz -=
    lm -ldl -lcrypt -lm -lc"
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { main(); return 0; }
    /* end */

    --------------------

    find_library: checking for mysql_query() in -lmysqlclient... --------------=
    ------ no

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lz -lm -lruby-static -lmysqlclient -lz -lm -ldl -lcrypt -l=
    m -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lz -lm -lruby-static -lmysqlclient -lz -lm -ldl -lcrypt -l=
    m -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    --------------------

    have_library: checking for main() in -lsocket... -------------------- no

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lsocket -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lsocket
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { main(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lsocket -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lsocket
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))main; return 0; }
    /* end */

    --------------------

    find_library: checking for mysql_query() in -lmysqlclient... --------------=
    ------ no

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lmysqlclient -lz -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lz -lm -lruby-static -lmysqlclient -lz -lm -ldl -lcrypt -l=
    m -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lz -lm -lruby-static -lmysqlclient -lz -lm -ldl -lcrypt -l=
    m -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    --------------------

    have_library: checking for main() in -lnsl... -------------------- yes

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lz -lm -lruby-static -=
    lnsl -lz -lm -ldl -lcrypt -lm -lc"
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { main(); return 0; }
    /* end */

    --------------------

    find_library: checking for mysql_query() in -lmysqlclient... --------------=
    ------ no

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lnsl -lz -lm -lruby-st=
    atic -lmysqlclient -lnsl -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lnsl -lz -lm -lruby-st=
    atic -lmysqlclient -lnsl -lz -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lnsl -lz -lm -lruby-st=
    atic -lmysqlclient -lnsl -lz -lm -ldl -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lnsl -lz -lm -lruby-st=
    atic -lmysqlclient -lnsl -lz -lm -ldl -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lnsl -lz -lm -lruby-static -lmysqlclient -lnsl -lz -lm -ld=
    l -lcrypt -lm -lc"
    /usr/bin/ld: cannot find -lmysqlclient
    collect2: ld returned 1 exit status
    checked program was:
    /* begin */

    /*top*/
    int main() { return 0; }
    int t() { mysql_query(); return 0; }
    /* end */

    "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby=
    /1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/u=
    sr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -L"/usr/local/mysql-4.0.17/li=
    b/mysql" -lnsl -lz -lm -lruby-static -lmysqlclient -lnsl -lz -lm -ld=
    l -lcrypt -lm -lc"
    conftest.c: In function `t':
    conftest.c:5: `mysql_query' undeclared (first use in this function)
    conftest.c:5: (Each undeclared identifier is reported only once
    conftest.c:5: for each function it appears in.)
    checked program was:
    /* begin */


    /*top*/
    int main() { return 0; }
    int t() { void ((*volatile p)()); p =3D (void ((*)()))mysql_query; return 0=
    ; }
    /* end */

    --------------------


    --=-spKdg9uAI3Y4+jYWcE6X--
    William Sundberg, Feb 3, 2004
    #1
    1. Advertising

  2. William Sundberg

    Guest

    Hi,

    At Wed, 4 Feb 2004 05:13:16 +0900,
    William Sundberg wrote:
    > "gcc -o conftest -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/mysql-4.0.17/include -g -O2 conftest.c -L"/usr/local/lib" -L"/usr/local/mysql-4.0.17/lib" -lruby-static -lmysqlclient -ldl -lcrypt -lm -lc"
    > /usr/bin/ld: cannot find -lmysqlclient


    You just seems to haven't installed mysqlclient library.

    --
    Nobu Nakada
    , Feb 3, 2004
    #2
    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. JL
    Replies:
    0
    Views:
    1,142
  2. Ravi
    Replies:
    6
    Views:
    1,406
    Suchandra Thapa
    Jul 21, 2003
  3. Replies:
    2
    Views:
    6,188
  4. Randy Lawrence

    mysql-ruby or ruby-mysql?

    Randy Lawrence, May 23, 2004, in forum: Ruby
    Replies:
    3
    Views:
    106
    Randy Lawrence
    May 24, 2004
  5. Mark Meijer

    mySQL Ruby Gem and MAMP mySQL

    Mark Meijer, Feb 2, 2008, in forum: Ruby
    Replies:
    3
    Views:
    174
    louis
    Feb 3, 2008
Loading...

Share This Page