If you are installing a Platon UNIX binary, just uninstall your binary and your job
is pretty much done (except you should use ln -s platon s to create the system
S link). (Also note that to get System S working to the Max, installing Shelx, Dirdif, Sir and Crunch
is also highly recommended).
Download the UNIX source platon.tar.gz file. Platon - New Homepage - Ton Spek, Bijvoet Center - Utrecht University
Platon - Ton Spek
gzip -d < platon.tar.gz | tar xvof -This will extract all the files into a platon directory. Now cd into the platon directory. Doing an ls will list the files showing the main platon.f source is still compressed. xrdsv1 109% ls README azt.dat cubane.spf s913a.res README.ADDSYM bucky.spf cyto.spf sucrose.spf README.LEPAGE c476.spf ml.pdb xdrvr.c.gz README.PLUTON c540.cart3d platon.f.Z TEST check.def platon_html.tar.gz VALIDATION.DOC compile s810c.cif xrdsv1 110% Type uncompress platon.f.Z to uncompress the fortran file. Type gzip -d xdrvr.c.gz to uncompress the C file.
|
The following information is in the README file but to compile (make sure
you have an F77 compiler installed on your UNIX system. (By default, some versions
of Linux such as Redhat Linux) do not install the GNU Fortran 77 compiler so you
will have to go into the package manager and install this)
Type: f77 -o platon platon.f xdrvr.c -lX11Platon will now compile up. If your system setup is kosher, it should have no problems compiling up a running executable as per the following output on an SGI IRIX system. xrdsv1 113% f77 -o platon platon.f xdrvr.c -lX11 platon.f: xdrvr.c: xrdsv1 114%Note that on Linux or BSD UNIX, if you get a message that X11 file or directory cannot be found, you may have to use a minor varient:
Generic:
Redhat 6.0 (make sure you have installed g77(f77) - it does not get installed by default):
Redhat 7.2 (g77(f77) does seem to get installed by default):
FreeBSD (via default f2c based f77 that is installed with FreeBSD):
FreeBSD (via EGCS GNU G77): |
Now you may copy the newly created platon binary and check.def file into a general
area (or you usual binary area) such as /usr/local/bin
In your ~/.cshrc file, add setenv CHECKDEF /usr/local/bin/check.def Then resource your cshell configuration file: = with cshell - source .cshrc Platon can run in System S mode using the "-s" flag (platon -s structure.ins) however the more typical way of invoking System S is by creating a software link of "platon ln -s platon sNow by typing s (you possibly may have to do a rehash to get the system to check for new programs), Platon will come up in System S mode. (You may have to xhost + remote_computer_system_name setenv DISPLAY local_system_name:0 etc if working with client/servers = - though it is far better to have Secure Shell installed so you can obtain automatic X-forwarding without the hacker security problems the above causes) |
As per the above, type s example_file.ins (s sdemo.ins) will bring up the System S
screen.
|
As per the above, type platon example_file.ins (platon sdemo.ins) will bring up the
standard starting screen. (The same as in MS Windows except you would use
the file open option)
|