I do not have my slackware laptop w/ me right now, but I will check and post back tomorrow the detailed steps,
but in the manwhile, the sequence that I follow is from their install instructions... :
Refering to PETSc specifically... :
(MS Windows only) Install cygwin package (including make, python modules) and use cygwin shell.
Sugest downloading and installing PETSc as a regular/non-root user, perhaps in /home/username/soft
Download latest PETSc release tarball: petsc-3.0.0-p0.tar.gz
gunzip -c petsc-3.0.0-p0.tar.gz | tar -xof -
sh/bash shell: PETSC_DIR=$PWD; export PETSC_DIR
csh/tcsh shell: setenv PETSC_DIR $PWD
./config/configure.py (use --help for options or the example usages below)
More specifically :
Installing PETSc in /usr/local or /opt where sudo or root previledges are required:
If one wants to install PETSc [with sources] in a common system location like /usr/local or /opt, then sugest creating a dir for PETSc in the required location with user previledges, and then do the PETSc install [as a regular/non-root user]. i.e
sudo mkdir /opt/petsc
sudo chown user:group /opt/petsc
tar -xzf petsc-3.0.0-p0.tar.gz
One can also use the gnu prefix-install mode.
[untar PETSc in a non-root regular location - say /home/username]
setenv PETSC_DIR $PWD
./config/configure.py --prefix=/opt/petsc/petsc-3.0.0-p0 [other configure options]
sudo make install PETSC_DIR=$PWD
After the install is done, one has to switch to using PETSC_DIR=/opt/petsc/petsc-3.0.0-p0. If you've installed PETSc with the --prefix option then you DO NOT use a PETSC_ARCH variable. You should install different configurations using different --prefix names.
So Far, I have set the environment variables, configured with prefix /usr/local, and tried trackinstall with no success...
Like I told you, the detailed error message i do not know by head, by I can post it back here tomorrow... :-)