$ fink install lesstif
$ fink install gsl
$ fink install imagemagick
$ fink install gmt
Step 1 is to get the code repository. You'll need to change "user" to your username given to you by the OMG sys admin folks and machine to the machine they tell you that the repository is stored on.
$ svn checkout svn+ssh://email@example.com/drives/machine/disk1/code
That'll checkout the repository (name "code") into the directory you're currently sitting in. You can move it anywhere on your file system after you've checked it out.
Step 2 is to set up some environment variables in your shell's configuration files; these direct the code compiling script on where to install things and also update your path with the appropriate directory. I had decided to switch from
bashsince I was already making a transition from PC to Mac, so I had to put together some config files for
bashin my home directory. Here's a dump from the
.bash_profilefile that I cobbled together. You'll need to change
usernameto your username.
# For OMG software development
# Sneaky way to shoehorn 32 bit architecture into the makefiles
export CCOMPILER="gcc -m32"
# For subversion, but only if you're doing commits
Step 3. After that's done, it's time to compile. This uses a mildly flaky script that compiles everything in the appropriate order and then places all the goodies in the locations specified by the environment variables defined earlier. The script is written in
tcsh, so you might want to make sure you have that installed (it was on my Mac, but you have to install it on Ubuntu). The script will dump everything in
~/local, again, based on the environment variables set earlier. It will also create an error.log file with a listing of everything it had trouble with.
$ cd ~/code
That should do it!