[R] cluster compile fails

Martin Maechler maechler at stat.math.ethz.ch
Sat Jun 1 14:40:21 CEST 2002


>>>>> "PaulG" == Paul Gilbert <pgilbert at bank-banque-canada.ca> writes:

    PaulG> I am having trouble installing cluster from R-1.5.0-recommended :  
    PaulG> R CMD INSTALL *.tar.gz
    PaulG> ...

    PaulG> g77   -fPIC  -g -O2 -c pam.f -o pam.o
    PaulG> g77   -fPIC  -g -O2 -c spannel.f -o spannel.o
    PaulG> g77   -fPIC  -g -O2 -c twins.f -o twins.o
    PaulG> cp: cannot access *.so

this means that  cluster.so  was not built at all.
On my home Debian Linux system, I get one line of linker call
after the *.f -> *.o compilation ones :

gcc -shared  -o cluster.so clara.o daisy.o fanny.o meet.o mona.o
    pam.o spannel.o twins.o   -L/usr/local/lib
    -L/usr/lib/gcc-lib/i386-linux/2.95.2 -lreadline -ldl -lncurses
    -lg2c -lm 

If such line does not appear, I think it means that your R
configuration and your current compiler/linker setup don't match
and you probably won't be able to build any other package using
compiled code either.

Try to (partly) re-install R itself by 
  ..../configure
  make
and then try again to install a package with C/F source.

Martin
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list