Skip to content
Prev 20256 / 63424 Next

xmkmf? problem

There are two problems here.  The more important one is with your OS, 
which seems not to have its X11 stuff correct, so cc is not being found
(and you cannot set it).  R's configure has no protection against that.

You can investigate that by

blackduck% touch Imakefile
blackduck% xmkmf
imake -DUseInstalled -I/usr/X11R6/lib/X11/config
blackduck% grep CC Makefile
...

which is what R does.  I presume that this will also fail if you compile R 
out-of-the-box with gcc?  If that works and pgcc does not then something 
else in your settings is amiss.

The second is that if you are using a different compiler from that used to 
make X11, you may need to set CPICFLAGS etc.  But we know about pgcc on 
Linux and so these will be set (but not necessarily SHLIB_LDFLAGS: see the 
R-admin manual).
On Thu, 13 Apr 2006, Paul Gilbert wrote: