[R] Error in La.chol2inv(x, size) : lapack routines cannot be loaded
Peter Dalgaard
p.dalgaard at biostat.ku.dk
Fri Apr 29 16:16:54 CEST 2005
Joris De Wolf <joris.dewolf at cropdesign.com> writes:
> Dear all,
>
> OS: x86_64-suse-linux 9.2
> CPU: Intel(R) Xeon(TM) CPU 3.20GHz
> R-version: R-2.1.0
>
> I've started using a new Linux server, upgraded at the same time to
> R-2.1.0 (see above) and have problems with some elementary analysis
> that ran without a problem on my previous configuration.
>
> anova.glm gives the following error:
>
> Error in La.chol2inv(x, size) : lapack routines cannot be loaded
>
> This was with the after the following configure
>
> ./configure --with-readline --prefix=/opt/R-2.1.0 --with-libpng
> --with-jpeglib --with-pcre --without-x
>
> The obvious thing to try next was:
>
> ./configure --with-readline --prefix=/opt/R-2.1.0 --with-libpng
> --with-jpeglib --with-pcre --without-x --with-lapack
>
> but this gave errors at the make:
>
> make[3]: Entering directory `/usr/local/src/R-2.1.0/src/modules/lapack'
> make[4]: Entering directory `/usr/local/src/R-2.1.0/src/modules/lapack'
> make[4]: `Makedeps' is up to date.
> make[4]: Leaving directory `/usr/local/src/R-2.1.0/src/modules/lapack'
> make[4]: Entering directory `/usr/local/src/R-2.1.0/src/modules/lapack'
> gcc -shared -L/usr/local/lib -o lapack.so Lapack.lo -llapack -lblas
> -lg2c -lm -lgcc_s
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../x86_64-suse-linux/bin/ld:
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/liblapack.a(dgecon.i):
> relocation R_X86_64_32 against `a local symbol' can not be used when
> making a shared object; recompile with -fPIC
> /usr/lib64/gcc-lib/x86_64-suse-linux/3.3.4/../../../../lib64/liblapack.a:
> could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[4]: *** [lapack.so] Error 1
>
> I've found some similar postings about Debian, but without a soluition.
>
> Any idea how I could proceed?
Which compilers are you using? What is the output from configure?
Unless something drastic happened between 9.1 and 9.2, you should be
able to just ./configure without further decorations (except possibly
--without-x if you can't be bothered to install the xorg-x11-devel
RPM).
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biostatistics 2200 Cph. N
(*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
More information about the R-help
mailing list