LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2004, 12:53 PM   #1
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Rep: Reputation: 15
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
 
Old 08-04-2004, 01:31 PM   #2
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 08-05-2004, 03:35 AM   #3
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
I'm sure that there must be a way to do this, can anyone help?

Please?

Radam
 
Old 08-17-2004, 12:38 PM   #4
radam
Member
 
Registered: Jun 2004
Distribution: Mandrake 10.0/Fedora Core 2
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 07-17-2009, 02:18 PM   #5
vsankar
LQ Newbie
 
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
Thumbs up 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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron and shell env variables lt_wentoncha Suse/Novell 5 07-16-2005 01:20 PM
setting env. variables arunsri Slackware 3 03-26-2005 05:49 AM
where are the env variables set on boot? Pete Dogg Linux - Software 1 09-10-2003 02:37 AM
setting env variables globally raven Linux - General 6 02-21-2003 08:04 AM
Open GL env.variables UB_KMA Linux - Newbie 1 08-04-2002 05:41 PM


All times are GMT -5. The time now is 07:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration