Re: Problem compiling
Sam Varshavchik <[email protected]> Mon, 13 Nov 2006 17:52:31 -0500
| Newsgroups | gmane.comp.lib.libwww |
|---|---|
| Message-ID | <[email protected]> |
This is a MIME-formatted message. If you see this text it means that your E-mail software does not support MIME-formatted messages. --=_commodore.email-scan.com-13699-1163458355-0001-2 Content-Type: text/plain; format=flowed; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable X-Mime-Autoconverted: from 8bit to quoted-printable by mimegpg John Coppens writes: > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include -I../../module= s/md5 -I../../modules/expat/xmlparse -DW3C_ICONS=3D\"/usr/local/share/w3c= -libwww\" -g -O2 -Wall -c HTSQL.c -fPIC -DPIC -o .libs/HTSQL.lo > In file included from HTSQL.c:19: > HTSQL.h:34:25: mysql/mysql.h: No such file or directory > In file included from HTSQL.c:19: > HTSQL.h:97: error: syntax error before '*' token > HTSQL.h:97: warning: type defaults to `int' in declaration of `HTSQL_ge= tMysql' >=20 > mysql/mysql.h does exist, under /opt/mysql/include Well, there's your problem right there. I do not see the "-I=20 /opt/mysql/include" option anywhere. > I'm no expert programmer, but I did compile a few apps (including some = of my own) > with mysql without problems... >=20 > Please help... Fixing the configuration option should solve your immediate problem. =20 However the best help you can have is some advice NOT to do what you've b= een=20 doing: manually compiling large software packages and installing them in=20 various random locations, by hand. You did not mention what platform you're running. All major Linux=20 distributions, various BSD flavors, and other platforms -- they all have=20 their own tools for managing software package deployment, and maintenance = --=20 rpm and apt on Linux, ports on BSD, etc=E2=80=A6 They're there for a rea= son, to=20 make sure that all software gets properly integrated into the system, so = you=20 don't end up in the situation you just ended up in, right now. Rather than building MySQL by hand, and installing it into some nonstanda= rd=20 directory, it would've been better for you to simply install a=20 pre-configured mysql build, that your platform's software package manager = is=20 likely to be able to install, just by asking it to. --=_commodore.email-scan.com-13699-1163458355-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFWPcvx9p3GYHlUOIRAmXKAJ9NODAIf0lay3vv8uurIc16MAQdWACfcX9v F1T8UGCyTk2mC1TnF+sIh+Y= =5aTp -----END PGP SIGNATURE----- --=_commodore.email-scan.com-13699-1163458355-0001-2--