This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

module with mysql-support

Old posts that have not been replied to for several years.
Locked
m
muffl0n

module with mysql-support

Post by muffl0n »

Hi,

I coded a module that uses the mysql-api to do some querys.
After a while I figured out that I have to compile eggdrop and the modules static to get the module to work.
Before this I got the error "eggdrop: error while loading shared libraries: foo.so undefined symbol: mysql_init"

Is there a way to tell eggdrop where to find the .so that contains the mysql-functions, so I don't have to compile as static?

thx in advance!
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

You have two options:

1. Install the mysql libraries in a place like /usr/lib and run /sbin/ldconfig so the system knows about them.

2. Wherever they are installed (say /home/you/lib), add that dir to your LD_LIBRARY_PATH before starting eggdrop. In .bash_profile for instance, do, export LD_LIBRARY_PATH=/home/you/lib
m
muffl0n

Post by muffl0n »

thx a lot! the soultion was too simple for me to get it myself :D
Locked