<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>

<META NAME="Generator" CONTENT="MS Exchange Server version 6.0.6396.0">
<TITLE>Re: [Serusers] Mysql.so</TITLE>
</HEAD>
<BODY dir=ltr>
<DIV>Thanks, that worked.&nbsp; I'll let you know how it goes with NetBsd along 
with including mysql there too.&nbsp; Later.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Marcelo.</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Andrei 
  Pelinescu-Onciul [mailto:pelinescu-onciul@fokus.fraunhofer.de] 
  <BR><B>Sent:</B> Thu 7/3/2003 9:14 AM <BR><B>To:</B> Marcelo Schmidt 
  <BR><B>Cc:</B> serusers@iptel.org <BR><B>Subject:</B> Re: [Serusers] 
  Mysql.so<BR><BR></FONT></DIV>
  <P><FONT size=2>On Jul 03, 2003 at 08:48, Marcelo Schmidt 
  &lt;mschmidt@equinix.com&gt; wrote:</FONT> <BR><FONT size=2>&gt; 
  Andrei,</FONT> <BR><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt; Now in 
  FreeBSD:</FONT> <BR><FONT size=2>&gt;&nbsp; </FONT><BR><FONT size=2>&gt;&nbsp; 
  ldd /usr/local/lib/ser/modules/mysql.so</FONT> <BR><FONT size=2>&gt; 
  /usr/local/lib/ser/modules/mysql.so:</FONT> <BR><FONT size=2>&gt; ldd: 
  /usr/local/lib/ser/modules/mysql.so: Exec format error</FONT> <BR><FONT 
  size=2>&gt; /usr/local/lib/ser/modules/mysql.so: exit status 1</FONT> </P>
  <P><FONT size=2>Yes, sorry, ldd does not work on shared libraries on 
  FreeBSD.</FONT> <BR><FONT size=2>objdump -p 
  /usr/local/lib/ser/modules/mysql.so |grep lib&nbsp; </FONT><BR><FONT 
  size=2>was the right command.</FONT> </P>
  <P><FONT size=2>&gt; </FONT><BR><FONT size=2>&gt;&nbsp; ldconfig -r |grep 
  mysql</FONT> <BR><FONT size=2>&gt; (I got no output)</FONT> </P>
  <P><FONT size=2>This means your libmysqlclient library is not in your shared 
  library</FONT> <BR><FONT size=2>cache file and the dynamic linker cannot find 
  it.</FONT> <BR><FONT size=2>(see ldconfig(8), rtld(1)).</FONT> </P>
  <P><FONT size=2>You can merge your mysql libs to the system cache:</FONT> 
  <BR><FONT size=2>ldconfig -m /usr/local/mysql/lib/mysql&nbsp; # you have to 
  run it as root</FONT> </P>
  <P><FONT size=2>or you can set up the environment variable 
  LD_LIBRARY_PATH:</FONT> <BR><FONT size=2>export 
  LD_LIBRARY_PATH=/usr/local/mysql/lib/mysql </FONT></P>
  <P><FONT size=2>However you will have to do this each time you reboot the 
  machine. </FONT><BR><FONT size=2>To do it automatically add 
  /usr/local/mysql/lib/mysql to</FONT> <BR><FONT size=2>ld_config_paths in 
  /etc/rc.conf: </FONT><BR><FONT size=2>ldconfig_paths="$ld_config_paths 
  /usr/local/mysql/lib/mysql" </FONT><BR><FONT size=2>(ldconfig_paths is 
  initialized in /etc/default/rc.conf).</FONT> </P><BR>
  <P><FONT size=2>Andrei</FONT> </P></BLOCKQUOTE>

</BODY>
</HTML>