Information on other computer systems is currently not available, but it shouldn't be too difficult to install MolScript if you know how to compile programs on your computer system. If you port MolScript to another system, you would help others by sending a description of your porting procedure to pjk@avatar.se. The description will be incorporated into this documentation.
Unfortunately, the installation procedure is more complex for v2.0 of MolScript compared to previous versions. This is due to those output modes that require external software. However, the basic implementation of MolScript (with the PostScript, Raster3D and VRML 2.0 output modes) is easy to compile.
clib
.
molscript
.
molscript.y
syntax specification and two
different Makefiles.
molscript/doc
.
molscript/examples
.
You will have obtained the MolScript distribution in one of two possible ways, and in one of two possible compression modes:
molscript.tar.Z
molscript.tar.gz
molscript.tar.Z.uuencode
molscript.tar.gz.uuencode
.Z
file was compressed with the UNIX utility
compress
, while the .gz
file was compressed
with gzip
.
Before unpacking the distribution, move your previous MolScript
distribution (if you have one) to some safe location. This applies to
the molscript
and
forlib
directories, as well as the
previous molscript
executable file.
molscript.uuencode
.
vi
,
emacs
, jot
,...) to remove any garbage added
by your e-mail program to the beginning and/or to the end of the file:
The file should begin with the line
begin 644 molscript.tar.gz
or
begin 644 molscript.tar.Z
It should end with the line
end
Between the first and last lines, the file will consist of many lines,
most of which are of of length 61 bytes with the character 'M' in the
first column.
uudecode
program. Use the following
command:
% uudecode molscript.uuencode
This should create the gzipped (molscript.tar.gz
) or
compressed (molscript.tar.Z
) distribution file.
gzip
or the compress
program. Use one of
the following commands to un-compress the file:
% gunzip molscript.tar.gz
or
% uncompress molscript.tar.Z
This should produce a molscript.tar
file. This file
should be moved to the directory where you wish to have the
clib
and
molscript
directories located. For
example, the /usr/local
directory is
often used for software of this kind. You probably need
root
privileges (or the equivalent) to write anything in
the /usr/local
directory.
% mv molscript.tar /usr/local
% cd /usr/local
Then use the tar
program to unpack the distribution:
% tar xvof molscript.tar
This creates the clib
and
molscript
directories and their
sub-directories.
Makefile
s in each of the
clib
and
molscript
directories for compiling the
software.
You must choose which of these Makefile
s to
use. In each directory, you can
either make a symbolic link to the appropriate
Makefile
variant (the basic one in this example):
or you can make a proper copy of the chosen
% ln -s Makefile.basic Makefile
Makefile
variant:
% cp Makefile.basic Makefile
The Makefile
s contain various symbols which may
need to be modified for your system. The current values for the
symbols have been tested on SGI IRIX 6.2/6.3 systems, using the native
SGI IRIX cc
compiler for the complete installation, and
GNU's gcc
compiler (v2.6.3) for the basic installation.
Makefile.basic
clib.a
library file based purely on code
residing within this directory. If your system does
not have OpenGL or
GLUT installed, this is what you should
use. As distributed, the Makefile will use GNU's gcc
compiler.
Makefile.complete
clib.a
library file including the
packages that are built on top of
OpenGL and
GLUT. You must check that the symbols
for these libraries are valid. As distributed, the Makefile will use
SGI IRIX's native cc
compiler.
Makefile.basic
clib.a
in the
clib
directory are needed for basic
implementation. As distributed, the Makefile will use GNU's
gcc
compiler.
Makefile.complete
Makefile.complete
file are set
correctly. As distributed, the Makefile will use SGI IRIX's native
cc
compiler.
Makefile.complete
file by
commenting out the relevant symbols. It is therefore not necessary to
obtain and install the JPEG and
PNG libraries.
Makefile
variant and modified it (if needed) and
installed the various external libraries (if any), then you should be
ready to compile the MolScript program.
First, go to the clib
directory, and
create the clib.a
file:
Next, go to the
% cd /usr/local/clib
% make
molscript
directory and
create the molscript
and molauto
executables:
You may wish to copy the executables to an appropriate directory on
your system (such as
% cd /usr/local/molscript
% make
/usr/local/bin
):
or make links from this directory to the executables:
% cp molscript molauto /usr/local/bin
You and any other users need to have this directory in their
path if the executable is to be invoked simply by giving the program
name as a command. Check that the
% cd /usr/local/bin
% ln -s /usr/local/molscript/molscript molscript
% ln -s /usr/local/molscript/molauto molauto
PATH
environment
variable contains the /usr/local/bin
value:
% echo $PATH