How to Determine What Shared Libraries a Program Requires in OS X

In Linux you can use the command “ldd” to display what shared libraries a program requires. This is handy if you need to figure out what missing libraries are required to get a program running. Here is the syntax for the Linux ldd command along with example usage for it:

ldd pathToExecuteable

Example:

ldd /usr/bin/ftp

Mac OS X does not include the ldd command. Instead you need to use the command “otool”. Otool gives you basically the same information as what ldd does in Linux. Here is the syntax for the otool command along with example usage for it:

otool -L pathToExecuteable

Example:

otool -L /usr/bin/ftp

Mac OS X Terminal

How to Install Flash Remoting for ActionScript 2 Library Files Into Flash 9

Flash 9 includes Flash Remoting for ActionScript 3 but it does not include Flash Remoting for ActionScript 2. So if you have Flash projects developed in ActionScript 2 you can’t compile them in Flash 9. Here is how to install the Flash Remoting for ActionScript 2 library files into Flash 9:

  1. Copy the library files from Flash 8 or download the library files directly from here: Flash Remoting For ActionScript 2 Library Files
  2. Copy the contents of the zip file to a new directory created inside the directory: C:\Program Files\Adobe\Adobe Flash CS3\en\First Run\Classes\
  3. Add this new directory to the ClassPath for ActionScript 2
    1. In Flash 9, click Edit | Preferences… | ActionScript | ActionScript 2.0 Settings…
    2. Click the button with the “target” icon in order to browse to the path of the folder you created in the previous step.
    3. Press OK to commit the changes

Code

Fink Error While Upgrading from 10.4-Transitional to 10.4 Final

While upgrading Fink from the the 10.4-Transitional branch to the 10.4 final branch you may get an error similar to this after running update.pl:

Can’t locate Fink/Bootstrap.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level
/System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl
/Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl
/System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6/Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 .) at ./update.pl line 36.

To fix the problem, execute the script with this command:

sudo env PERL5LIB=$PERL5LIB ./update.pl

You may need to add the “/sw/lib/perl5/Fink” to your PERL5LIB environment variable which can be modified by editing your .bash_profile file in your home directory.

Fink Logo

Unable to Move Fink Directory Error when trying to Self Update

Fink is a great program that makes installing open source applications easy in OS X. One day when running self update in fink I got an error that said the process was unable to move the Fink directory. To fix this error you need to remove the old fink directory and its associated temporary file:

sudo rm -R /sw/fink.old
sudo rm fink.tmp

Fink Logo