For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > August 2004 > Re: configure error: need to define an include path via -I in CPPFLAGS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: configure error: need to define an include path via -I in CPPFLAGS
Lőrinczy Zsigmond

2004-08-19, 4:06 pm

Derek wrote:

> Hi,
>
> I need to install a software package on Unix. When I ran
> "./configure", I got the following error message:
>
> configure: error: Couldn't find ltdl.h which is required and
> part of the libtool distribution. You probably
> need to define an include path via a -I in CPPFLAGS
>
> I know where ltdl.h is, but don't know how to add -I in CPPFLAGS.


Perhaps a shell variable will solve this:
export CPPFLAGS=-Isomewhere
../configure
Mac

2004-08-20, 8:56 am

On Thu, 19 Aug 2004 21:07:14 +0200, Lõrinczy Zsigmond wrote:
> Derek wrote:
>
>
> Perhaps a shell variable will solve this:
> export CPPFLAGS=-Isomewhere
> ./configure


If you use a cshell type shell, the above syntax won't work. I believe
the correct syntax for setting an environment variable in cshell type
shells is as follows:

setenv CPPFLAGS -I/path/to/ltdl.h
./configure

--Mac

Fred L. Kleinschmidt

2004-08-20, 3:58 pm



L?rinczy Zsigmond wrote:
>
> Derek wrote:
>
>
> Perhaps a shell variable will solve this:
> export CPPFLAGS=-Isomewhere
> ./configure


Probably better to keep any old settings:
export CPPFLAGS="$CPPFLAGS -Isomewhere"
and something similar if using csh.

--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Common User Interface Services
M/S 2R-94 (206)544-5225
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com