LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2004, 05:44 AM   #1
juanb
Member
 
Registered: May 2002
Posts: 401

Rep: Reputation: 30
trying to insatall mysql client without the server


Hi !!

I am trying to install mysql without the server on fedora:

when I issue the command :

[root@snort_jr_dmz snort-2.2.0]# cd ../mysql-3.23.52
[root@snort_jr_dmz mysql-3.23.52]# ./configure --without-server --prefix=/usr/local/mysql

everything is fine but after I issue the command "make I recieve the following:

[root@snort_jr_dmz mysql-3.23.52]# make
make all-recursive
make[1]: Entering directory `/snortinstall/mysql-3.23.52'
Making all in include
make[2]: Entering directory `/snortinstall/mysql-3.23.52/include'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/include'
Making all in Docs
make[2]: Entering directory `/snortinstall/mysql-3.23.52/Docs'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/Docs'
Making all in readline
make[2]: Entering directory `/snortinstall/mysql-3.23.52/readline'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/readline'
Making all in libmysql
make[2]: Entering directory `/snortinstall/mysql-3.23.52/libmysql'
/bin/sh ../libtool --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c libmysql.c
rm -f .libs/libmysql.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c libmysql.c -fPIC -DPIC -o .libs/libmysql.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c libmysql.c -o libmysql.o >/dev/null 2>&1
mv -f .libs/libmysql.lo libmysql.lo
/bin/sh ../libtool --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c net.c
rm -f .libs/net.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c net.c -fPIC -DPIC -o .libs/net.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c net.c -o net.o >/dev/null 2>&1
mv -f .libs/net.lo net.lo
/bin/sh ../libtool --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c password.c
rm -f .libs/password.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c password.c -fPIC -DPIC -o .libs/password.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c password.c -o password.o >/dev/null 2>&1
mv -f .libs/password.lo password.lo
/bin/sh ../libtool --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c get_password.c
rm -f .libs/get_password.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c get_password.c -fPIC -DPIC -o .libs/get_password.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c get_password.c -o get_password.o >/dev/null 2>&1
mv -f .libs/get_password.lo get_password.lo
/bin/sh ../libtool --mode=compile gcc -DDEFAULT_CHARSET_HOME="\"/usr/local/mysql\"" -DDATADIR="\"/usr/local/mysql/var\"" -DSHAREDIR="\"/usr/local/mysql/share/mysql\"" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c ctype.c
rm -f .libs/ctype.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c ctype.c -fPIC -DPIC -o .libs/ctype.lo
gcc -DDEFAULT_CHARSET_HOME=\"/usr/local/mysql\" -DDATADIR=\"/usr/local/mysql/var\" -DSHAREDIR=\"/usr/local/mysql/share/mysql\" -DUNDEF_THREADS_HACK -DDONT_USE_RAID -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -c ctype.c -o ctype.o >/dev/null 2>&1
mv -f .libs/ctype.lo ctype.lo
/bin/sh ../libtool --mode=link gcc -O3 -DDBUG_OFF -rdynamic -o libmysqlclient.la -rpath /usr/local/mysql/lib/mysql -version-info 10:0:0 libmysql.lo net.lo violite.lo password.lo get_password.lo errmsg.lo my_init.lo my_static.lo my_malloc.lo my_realloc.lo my_create.lo my_delete.lo mf_tempfile.lo my_open.lo mf_casecnv.lo my_read.lo my_write.lo errors.lo my_error.lo my_getwd.lo my_div.lo mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo mf_wcomp.lo typelib.lo safemalloc.lo my_alloc.lo mf_format.lo mf_path.lo mf_unixpath.lo my_fopen.lo my_symlink.lo my_fstream.lo mf_loadpath.lo my_pthread.lo my_thr_init.lo thr_mutex.lo mulalloc.lo string.lo default.lo my_compress.lo array.lo my_once.lo list.lo my_net.lo charset.lo hash.lo mf_iocache.lo my_seek.lo my_pread.lo mf_cache.lo my_gethostbyname.lo my_port.lo getopt.lo getopt1.lo getvar.lo my_lib.lo strmov.lo strxmov.lo strnmov.lo strmake.lo strend.lo strnlen.lo strfill.lo is_prefix.lo int2str.lo str2int.lo strinstr.lo strcont.lo strcend.lo bchange.lo bmove.lo bmove_upp.lo longlong2str.lo strtoull.lo strtoll.lo llstr.lo ctype.lo dbug.lo -lz -lcrypt -lnsl -lm
rm -fr .libs/libmysqlclient.la .libs/libmysqlclient.* .libs/libmysqlclient.*
gcc -shared libmysql.lo net.lo violite.lo password.lo get_password.lo errmsg.lo my_init.lo my_static.lo my_malloc.lo my_realloc.lo my_create.lo my_delete.lo mf_tempfile.lo my_open.lo mf_casecnv.lo my_read.lo my_write.lo errors.lo my_error.lo my_getwd.lo my_div.lo mf_pack.lo my_messnc.lo mf_dirname.lo mf_fn_ext.lo mf_wcomp.lo typelib.lo safemalloc.lo my_alloc.lo mf_format.lo mf_path.lo mf_unixpath.lo my_fopen.lo my_symlink.lo my_fstream.lo mf_loadpath.lo my_pthread.lo my_thr_init.lo thr_mutex.lo mulalloc.lo string.lo default.lo my_compress.lo array.lo my_once.lo list.lo my_net.lo charset.lo hash.lo mf_iocache.lo my_seek.lo my_pread.lo mf_cache.lo my_gethostbyname.lo my_port.lo getopt.lo getopt1.lo getvar.lo my_lib.lo strmov.lo strxmov.lo strnmov.lo strmake.lo strend.lo strnlen.lo strfill.lo is_prefix.lo int2str.lo str2int.lo strinstr.lo strcont.lo strcend.lo bchange.lo bmove.lo bmove_upp.lo longlong2str.lo strtoull.lo strtoll.lo llstr.lo ctype.lo dbug.lo -lz -lcrypt -lnsl -lm -lc -Wl,-soname -Wl,libmysqlclient.so.10 -o .libs/libmysqlclient.so.10.0.0
(cd .libs && rm -f libmysqlclient.so.10 && ln -s libmysqlclient.so.10.0.0 libmysqlclient.so.10)
(cd .libs && rm -f libmysqlclient.so && ln -s libmysqlclient.so.10.0.0 libmysqlclient.so)
ar cru .libs/libmysqlclient.a libmysql.o net.o violite.o password.o get_password.o errmsg.o my_init.o my_static.o my_malloc.o my_realloc.o my_create.o my_delete.o mf_tempfile.o my_open.o mf_casecnv.o my_read.o my_write.o errors.o my_error.o my_getwd.o my_div.o mf_pack.o my_messnc.o mf_dirname.o mf_fn_ext.o mf_wcomp.o typelib.o safemalloc.o my_alloc.o mf_format.o mf_path.o mf_unixpath.o my_fopen.o my_symlink.o my_fstream.o mf_loadpath.o my_pthread.o my_thr_init.o thr_mutex.o mulalloc.o string.o default.o my_compress.o array.o my_once.o list.o my_net.o charset.o hash.o mf_iocache.o my_seek.o my_pread.o mf_cache.o my_gethostbyname.o my_port.o getopt.o getopt1.o getvar.o my_lib.o strmov.o strxmov.o strnmov.o strmake.o strend.o strnlen.o strfill.o is_prefix.o int2str.o str2int.o strinstr.o strcont.o strcend.o bchange.o bmove.o bmove_upp.o longlong2str.o strtoull.o strtoll.o llstr.o ctype.o dbug.o
ranlib .libs/libmysqlclient.a
creating libmysqlclient.la
(cd .libs && rm -f libmysqlclient.la && ln -s ../libmysqlclient.la libmysqlclient.la)
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/libmysql'
Making all in client
make[2]: Entering directory `/snortinstall/mysql-3.23.52/client'
g++ -DUNDEF_THREADS_HACK -I./../include -I../include -I./.. -I.. -I.. -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -c mysql.cc
/bin/sh ../libtool --mode=link g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses ../libmysql/libmysqlclient.la -lz -lcrypt -lnsl -lm
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses ../libmysql/.libs/libmysqlclient.so -lz -lcrypt -lnsl -lm -lz -lcrypt -lnsl -lm -Wl,--rpath -Wl,/usr/local/mysql/lib/mysql
mysql.o(.text+0x1849): In function `com_source(String*, char*)':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make[2]: *** [mysql] Error 1
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/client'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/snortinstall/mysql-3.23.52'
make: *** [all-recursive-am] Error 2

and if i issue the command " make install" I receive:

[root@snort_jr_dmz mysql-3.23.52]# make install
Making install in include
make[1]: Entering directory `/snortinstall/mysql-3.23.52/include'
make[2]: Entering directory `/snortinstall/mysql-3.23.52/include'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/mysql/include/mysql
/usr/bin/install -c -m 644 dbug.h /usr/local/mysql/include/mysql/dbug.h
/usr/bin/install -c -m 644 m_string.h /usr/local/mysql/include/mysql/m_string.h
/usr/bin/install -c -m 644 my_sys.h /usr/local/mysql/include/mysql/my_sys.h
/usr/bin/install -c -m 644 mysql.h /usr/local/mysql/include/mysql/mysql.h
/usr/bin/install -c -m 644 mysql_com.h /usr/local/mysql/include/mysql/mysql_com.h
/usr/bin/install -c -m 644 mysqld_error.h /usr/local/mysql/include/mysql/mysqld_error.h
/usr/bin/install -c -m 644 my_list.h /usr/local/mysql/include/mysql/my_list.h
/usr/bin/install -c -m 644 my_pthread.h /usr/local/mysql/include/mysql/my_pthread.h
/usr/bin/install -c -m 644 my_no_pthread.h /usr/local/mysql/include/mysql/my_no_pthread.h
/usr/bin/install -c -m 644 raid.h /usr/local/mysql/include/mysql/raid.h
/usr/bin/install -c -m 644 errmsg.h /usr/local/mysql/include/mysql/errmsg.h
/usr/bin/install -c -m 644 my_global.h /usr/local/mysql/include/mysql/my_global.h
/usr/bin/install -c -m 644 my_net.h /usr/local/mysql/include/mysql/my_net.h
/usr/bin/install -c -m 644 sslopt-case.h /usr/local/mysql/include/mysql/sslopt-case.h
/usr/bin/install -c -m 644 sslopt-longopts.h /usr/local/mysql/include/mysql/sslopt-longopts.h
/usr/bin/install -c -m 644 sslopt-usage.h /usr/local/mysql/include/mysql/sslopt-usage.h
/usr/bin/install -c -m 644 sslopt-vars.h /usr/local/mysql/include/mysql/sslopt-vars.h
/usr/bin/install -c -m 644 mysql_version.h /usr/local/mysql/include/mysql/mysql_version.h
/usr/bin/install -c -m 644 m_ctype.h /usr/local/mysql/include/mysql/m_ctype.h
/usr/bin/install -c -m 644 my_config.h /usr/local/mysql/include/mysql/my_config.h
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/include'
make[1]: Leaving directory `/snortinstall/mysql-3.23.52/include'
Making install in Docs
make[1]: Entering directory `/snortinstall/mysql-3.23.52/Docs'
make[2]: Entering directory `/snortinstall/mysql-3.23.52/Docs'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/mysql/info
/usr/bin/install -c -m 644 ./mysql.info /usr/local/mysql/info/mysql.info
install-info --info-dir=/usr/local/mysql/info /usr/local/mysql/info/mysql.info
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/Docs'
make[1]: Leaving directory `/snortinstall/mysql-3.23.52/Docs'
Making install in readline
make[1]: Entering directory `/snortinstall/mysql-3.23.52/readline'
make[2]: Entering directory `/snortinstall/mysql-3.23.52/readline'
make[2]: Nothing to be done for `install-exec-am'.
/bin/sh ../mkinstalldirs /usr/local/mysql/include/mysql
/usr/bin/install -c -m 644 readline.h /usr/local/mysql/include/mysql/readline.h
/usr/bin/install -c -m 644 chardefs.h /usr/local/mysql/include/mysql/chardefs.h
/usr/bin/install -c -m 644 keymaps.h /usr/local/mysql/include/mysql/keymaps.h
/usr/bin/install -c -m 644 history.h /usr/local/mysql/include/mysql/history.h
/usr/bin/install -c -m 644 tilde.h /usr/local/mysql/include/mysql/tilde.h
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/readline'
make[1]: Leaving directory `/snortinstall/mysql-3.23.52/readline'
Making install in libmysql
make[1]: Entering directory `/snortinstall/mysql-3.23.52/libmysql'
make[2]: Entering directory `/snortinstall/mysql-3.23.52/libmysql'
/bin/sh ../mkinstalldirs /usr/local/mysql/lib/mysql
/bin/sh ../libtool --mode=install /usr/bin/install -c libmysqlclient.la /usr/local/mysql/lib/mysql/libmysqlclient.la
/usr/bin/install -c .libs/libmysqlclient.so.10.0.0 /usr/local/mysql/lib/mysql/libmysqlclient.so.10.0.0
(cd /usr/local/mysql/lib/mysql && rm -f libmysqlclient.so.10 && ln -s libmysqlclient.so.10.0.0 libmysqlclient.so.10)
(cd /usr/local/mysql/lib/mysql && rm -f libmysqlclient.so && ln -s libmysqlclient.so.10.0.0 libmysqlclient.so)
/usr/bin/install -c .libs/libmysqlclient.lai /usr/local/mysql/lib/mysql/libmysqlclient.la
/usr/bin/install -c .libs/libmysqlclient.a /usr/local/mysql/lib/mysql/libmysqlclient.a
ranlib /usr/local/mysql/lib/mysql/libmysqlclient.a
chmod 644 /usr/local/mysql/lib/mysql/libmysqlclient.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/mysql/lib/mysql
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/mysql/lib/mysql

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/snortinstall/mysql-3.23.52/libmysql'
make[1]: Leaving directory `/snortinstall/mysql-3.23.52/libmysql'
Making install in client
make[1]: Entering directory `/snortinstall/mysql-3.23.52/client'
/bin/sh ../libtool --mode=link g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses ../libmysql/libmysqlclient.la -lz -lcrypt -lnsl -lm
g++ -O3 -DDBUG_OFF -fno-implicit-templates -fno-exceptions -fno-rtti -rdynamic -o .libs/mysql mysql.o readline.o sql_string.o completion_hash.o ../readline/libreadline.a -lncurses ../libmysql/.libs/libmysqlclient.so -lz -lcrypt -lnsl -lm -lz -lcrypt -lnsl -lm -Wl,--rpath -Wl,/usr/local/mysql/lib/mysql
mysql.o(.text+0x1849): In function `com_source(String*, char*)':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make[1]: *** [mysql] Error 1
make[1]: Leaving directory `/snortinstall/mysql-3.23.52/client'
make: *** [install-recursive] Error 1


can someone Please help ?

I just need the client to use it with Snort IDS !!!

thanks !!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 02:13 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
Setting up a home web server with PHP, MySQL, and a mail client Kyle_D Linux - General 1 01-14-2005 01:52 AM
how i can set my windows client to use my mysql server as database sandeepchau123 Linux - Networking 0 11-20-2003 06:34 AM
Question: Linux mySQL server + Win32 client ascii2k Linux - General 3 08-29-2001 11:08 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration