I try to install RScaLAPACK on Ubuntu 6.10 and LAM 7.0.x Does anybody know a useful link top some how-to site about RScaLAPACK. Now I manage to get the package compiling, but the linker shows me lots of unsolved references: sudo R CMD INSTALL RScaLAPACK_0.5.1.tar.gz --configure-args="--with-mpi=/usr/lib/lam": * Installing *source* package 'RScaLAPACK' ... configure: MPI_HOME=/usr/lib/lam .. is set configure: BLACS_LIB=/usr/lib .. is set configure: BLAS_LIB=/usr/lib .. is set configure: SCALAPACK_LIB=/usr/lib .. is set checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for pthread_atfork in -lpthread... yes checking for LAM-MPI... checking LAM-MPI Libraries at /usr/lib/lam... configure: LAM-MPI lib detected @ /usr/lib/lam.. Configured Parameters ... LIBS = -lscalapack -lblacsF77init -lblacsCinit -lblacs -lf77blas -latlas -llamf77mpi -lmpi -llam -lpthread LDFLAGS = -L/usr/lib -L/usr/lib -L/usr/lib/lib -L/usr/lib/lam/lib CFLAGS = -I/usr/lib/lam/include -g -O2 -std=gnu99 PALIBS = -lmpi -llam -lpthread ... *** ... configure: creating ./config.status config.status: creating src/Makefile configure: creating ./config.status config.status: creating src/Makefile config.status: creating R/StartUpLam.R ** libs ** arch - gcc -I/usr/share/R/include -I/usr/share/R/include -fpic -I/usr/lib/lam/include -g -O2 -std=gnu99 -c CRDriver.c -o CRDriver.o gcc -I/usr/share/R/include -I/usr/share/R/include -fpic -I/usr/lib/lam/include -g -O2 -std=gnu99 -c CRscalapack.c -o CRscalapack.o gfortran -fpic -g -O2 -c callpdgesv.f -o callpdgesv.o gfortran -fpic -g -O2 -c callpdgeqrf.f -o callpdgeqrf.o gfortran -fpic -g -O2 -c callpdgesvd.f -o callpdgesvd.o gfortran -fpic -g -O2 -c callpdgemm.f -o callpdgemm.o gfortran -fpic -g -O2 -c callpdpotrf.f -o callpdpotrf.o gfortran -fpic -g -O2 -c callpdpotri.f -o callpdpotri.o gfortran -fpic -g -O2 -c callpdsyevd.f -o callpdsyevd.o gfortran -fpic -g -O2 -c CRcollectData.f -o CRcollectData.o gfortran -fpic -g -O2 -c CRdistData.f -o CRdistData.o gcc CRDriver.o CRscalapack.o callpdgesv.o callpdgeqrf.o callpdgesvd.o callpdgemm.o callpdpotrf.o callpdpotri.o callpdsyevd.o CRcollectData.o CRdistData.o -L/usr/lib -L/usr/lib -L/usr/lib/lib -L/usr/lib/lam/lib -lscalapack -lblacsF77init -lblacsCinit -lblacs -lf77blas -latlas -llamf77mpi -lmpi -llam -lpthread -I/usr/lib/lam/include -g -O2 -std=gnu99 -lg2c -o CRDriver callpdgesv.o: In function `callpdgesv_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:96: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:99: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:100: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:101: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:201: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:148: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:147: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:147: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:148: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesv.f:148: undefined reference to `_gfortran_st_write_done' callpdgeqrf.o: In function `callpdgeqrf_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:95: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:98: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:99: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:100: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:253: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:213: undefined reference to `blacs_barrier_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:163: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:163: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:163: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:163: undefined reference to `_gfortran_st_write_done' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:156: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:155: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:155: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:155: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:156: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgeqrf.f:156: undefined reference to `_gfortran_st_write_done' callpdgesvd.o: In function `callpdgesvd_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:100: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:103: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:104: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:105: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:356: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:240: undefined reference to `blacs_barrier_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:171: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:171: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:171: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:171: undefined reference to `_gfortran_st_write_done' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:164: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:163: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:164: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:164: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgesvd.f:164: undefined reference to `_gfortran_st_write_done' callpdgemm.o: In function `callpdgemm_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:128: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:132: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:133: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:134: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:237: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:183: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:183: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:183: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:183: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdgemm.f:183: undefined reference to `_gfortran_st_write_done' callpdpotrf.o: In function `callpdpotrf_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:92: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:95: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:96: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:97: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:188: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:135: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:134: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:134: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:135: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotrf.f:135: undefined reference to `_gfortran_st_write_done' callpdpotri.o: In function `callpdpotri_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:92: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:95: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:96: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:97: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:187: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:133: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:132: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:132: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:133: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdpotri.f:133: undefined reference to `_gfortran_st_write_done' callpdsyevd.o: In function `callpdsyevd_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:96: undefined reference to `blacs_pinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:99: undefined reference to `blacs_get_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:100: undefined reference to `blacs_gridinit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:101: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:244: undefined reference to `blacs_gridexit_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:168: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:168: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:168: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:168: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:168: undefined reference to `_gfortran_st_write_done' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:225: undefined reference to `blacs_barrier_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:173: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:172: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:172: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:173: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:173: undefined reference to `_gfortran_st_write_done' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:179: undefined reference to `_gfortran_st_write' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:179: undefined reference to `_gfortran_transfer_character' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:179: undefined reference to `_gfortran_transfer_integer' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/callpdsyevd.f:179: undefined reference to `_gfortran_st_write_done' CRcollectData.o: In function `crcollectdata_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/CRcollectData.f:91: undefined reference to `blacs_gridinfo_' CRdistData.o: In function `crdistdata_': /tmp/R.INSTALL.FZN392/RScaLAPACK/src/CRdistData.f:87: undefined reference to `blacs_gridinfo_' /tmp/R.INSTALL.FZN392/RScaLAPACK/src/CRdistData.f:129: undefined reference to `blacs_barrier_' collect2: ld returned 1 exit status make: *** [CRDriver] Error 1 ERROR: compilation failed for package 'RScaLAPACK' ** Removing '/usr/local/lib/R/site-library/RScaLAPACK' Thanks for help Thomas Mangold