_Qwerty_ Posted July 30, 2004 Report Share Posted July 30, 2004 Hello! I have an Mandrake 9.2 computer with MySQL 4.0.15 running. I found a neat software on sourceforge called discdb that have a makefile that i need to edit, I need to enter the path to the libs for mysql for instance. And also for any mysql incs Someone told me I should use "mysql_config --libs" to find out where they are, but i dont have any file called "mysql_config" and I have searched my computer and i cant find any config file for Mysqld. people have suggested there should be an mysql config file either in /etc/my.cnf or /var/lib/mysql/my.cnf but i have neither, in fact i have searched the whole filesystem without finding any file. perhaps i should remove the mysql mandrake have given me, and install a newer version from source that will have things in known places. 4.0.15 is rather old. Quote Link to comment Share on other sites More sharing options...
_Qwerty_ Posted August 20, 2004 Author Report Share Posted August 20, 2004 I have now installed Mandrake 10.0 and that way bumped mysql version up to 4.0.18 :) This software im trying to compile has a Makefile that the README says i should edit a few lines of, it looks like this: # User configurable MYSQL=/usr/local/bin/mysql MYSQL_LIBS=-L/usr/local/lib/mysql MYSQL_INCS=-I/usr/local/include/mysql MYSQLPP_INCS=-I/usr/include/mysql++ INSTALLDIR=$(RPM_BUILD_ROOT)/usr/local RPM_ROOT=/usr/src/redhat I found my mysql executable like this: [qwerty@qwerty discdb-0.4]$ whereis mysql mysql: /usr/bin/mysql but how do I find out any "MYSQL_INCS" or "MYSQL_LIBS"? Quote Link to comment Share on other sites More sharing options...
Padma Posted August 20, 2004 Report Share Posted August 20, 2004 MYSQL_INCS and MYSQL_LIBS are not files, but are macros in the makefile. Just edit the makefile so the paths they display read "/usr/bin/mysql", like the MYSQL macro. (But don't delete the parts that say "-I' and "-L".) :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.