mysql-ruby-2.4.5 problem

  • Thread starter William Sundberg
  • Start date
W

William Sundberg

--=-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 */
 
N

nobu.nokada

Hi,

At Wed, 4 Feb 2004 05:13:16 +0900,
William said:
"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.
 

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,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top