Re: Compiling & installing programs as user: finding headers

Federico Zenith <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Max-Planck-Institut
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Federico Zenith wrote:
> Henrik Carlqvist wrote:
>> Federico Zenith <[email protected]> wrote:
>>> 2) I also tried with LDFLAGS, as in:
>> LDFLAGS is used to find libraries, try CPATH to find include files.
> 
> Thanks Henrik, this did the trick:
> 
> wine-1.0 $ env LDFLAGS="-L/home/me/usr/lib"
> CPATH="/home/me/usr/include/:/home/me/usr/include/libxml/" ./configure
> --prefix=/home/me/usr/

Whoops, I spoke too soon. This makes configure work, but compilation
fails. The complete command that finally worked was:

wine-1.0 $ env LDFLAGS="-L/home/me/usr/lib -lxml2 -lxslt"
CFLAGS="-I/home/me/usr/include/libxml2/ -I/home/me/usr/include/"
CPATH="/home/me/usr/include/libxml2/:/home/me/usr/include/" ./configure
- --prefix=/home/me/usr/

I report this here for the benefit of whomever might end up with the
same issue.

- -Federico
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFIW6v3BIpu+y7DlLcRAj7uAJ0RVFBkGDYPvTDZAIG/0adr98IygwCdF6Yg
urCND2rljWZNnjzWBF/pvIo=
=Tyey
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.