[ ]Landon Curt Noll 06 Aug 2011 23:34

The easiest thing to do is blow away /sw and re-install. Here is the pedantic method I used to update fink for Lion:

0) Install or upgrade to Xcode 4.1.1 or later
NOTE: Xcode is available on the AppStore

1) download fink v0.31.0 or later and place it under /var/tmp
NOTE: See the download link at: http://sourceforge.net/projects/fink/

2) Open a terminal window
3) sudo -s
NOTE: Type in an admin password
4) cd /var/tmp
5) rm -rf fink-setup
6) cd fink-setup
7) tar -zxf ../fink-*.tar.gz
8) cd fink-*
9) optional: backup /sw
NOTE: The next step will blow away any existing /sw fink data. The optional previous step is recommended in case you wish to revert.

10) rm -rf /sw
NOTE: As noted in http://fink.sourceforge.net/news/#2011-07-20%20Fink%20and%20Lion--updated. you can attempt to preserve your old /sw tree. I think it is easier to blow away and start fresh before you bootstrap:

11) ./bootstrap
NOTE: Configure fink as needed

12) . /sw/bin/init.sh

13) fink configure
NOTE: The defaults were setup during the previous bootstrap. We do it again because under some previous releases, the configuration needed to be reset.
NOTE: No harm in doing this again and in some cases this will help.

14) . /sw/bin/init.sh
NOTE: Again in case the previous fink configure changed things.

15) fink scanpackages
16) apt-get update
17) fink index -f
NOTE: The above 3 step were need in previous versions to work around a bug.
NOTE: No harm in doing these steps and in some cases this will help.

18) fink selfupdate
NOTE: If all is well, you should see near the end: "The core packages have been updated".

19) fink update-all

20) fink configure
NOTE: If the previous selfupdate and/or update-all resulted in a need to reconfigure, we do it again here. In some previous versions this was needed.
NOTE: No harm in doing these steps and in some cases this will help.

At this point fink is ready for use.

Edit | Permalink