Re: RASMol help

Cornelius Krasel (krasel@alf.biochem.mpg.de)
Tue, 31 Jan 1995 09:53:37 +0100 (GMT)

Hi,

> sunserv% make -i
> cc -c -g -O2 -finline-functions x11win.c
> cc: Warning: Option -finline-functions passed to ld
> cc: Warning: -O conflicts with -g. -O turned off.

Apparently you are using Sun's C compiler instead of gcc. The Sun C compiler
does neither understand the option -finline-functions nor can it optimize
(-O2) while including debug information (-g), therefore -O is turned off.

> x11win.c: 15: Can't find include file X11/Xlib.h
> x11win.c: 16: Can't find include file X11/Xutil.h
> x11win.c: 17: Can't find include file X11/Xatom.h
> x11win.c: 18: Can't find include file X11/keysym.h
> x11win.c: 19: Can't find include file X11/cursorfont.h
> x11win.c: 142: Can't find include file X11/extensions/XShm.h

Here lies your problem. You have to localize on your system the X11
include files. Your machine may look for them in /usr/include/X11 but
other locations are possible.

I would proceed as follows:

~% find /usr -name Xutil.h -print

This command searches /usr and all its subdirectories for the file Xutil.h.
The machine should, after some time, reply with something like

/usr/X11/include/X11/Xutil.h

If it doesn't, you are in trouble since the machine apparently hasn't
the include files available. Ask your system administrator :-)

Given that the find was successful, you would next edit the Makefile for
rasmol and add -I/usr/X11/include to the compiler options. Then make your
file again.

> cc -o rasmol rasmol.o molecule.o transfor.o command.o abstree.o render.o x11win.o pixutils.o outfile.o script.o -lm -lXext -lX11
> ld: x11win.o: No such file or directory

Does not work since x11win.c was not compiled successfully.

> chmod 755 rasmol
> chmod: rasmol: No such file or directory

Does not work since linking was not successful.

> The compiler directive <<<-I/usr/openwin/include>>> its ok,

Rasmol doesn't use openwindows include files.

Hope that helps,

--Cornelius.

-- 
/* Cornelius Krasel, Abt. Lohse, Genzentrum, D-82152 Martinsried, Germany  */
/* email: krasel@alf.biochem.mpg.de                 fax: +49 89 8578 3795  */
/* "Science is the game you play with God to find out what His rules are." */