LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to use multiple paths in configure env variables (https://www.linuxquestions.org/questions/linux-software-2/how-to-use-multiple-paths-in-configure-env-variables-213384/)

radam 08-04-2004 12:53 PM

How to use multiple paths in configure env variables
 
Hi,

I am trying to compile openLDAP. I am running on RH9.

I have openSSL and Berkeley DB installed in non standard locations (which I will remember not to do next time around) and I am trying to set the CPPFLAGS and LDFLAGS environment variables to point to the necessary locations. When I use this, it works fine:
Code:

env CPPFLAGS=-I/usr/local/bdb/include LDFLAGS=-L/usr/local/bdb/lib ./configure --with-crypt --with-bdb
And fine with this too:
Code:

env CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib ./configure --with-crypt --with-tls --enable-bdb=no
However, I am completely lost as to how I should combine both statements to got both tls and dbd compiled in. I have tried things such as:
Code:

env CPPFLAGS=-I/usr/local/bdb/include:/usr/local/ssl/include LDFLAGS=-L/usr/local/bdb/lib:/usr/local/ssl/lib ./configure --with-crypt --with-bdb --with-tls
But with no luck. Could anyone help me out on the syntax for this. I have a feeling that this question will be simple to anyone who has more linux experience than me.

Thanks!


Radam

radam 08-04-2004 01:31 PM

Sorry, those code sections seem to have chopped off half of each set of commands. Here it is again:

Hi,

I am trying to compile openLDAP. I am running on RH9.

I have openSSL and Berkeley DB installed in non standard locations (which I will remember not to do next time around) and I am trying to set the CPPFLAGS and LDFLAGS environment variables to point to the necessary locations. When I use this, it works fine:
env CPPFLAGS=-I/usr/local/bdb/include LDFLAGS=-L/usr/local/bdb/lib ./configure --with-crypt --with-bdb

And fine with this too:
env CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib ./configure --with-crypt --with-tls --enable-bdb=no

However, I am completely lost as to how I should combine both statements to got both tls and dbd compiled in. I have tried things such as:
env CPPFLAGS=-I/usr/local/bdb/include:/usr/local/ssl/include LDFLAGS=-L/usr/local/bdb/lib:/usr/local/ssl/lib ./configure --with-crypt --with-bdb --with-tls

But with no luck. Could anyone help me out on the syntax for this. I have a feeling that this question will be simple to anyone who has more linux experience than me.

Thanks!


Radam

radam 08-05-2004 03:35 AM

I'm sure that there must be a way to do this, can anyone help?

Please?

Radam

radam 08-17-2004 12:38 PM

Ok, just for the record, I found out how to do this. Just place the paths inside quotes and seperate them with spaces. Eg:
env CPPFLAGS="-I/usr/local/bdb/include -I/usr/local/ssl/include" LDFLAGS="-L/usr/local/bdb/lib -L/usr/local/ssl/lib" ./configure --with-crypt --with-bdb --with-tls

vsankar 07-17-2009 02:18 PM

Thank you very much!!
 
Thanks a lot for writing out the solution for this! Really appreciate this since it showed why my include files were not being seen properly!

srdjan123 04-07-2016 12:22 PM

hey man I registered just to say thanks for posting your answer, saved a lot of pain


All times are GMT -5. The time now is 06:28 PM.