Re: can't find mysql.h
Steve Holdoway <[email protected]> Sat, 10 Dec 2011 14:51:35 +1300
| Newsgroups | gmane.org.user-groups.linux.new-zealand.general |
|---|---|
| Organization | Green Gecko Global Ltd. |
| Message-ID | <1323481895.16572.146.camel@steve-desktop> |
--===============0787847630== Content-Type: multipart/signed; micalg="sha1"; protocol="application/x-pkcs7-signature"; boundary="=-TuKev+C5pXXWuN4jC9ju" --=-TuKev+C5pXXWuN4jC9ju Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 2011-12-10 at 10:22 +1100, John Reid wrote: > I recently purchased i386 Debian 6.0.3 which included LAMP. >=20 > I have got my server up and working (with no GUIs) and I am talking to it > via ftp and Apache from clients on the LAN. Works fine. MySQL works fine > from the command line. >=20 > But I can't find mysql.h and various mysql libraries required when runnin= g > MySQL as an API from C code, i.e. >=20 > find / | grep mysql.h >=20 > draws a blank. >=20 > I have tried apt-get on libmysqlclient-dev and mysql-server-5.1. apt-get > tells me the latter is up-to-date. Whatever. I still can't find mysql.h. > Has the use of C header files within Debian Linux been deprecated or am I > doing something wrong? >=20 > I have spent days searching the Web for some clues on this but nothing > seems relevant. Should I uninstall mysql-server-5.1 and then install it > again? I am cautious about copying libraries and include files from > elsewhere if they are not part of a Debian package. Purchased?=20 apt-get install libmysqlclient-dev=20 should do it. If you're looking to keep more up to date but losing the advantages of the mainstream debian ( mainly the volume of testing ), then echo deb http://packages.dotdeb.org squeeze all >> /etc/apt/sources.list apt-get update && apt-get upgrade beforehand. This will upgrade you to mysql 5.5, php 5.3.8 and a few others which may be of use. ( sudo will be needed if not superuser ). hth, Steve --=20 Steve Holdoway BSc(Hons) MNZCS <[email protected]> http://www.greengecko.co.nz MSN: [email protected] Skype: sholdowa --=-TuKev+C5pXXWuN4jC9ju-- --===============0787847630== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ NZLUG mailing list [email protected] http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug --===============0787847630==--