Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 184693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T15:20:14+00:00 2026-05-11T15:20:14+00:00

On my system, expat is located at /usr/include/expat.h /usr/include/expat_external.h /usr/lib/libexpat.1.5.0.dylib /usr/lib/libexpat.1.dylib /usr/lib/libexpat.dylib /usr/lib/libexpat.la So

  • 0

On my system, expat is located at

 /usr/include/expat.h /usr/include/expat_external.h /usr/lib/libexpat.1.5.0.dylib /usr/lib/libexpat.1.dylib /usr/lib/libexpat.dylib /usr/lib/libexpat.la 

So I export the required variables for boost to build graphml

 export EXPAT_INCLUDE=/usr/include export EXPAT_LIBPATH=/usr/lib 

then I run (where $DIR and $BOOST generate the paths I want the includes and libs to go)

 ./configure --includedir=$DIR/$BOOST --libdir=$DIR/$BOOST/lib \              --with-libraries=test,graph 

I get this error:

 ld: library not found for -lexpat collect2: ld returned 1 exit status 

which boost says is caused by the line:

 g++ -dynamiclib -install_name 'libboost_graph-mt-1_35.dylib' -L'/usr/lib'      -o 'bin.v2/libs/graph/build/darwin/release/macosx-version-10.4/threading-multi/libboost_graph-mt-1_35.dylib'      'bin.v2/libs/graph/build/darwin/release/macosx-version-10.4/threading-multi/read_graphviz_spirit.o'      'bin.v2/libs/graph/build/darwin/release/macosx-version-10.4/threading-multi/graphml.o'        -lexpat   -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 -Wl,-dead_strip -no_dead_strip_inits_and_terms 

I don’t get how it’s not finding the expat library with -L'/usr/lib' and -lexpat as arguments? My understanding is that /usr/lib/libexpat.dylib is exactly referenced as -L'/usr/lib' and -lexpat.

The Jamfile for building graphml is here. If EXPAT_INCLUDE and EXPAT_LIBPATH aren’t set then it warns you (lines 39-41 of jamfile)

warning: Graph library does not contain optional GraphML reader.
note: to enable GraphML support, set EXPAT_INCLUDE and
note: directories containing the Expat headers and libraries, respectively.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T15:20:14+00:00Added an answer on May 11, 2026 at 3:20 pm

    Another update: I don’t see an .so or a .a file in your list of where EXPAT is… doesn’t that seem a bit strange? Normally it will create an alias for the library name

    for example /usr/lib/libblah.so -> /usr/lib/libblaah.so.1.2

    Is dynalib some Macintoshism (I don’t use Macs much)

    is .la the static version extension on this platform?

    Update:

    The quotes around the path seem troublesome… -L’/usr/lib’

    Try changing this to -L/usr/lib and -L /usr/lib

    Older stuff:

    The directive for the linker to include paths during the link step is -L. You need to look for some linker flags to update to include -L path_to_expat. I don’t think the linker pays any attention to LD_LIBRARY_PATH. I am not sure what documentation you have read to set EXPAT_INCLUDE or EXPAT_LIBPATH.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 82k
  • Answers 82k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer PortMidi is another open source cross-platform MIDI I/O library worth… May 11, 2026 at 4:43 pm
  • Editorial Team
    Editorial Team added an answer If BlobDetails isn't the LINQ entity, then you can do… May 11, 2026 at 4:43 pm
  • Editorial Team
    Editorial Team added an answer Using GetTcpTable or AllocateAndGetTcpExTableFromStack is not a workaround. It's actually… May 11, 2026 at 4:43 pm

Related Questions

On my system, the caption of a groupbox is always a dark blue colour,
I have a Python module installed on my system and I'd like to be
I have a defunct process on my system: abc 22093 19508 0 23:29 pts/4
I've first installed the WAMP server on my system. It used http://localhost to show
I'm looking for shell scripts files installed on my system, but find doesn't work:

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.