64-bit Fink for 10.6
From OS X Scientific Computing
Contents |
Jumpstart Instal 64-bit fink into /sw64
Do this only if you do not already have anything in /sw64
First: Download this tarball
curl -O http://sage.ucsc.edu/~wgscott/downloads/fink/fink_base_install_10.6.8_sw64.tgz
or just click this link: fink_base_install_10.6.8_sw64.tgz
Second: Unpack it:
tar xvfz fink_base_install_10.6.8_sw64.tgz
Third: Move the resulting sw64 into position at root level:
sudo mv sw64 /.
Fourth: Update it:
source /sw64/bin/init.sh fink selfupdate fink -y update-all fink scanpackages
Fifth: Use it:
eg: To install coot and ccp4 from my binary distribution (it is set up already so you can do this), issue the following commands:
fink scanpackages sudo apt-get update sudo apt-get install coot sudo apt-get install ccp4
eg: To install coot from source, issue the following commands:
fink selfupdate fink -y update-all fink -y install coot
Bootstrap Install from sourcecode for greater control
You can install a 64-bit fink into /sw, or, if you already have a 32-bit fink in /sw and for some reason you want to keep it (there really is no reason anymore), you can install a 64-bit fink into a different directory, eg: /sw64, where it can can coexist with your current 32-bit installation in /sw (although you can't use them in the same shell session). The following assumes you want to install everything in a directory called either /sw64. If you want to install 64-bit into /sw, go back to Section 1.
If you have no other fink installation (no directory called /sw ), you are better off in the long run putting it in /sw, as described in the previous section.
How to Bootstrap-Install Fink-64bit
In a bash or zsh shell, issue the command
cvs -d:pserver:anonymous@fink.cvs.sourceforge.net:/cvsroot/fink login [just hit return when prompted for password]
cvs -z3 -d:pserver:anonymous@fink.cvs.sourceforge.net:/cvsroot/fink co -P fink
Then do
cd fink ; ./bootstrap /sw
or
cd fink ; ./bootstrap /sw64
as appropriate.
The bootstrap configuration will ask you two questions that you must answer in the following way.
Pay attention, because the answer to the second question is NOT the default!
Fink must be installed and run with superuser (root) privileges. Fink can automatically try to become root when it's run from a user account. Since you're currently running this script as a normal user, the method you choose will also be used immediately for this script. Avaliable methods: (1) Use sudo (2) Use su (3) None, fink must be run as root Choose a method: [1] Your hardware is a 64bit-compatible intel processor, so you have the option of running Fink in 64bit-only mode. This is not recommended for most users, since many more packages are available for the default mode (which is mostly 32bit but includes some 64bit packages). Which mode would you like to use? (1) Default (mostly 32bit) (2) 64bit-only Choose a mode: [1] 2
For now on, I will use "/sw* " to mean "/sw or /sw64 as appropriate."
When it is done, edit /sw*/etc/fink.conf and change line 4 to look like this:
Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
This activates the unstable branch.
Then issue
source /sw*/bin/init.sh fink selfupdate-cvs fink -y update-all fink scanpackages
Install x86_64 versions of crystallography software
The normal, official Fink way is to compile everything yourself. If you are in a hurry, you might find it easier to use my unofficial pre-compiled Fink binary distribution.
Using my Pre-Compiled Fink Packages
For 10.7.X: Go here
If you put fink into /sw64
First you need to edit the /sw64/etc/apt/sources.list file and add the following three lines to the bottom of that file:
deb http://sage.ucsc.edu/fink_intel_10.6_64bit stable main crypto
deb http://sage.ucsc.edu/fink_intel_10.6_64bit unstable main crypto
deb http://sage.ucsc.edu/fink_intel_10.6_64bit local main
If you put fink into /sw
First you need to edit the /sw/etc/apt/sources.list file and add the following three lines to the bottom of that file:
deb http://psbmini.ucsc.edu/fink_intel_10.6_64bit_sw stable main crypto
deb http://psbmini.ucsc.edu/fink_intel_10.6_64bit_sw unstable main crypto
deb http://psbmini.ucsc.edu/fink_intel_10.6_64bit_sw local main
That's all you need, but more detailed information is located here: Getting your fink installation to use packages that I have pre-compiled
Now you can install fink packages that I have pre-compiled using the apt-get command. Here is an example for installing coot:
fink scanpackages sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install coot
(The more or less equivalent fink -b install coot command doesn't work with a directory named anything other than /sw. Sorry for earlier claims to the contrary.)
Compiling it with Fink
This is the official Fink-approved way to do it:
To install coot, issue
source /sw*/bin/init.sh fink install coot
To install ccp4, issue
source /sw*/bin/init.sh fink install ccp4
You, or your shell startup files, need to issue
source /sw*/bin/init.sh
before running these programs, or
source /sw*/bin/init.csh
if you are a tcsh user.