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 Code:
env CPPFLAGS=-I/usr/local/ssl/include LDFLAGS=-L/usr/local/ssl/lib ./configure --with-crypt --with-tls --enable-bdb=no 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 Thanks! Radam |
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 |
I'm sure that there must be a way to do this, can anyone help?
Please? Radam |
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 |
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!
|
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. |