Leopard and the return of /usr/local/lib

Okay, so let me preface this by saying, I am not a unix guru. When software needs to be recompiled to work on my mac, my first response is to go see if anyone else has done it already. That said, sometimes I have to dig into the guts of programs to make them work. Recently, I encountered two issues relating to astronomy software and a recent change due to Leopard OS.

Apparently, when they made Leopard, they decided to move /usr/local/lib to just plain old /usr/lib. Sounds nice and simple, BUT, if you are trying to run software compiled for a power-pc and run it under Rosetta (such as Skycat) then you will run into trouble, because it's looking for files in /usr/local/lib.

Once I figured out this is what was causing all my bizarre errors, the fix was simple. Since there is no /usr/local/lib directory, I just created a symbolic link. First, cd into /usr/local. Then type:

sudo ln -s /usr/lib lib

voila! no more Skycat barfing.

Permalink • Posted in: astronomy