PDA

View Full Version : Files Missing from /usr/lib in /Developer...




lonb
Oct 2, 2009, 08:35 PM
Hi - I'm new to C++ development on Mac and I'm having trouble getting my environment up and running. Actually, what I'm trying to do is use Macports and it seems like the shared libraries are missing from the /usr/lib folders.

However, it looks like everything I need is located in /Developer/SDKs/MacOSX10.6.sdk/usr/lib. Do I need to do something to get the libraries into the right place?

Thanks,

Lon



electroshock
Oct 3, 2009, 12:02 AM
Hi - I'm new to C++ development on Mac and I'm having trouble getting my environment up and running. Actually, what I'm trying to do is use Macports and it seems like the shared libraries are missing from the /usr/lib folders.

However, it looks like everything I need is located in /Developer/SDKs/MacOSX10.6.sdk/usr/lib. Do I need to do something to get the libraries into the right place?

No, MacPorts stores them in /opt/local/lib to avoid touching Apple's provided libraries. And when MacPorts builds a port, it uses stuff from /opt/local/* and installs into the appropriate /opt/local directories (etc, lib, bin, man, etc). It's a pretty spiffy entirely self-contained system of apps/config files/libraries/binaries.

lonb
Oct 3, 2009, 07:38 AM
Ok so it turns out I had an install problem. I re-installed Xcode 3.2 (with all options ticked); then re-installed Macports 1.8.1 and all was good.