[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

CCP14

Tutorials and Examples

Platon (Shelx Compatible) Structure Analysis Toolkit Software by Ton Spek

Compiling and Installing Platon/System S on UNIX

The CCP14 Homepage is at http://www.ccp14.ac.uk

[Tutorials page] | [Platon Tutorial Index]
[Platon Introduction] | [Obtaining Platon] | [Installing and Running Platon] | [Starting out with Platon] | [Runthroughs of some Platon functionaltiy]

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

To extract the tar.gz file in one step, type:
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 -lX11
Platon 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:
f77 -o platon platon.f xdrvr.c -L /usr/X11/lib -lX11

Redhat 6.0 (make sure you have installed g77(f77) - it does not get installed by default):
f77 -o platon platon.f xdrvr.c -L /usr/X11R6/lib -lX11

Redhat 7.2 (g77(f77) does seem to get installed by default):
f77 -o platon platon.f xdrvr.c -L /usr/X11R6/lib -lX11
(If you are using binaries of Platon and Shelx, etc compiled on previous versions of Linux (e.g., Redhat 6.2), it is worth while recompiling the System S suite from scratch as you may otherwise get erratic misbehaviour)

FreeBSD (via default f2c based f77 that is installed with FreeBSD):
f77 -NL400 -Nn802 -Nx800 -o platon platon.f xdrvr.c -I/usr/X11R6/include -L /usr/X11R6/lib -lX11

FreeBSD (via EGCS GNU G77):
g77 -o platon platon.f xdrvr.c -I/usr/X11R6/include -L /usr/X11R6/lib -lX11
(Refer: Installing EGCS G77 Fortran 77 on FreeBSD 3.3)


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 s
Now 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.

  • 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)

  • Platon Starting Screen


[Tutorials page] | [Platon Tutorial Index]
[Platon Introduction] | [Obtaining Platon] | [Installing and Running Platon] | [Starting out with Platon] | [Runthroughs of some Platon functionaltiy]

[CCP14 Home: (Frames | No Frames)]
CCP14 Mirrors: [UK] | [CA] | [US] | [AU]

(This Webpage Page in No Frames Mode)

If you have any queries or comments, please feel free to contact the CCP14