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.
Thank you. Saved me a lot of time.
LikeLike
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?
LikeLike