Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure is not finding the mysql client lib even though it is installed. #2

Closed
powertoaster opened this issue Jul 24, 2010 · 4 comments

Comments

@powertoaster
Copy link

I am running fedora core 10.

configure: error: The MySQL library libmysqlclient_r is missing!
If you're not interested in MySQL support use the --disable-mysql flag.

I am running a snort sensor on this machine, and can connect to my mysql databases just fine.

The files exist, If I do a locate I get this.
locate mysqlclient
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.so
/usr/lib/mysql/libmysqlclient.so.15
/usr/lib/mysql/libmysqlclient.so.15.0.0
/usr/lib/mysql/libmysqlclient_r.a
/usr/lib/mysql/libmysqlclient_r.so
/usr/lib/mysql/libmysqlclient_r.so.15
/usr/lib/mysql/libmysqlclient_r.so.15.0.0

Yum tells me that all of the following are installed and current.
yum list mysql
Loaded plugins: refresh-packagekit
Installed Packages
mysql.i386 5.0.88-1.fc10 @updates

yum list mysql-devel

Loaded plugins: refresh-packagekit
Installed Packages
mysql-devel.i386 5.0.88-1.fc10 @updates

yum list mysql-libs

Loaded plugins: refresh-packagekit
Installed Packages
mysql-libs.i386 5.0.88-1.fc10

I cannot find an option for the configure that will allow me to alter the search path for the mysql libs.

@beave
Copy link
Owner

beave commented Jul 28, 2010

Thanks for the info. Let me look into this tomorrow morning and i'll let you know. The autoconf/tools probably isn't finding your mysql lib's because the path isn't in the /etc/ld.so.conf. Again, I'll look tomorrow morning and close this sucker :) Thanks for the info.

@beave
Copy link
Owner

beave commented Jul 28, 2010

Updated configure.in (autotools) to support "--with-mysql-libraries" and "--with-mysql-includes". This should allow you to point to your MySQL libs/includes. Also did the same for PostgreSQL and libesmtp. This is only in the SVN tree. To get to that, do the following:
"svn checkout http://svn.softwink.com/svn/repos/sagan/trunk sagan". Please let me know if this resolves the issue so I can close this. Thanks again!

@powertoaster
Copy link
Author

Yes, that was what I needed. Once I was able to point it to the correct location it worked perfectly.
Thank you

@beave
Copy link
Owner

beave commented Jul 28, 2010

Yay.. Let me know if you run into any other problems.

beave pushed a commit that referenced this issue Jan 11, 2014
beave pushed a commit that referenced this issue Jan 11, 2014
beave pushed a commit that referenced this issue Apr 16, 2014
beave pushed a commit that referenced this issue Jan 6, 2017
beave pushed a commit that referenced this issue Jan 15, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants