Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my '/usr/include/mysql' doesn't exist!!!

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
Hi.

Using MySQL v4.0.3 on Linux.

I don't know how MySQL was installed my 'mysql_config' is only at:
'/usr/src/redhat/BUILD/mysql-4.1.9/scripts/mysql_config'
-------------
[root@server]# /usr/src/redhat/BUILD/mysql-4.1.9/scripts/mysql_config
Usage: /usr/src/redhat/BUILD/mysql-4.1.9/scripts/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/include/mysql -g -pipe -m32 -march=i386 -mcpu=i686]
--include [-I/usr/include/mysql]
--libs [-L/usr/lib/mysql -lmysqlclient -lcrypt -lnsl -lm -lz]
--libs_r [-L/usr/lib/mysql -lmysqlclient_r -lpthread -lcrypt -lnsl -lm -lpthread -lz]
--socket [/var/lib/mysql/mysql.sock]
--port [3306]
--version [4.1.9]
--libmysqld-libs [-L/usr/lib/mysql -lmysqld -lpthread -lcrypt -lnsl -lm -lpthread -lrt -lcrypt -lnsl -lm -lz]
-----------

But my '/usr/include/mysql' doesn't exist!!!

The unique directory where 'mysql.h' is:
----------------
[root@server]# locate mysql.h
/usr/src/redhat/BUILD/mysql-4.1.9/include/mysql.h
----------------

What's the better way to fix this issue?
1) Creating a '/usr/include/mysql' by hand
2) Modifying 'mysql_config'

Thank you very much.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top