using libs installed with macports to build a tarball

Vincent Lefevre vincent-opdarw at
Fri Nov 23 03:15:36 PST 2007

On 2007-11-23 02:35:47 +0100, Mailing lists wrote:
>>> But I don't know where to set it. 'LIBRARY_PATH=$LIBRARY_PATH:/opt/ 
>>> local/lib ./configure'    gives me the same error, and LIBRARY_PATH  
>>> is not set at all anyway (no /usr/local/lib or /usr/lib)

This isn't a correct solution, because it would be defined only for
"configure" (but not for "make"). You should set it in your .profile
or other shell rc file. You also need to set C_INCLUDE_PATH and/or

If you want to set an environment variable only for the build process,
you should use the form:

  ./configure VAR1=value1 VAR2=value2 ...

i.e. as configure arguments.

> Thanks, that's it : ./configure --with-qt=/opt/local

But note that configure will generally use /opt/local globally, not
only for QT. This may be a problem if different versions of some
library are installed in different directories provided in such
paths: you don't know which one will be taken.

Vincent Lefèvre <vincent at> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

More information about the macports-users mailing list