Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > mysql-ruby-2.4.5 problem

Reply
Thread Tools

mysql-ruby-2.4.5 problem

 
 
William Sundberg
Guest
Posts: n/a
 
      02-03-2004
--=-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--


 
Reply With Quote
 
 
 
 
nobu.nokada@softhome.net
Guest
Posts: n/a
 
      02-03-2004
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


 
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
Problem problem problem :( Need Help Mike ASP General 2 05-11-2004 08:36 AM



Advertisments