Development Tools on Mac OS X
[Editor's Note] This is old material imported from my now-defunct Wiki
I've been using Mac OS X 10.3 (Panther) since it was released. I regularly use Unix tools like make, gcc, latex, etc. I recently had a catastrophic hard disk failure and just got around to re-installing my development environment. The hard disk came from the shop loaded with the OS, but no Developer Tools. I put in my XCode Tools install disc and installed all of the Apple Developer Tools. Afterwards, I got the following error trying to run gcc on anything:
% gcc t.c
ld: can't locate file for: -lcrt1.o
Thanks to Dan Smith on MacInTouch I discovered my re-install routine wasn't sufficient. The repair shop probably installed the OS off a backup disk that didn't include development libraries; the XCode disc isn't careful about checking library dependencies.
If you're installing development tools on a fresh hard disk (or even a brand new Mac, probably), you need to make sure you have the following files in /usr/lib
: bundle1.o
, crt1.o
, dylib1.o
and gcrt1.o
. If they're not there, either: (1) do a fresh install off the OS discs, or (2) download and run the full XCode 1.1 or 1.2 installer from the Apple Developer Site (Log In (free registration) -> Downloads -> Mac OS X -> XCode Tools).
Problems with Ghostview
After installing Fink 0.7.2 and using it to install Ghostview 3.6.1-4, I got the following error trying to run gv
:
% gv
Warning: Representation size 4 must match superclass's to override highlightedBackground
Warning: Unsupported shape style for Command widget "toggleCurrent"
Warning: Unsupported shape style for Command widget "toggleEven"
Warning: Unsupported shape style for Command widget "toggleOdd"
Warning: Unsupported shape style for Command widget "unmarkAll"
Warning: Unsupported shape style for Command widget "autoResize"
Warning: Representation size 2 must match superclass's to override internalWidth
Bus error
This is apparently a problem with the Fink binary distro of gv
. If you rebuild from source (i.e., fink rebuild gv
) it should work fine (assuming that all of your X11 dev libraries are set up right---don't let Fink install XFree86 over your Apple X11 install! (Unless, of course, you know what you are doing)), .
Links
MacInTouch has an incredibly large collection of tips for Panther users, as well as for all kinds of other Mac-related subjects.
No comments:
Post a Comment