Solving ‘ld: library not found’ issues after upgrading to OS X El Capitain

 

Upgrading to a new OS is always exciting, but if one uses a system for development, then its not always smooth.

Here’s one issue i recently faced after upgrading to OS X El Capitain.

I was recently converting a fortran program to python on macbook using the f2py and got the following error.

ld: library not found for -lbundle1.o

The code complied but the bundle library was missing during linking , this code worked last time I did it, so the suspect was the new OS X El Capitain.

More specifically the suspect was the Xcode library, so I reinstalled the developer tools using the command:

xcode-select –install

Took 15 minutes but after those minutes, faced a new problem, now gcc_s.10.5 library was missing..  

ld: library not found for -lgcc_s.10.5

This was more tricky than the first problem but quickly found this fix from here.

cd /usr/local/lib

sudo ln -s ../../lib/libSystem.B.dylib libgcc_s.10.5.dylib

These two problems solved. Now back to work. 

Advertisements

2 thoughts on “Solving ‘ld: library not found’ issues after upgrading to OS X El Capitain

  1. Dear,
    i have followed : http://gamma-level.com/iphoneos/ports/environment

    i used the following command to set path:
    export CPLUS_INCLUDE_PATH=/var/include/c++/4.0.0://var/include/c++/4.0.0/i686-apple-darwin9

    installed C++ standared library which automatically install libstdc++.dylib into /usr/lib
    but yet i created sym link of libstdc++.6.dylib

    gcc runs well but g++ test.cpp -o test gives

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

    normally lstdc++ is looking for libstdc++ which is already in /usr/lib

    what’s wrong?

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s