Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > What does "--with-expat-dir" mean?

What does "--with-expat-dir" mean?
Thread Tools
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Oct 6, 2006, 06:07 AM
 
What does this mean when configuring things in the command line?

--with-expat-dir
     
Junior Member
Join Date: May 2003
Location: France
Status: Offline
Reply With Quote
Oct 6, 2006, 06:36 AM
 
It's the way to specify where the directory for the expat library is located on your system.
You may have multiple versions installed on your system, or, for any other reason, want to point to a specific location on your system where that library is located. When compiling stuff from the command line, a lot of libraries are provided by apple, and usually, the ./configure script will take care of finding them if they are located on your path. But a lot are not provided by apple. So you need to get them on your system. If you install some libraries with fink, darwinports, or at hand, they're not on the standard locations (/usr/lib /usr/share ...) where the configure script would likely find it, and some programs need you to specify those paths anyway; for the sake of it (and because a lot of "unix" programs are not specific to mac os x, and paths differs on mac os x, freebsd, flavors of linux).

For example, if you install expat with darwinports, the path to it will be /opt/local/ (it's not the complete path to it, but the configure script will usually find out where it is once you provided the entry point. So I would specify --with-expat-dir=/opt/local/ if I were to compile what you want to compile on my system.

Usually, you can find out about compilation options by running :
./configure --help
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2