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

How to Extract the Windows Driver CD From Boot Camp Assistant

Burn the DMG image file located in the “Resources” folder which is inside the Boot Camp Package. The Boot Camp package is in the utilities folder and is what you click on to run Boot Camp Assistant.

  1. Right-click over the Boot Camp Assistant app in the Utilities folder.
  2. Select “Show Package Contents”
  3. Open the Contents folder and then the Resources folder
  4. Burn the DMG image file in that folder. The DMG image file will probably be named DiskImage.dmg

NOTE: These procedures are for Boot Camp beta running in Mac OS X Tiger 10.4. In Mac OS X 10.5 Leopard you can just use the Leopard install CD/DVD as the Windows driver CD.

iMac XP

OS X – How to Search For a Substring Inside of GZIP and BZ2 Files

This tip is really a generic *Nix command so it should not only work in OS X but also in other flavors of UNIX such as Linux.

In OS X a lot of the log files are auto-archived into compressed GZIP files in Tiger (Mac OS X 10.4) and BZ2 files in Leopard (Mac OS X 10.5). If you need to search for an occurrence of a word or other string of text in a compressed GZIP file, you can use the following terminal command:

zgrep someString theLogFileName.log.gz

As an example, say you want to search for the word “error” in a compressed system log in Tiger. To do this you would launch the Terminal application and run the command:

zgrep error /var/log/system.log.0.gz

Alternatively you can search all compressed system log files in a single command by using an asterisk (*) as a “wild card” character:

zgrep error /var/log/system.log*

Leopard uses the BZ2 compression scheme for most of its log files and you can similarly search those files by using the bzgrep command. For example, say you wanted to search all the application firewall logs for instances of the word “connection”. To do this you would run the following command in the Terminal application:

bzgrep connection /var/log/appfirewall.log*

If you need to search for a string that consists of more than one word separated by spaces, you would need to surround the search string in quotation marks:

bzgrep "connection attempt" /var/log/appfirewall.log*

Sherlock