[Serusers] Mysql.so

Marcelo Schmidt mschmidt at equinix.com
Thu Jul 3 19:13:17 CEST 2003


Thanks, that worked.  I'll let you know how it goes with NetBsd along with including mysql there too.  Later.
 
Marcelo.

	-----Original Message----- 
	From: Andrei Pelinescu-Onciul [mailto:pelinescu-onciul at fokus.fraunhofer.de] 
	Sent: Thu 7/3/2003 9:14 AM 
	To: Marcelo Schmidt 
	Cc: serusers at iptel.org 
	Subject: Re: [Serusers] Mysql.so
	
	

	On Jul 03, 2003 at 08:48, Marcelo Schmidt <mschmidt at equinix.com> wrote: 
	> Andrei, 
	> 
	> Now in FreeBSD: 
	>  
	>  ldd /usr/local/lib/ser/modules/mysql.so 
	> /usr/local/lib/ser/modules/mysql.so: 
	> ldd: /usr/local/lib/ser/modules/mysql.so: Exec format error 
	> /usr/local/lib/ser/modules/mysql.so: exit status 1 

	Yes, sorry, ldd does not work on shared libraries on FreeBSD. 
	objdump -p /usr/local/lib/ser/modules/mysql.so |grep lib  
	was the right command. 

	> 
	>  ldconfig -r |grep mysql 
	> (I got no output) 

	This means your libmysqlclient library is not in your shared library 
	cache file and the dynamic linker cannot find it. 
	(see ldconfig(8), rtld(1)). 

	You can merge your mysql libs to the system cache: 
	ldconfig -m /usr/local/mysql/lib/mysql  # you have to run it as root 

	or you can set up the environment variable LD_LIBRARY_PATH: 
	export LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql 

	However you will have to do this each time you reboot the machine. 
	To do it automatically add /usr/local/mysql/lib/mysql to 
	ld_config_paths in /etc/rc.conf: 
	ldconfig_paths="$ld_config_paths /usr/local/mysql/lib/mysql" 
	(ldconfig_paths is initialized in /etc/default/rc.conf). 


	Andrei 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20030703/3e71c30a/attachment.htm>


More information about the sr-users mailing list