Install Ifeffit
| Slideshow ^ |< << Slide 3 of 8 >> >| |
You will need C and fortran compilers for all parts of this. Compiling the pgplot library requires X11 development libraries, development libraries for making png and gif images, and development packages for one of the curses libraries. If compilation crashes out at any step, examine the error messages for hints about which development package is missing and fetch them using your system's package installer.
- With root access
The first step is to install pgplot. The easiest way by far is to use the PGPLOT_install script that Matt provides. You will need to run this as root or through sudo. After that finishes, configure and make the Ifeffit package.
sudo ./PGPLOT_install ./configure make sudo make install
- Install to your own diskspace
Getting PGPLOT and Ifeffit built correctly and installed into local diskspace requires a couple special instructions. In this explanation I am using the home directory /home/bdr as the example. In each step that makes reference to that home directory, you will need to substitute your own home directory.
I have to be completely honest. I have not tried these steps on a completely clean computer. Please let me know about any issues you run into so I can update these instructions.After downloading and unpacking the Ifeffit tarball, edit the PGPLOT_install file at line 14 so it reads
prefix='/home/bdr/local/'
Create the directory you just specified if it does not already exist. At the command line:
mkdir /home/bdr/local
Run the modified PGPLOT_install script. This will download and build PGPLOT and install it into /home/bdr/local/share/ifeffit/pgplot. You can test PGPLOT by running one of the demo programs in that directory.
configure Ifeffit by running these commands:
export LDFLAGS=-L/home/bdr/local/share/ifeffit/pgplot ./configure --prefix=/home/bdr/local --with-pgplot-dir=/home/bdr/local/share/ifeffit/pgplot/ --with-pgplot-link=-lpgplot
This step should configure everything so that Ifeffit will be installed under /home/bdr/local/.
Do make and make install.
Add /home/bdr/local/bin to your execution path by adding this line to your .bashrc file:
export PATH=/home/bdr/local/bin:"${PATH}"That will allow you to run ifeffit and feff6 easily.
| /100_NoRoot /200_SVN /300_InstallIfeffit /400_LibPerlXray /500_Horae /600_Demeter /700_AUG /800_InstallPrereq |