Install
Install
Install
1 Installation on UNIX.
1.1 Installation from the source code.
Create a directory called xppaut and change to this directory by typing:
mkdir xppaut
cd xppaut
gunzip xppaut_latest.tar.gz
tar xf xppaut_latest.tar
make
and lots of things will scroll by including occasional warnings (that you
can safely ignore). If you get no errors, then you probably have succeeded
in the compilation. If the compilation stops very quickly, then you prob-
ably you will have to edit the Makefile according to the architecture of
your computer. Look at the README file and the Makefile which has
suggestions for many platforms.
Step 4. If you successfully have compiled the program, then you should have
a file xppaut in your directory. To see, type
ls xppaut
1
If you see something like xppaut* listed then you have succeeded. If
you dont see this, then the compilation was unsuccessful. Consult the
README file for a variety of possible fixes. Also, there are many com-
ments in the Makefiles that are included with the package. I have not
yet found a computer on which I cannot compile the program. Common
problems are the wrong path to the X Windows libraries, nonexistence of
ranlib among others.
Step 5. Once you have compiled it, just move the executable to someplace
in your path. (The usual is /usr/local/bin but you must have root
privileges to do this.) XPPAUT needs no environment information.
2
interface is quite different. Most of the equation files will work for this version
and most of the standard features are extant. There is a binary X version for
Windows which is identical to the full UNIX version and I recommend that you
use that instead as this book describes the X version. (See the next section.)
3
Step 3. Download the file xpp4win.zip into the folder xpp. Unzip this with
the Winzip utility. There will be a number of files including xppaut.exe.
Note that there are two dynamic link libraries (DLLs) in the zipped file,
so, if you want to move xppaut.exe to a different directory, you should
move the DLLs there as well. To make it available everywher, you can copy
xppaut.exe, cygwin1.dll, and libX11.dll into your Programs directory
or any other directory in your path.
Step 4. Test your download.
set DISPLAY=127.0.0.1:0.0
C:\xpp\xppaut %1 %2
4 Installation on MacOSX
Installation on Macintosh computers running OSX is possible by downloading
the source code for XPPAUT and then compiling it using the software devel-
opment tools provided for the new OS. In addition, you will need to download
the X development libraries to compile it. The following steps were helpfully
4
provided to me by Chris Fall and James Sneyd. I have managed to test this on
one laptop and everything seems to work. A Mac OSX binary can be found on
the web site if you dont want to compile it yourself.
1. Make sure you get and install the full Developer Kit for Mac OSX. This
is how you get the cc compiler.
2. Install XFree86 on OSX. Download from
ftp://ftp.xfree86.org/pub/XFree86/4.1.0/binaries/Darwin-ppc/
Make sure (no matter what the Install file says) that you also get the
Xprog.tgz bundle. You need it.
3. Get the xpp source code and put it in a directory of your choice. Ill
assume youve called it xpp. Untar the archive.
4. Make the following changes in the MAC system directories. (I think this
is a bug in their header files.)
copy /usr/include/dirent.h to your xpp directory. Ill assume
youve called it dirent.h locally.
copy /usr/include/sys/dirent.h to your xpp directory (giving it
a new name obviously. I called it sysdirent.h).
In the file read dir.c change the #include <dirent.h> statement
to call your local copy of dirent.h, not the one in /usr/include.
In your local copy of dirent.h, change the #include <sys/dirent.h>
statement to call your local copy of sysdirent.h.
In your local copy of sysdirent.h, change the lines:
u_int32_t d_fileno; /* file number of entry */
u_int16_t d_reclen; /* length of this record */
u_int8_t d_type; /* file type, see below */
u_int8_t d_namlen; /* length of string in d_name */
to the new lines:
unsigned long d_fileno; /* file number of entry */
unsigned short d_reclen; /* length of this record */
unsigned char d_type; /* file type, see below */
insigned char d_namlen; /* length of string in d_name */
(These occur in the struct dirent declaration) and save the file.
5. In the Makefile use the following options
CC= cc
CFLAGS= -O -DAUTO -DCVODE_YES -I/usr/X11R6/include
LDFLAGS= -L/usr/X11R6/lib
5
AUTLIBS= -lf2c -lX11 -lm
LIBS= -lX11 -lm
OTHERLIBS= libcvode.a libf2cm.a
Note that in the subdirectories, cvodesrc and libI77 make sure that
CC=cc.
Then in the main directory, type make and everything should go fine. The
rest of the story is like the UNIX installation.