MichaelChirico / r-bugs

A ⚠️read-only⚠️mirror of https://bugs.r-project.org/
20 stars 0 forks source link

[BUGZILLA #16920] R-3.3.0 installation error (undefined reference to-) #6238

Closed MichaelChirico closed 4 years ago

MichaelChirico commented 4 years ago

Hi,

When i install R-3.3.0 (when i do "make"), the following error shows. Is this a bug or any solution to fix this?

gcc -std=gnu99 -I../../src/extra -I. -I../../src/include -I../../src/include -I/usr/local/include -I../../src/nmath -DHAVE_CONFIG_H -fopenmp -fpic -I/usr/share/R-3.3.0/packages/include -c Rmain.c -o Rmain.o gcc -std=gnu99 -Wl,--export-dynamic -fopenmp -L../../lib -L/usr/share/R-3.3.0/packages/lib -o R.bin Rmain.o -lR -lRblas /usr/bin/ld: warning: libpcre.so.1, needed by ../../lib/libR.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: liblzma.so.5, needed by ../../lib/libR.so, not found (try using -rpath or -rpath-link) ../../lib/libR.so: undefined reference to lzma_code@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference tolzma_raw_encoder@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference to lzma_stream_decoder@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference topcre_free' ../../lib/libR.so: undefined reference to lzma_lzma_preset@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference tolzma_raw_decoder@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference to pcre_version' ../../lib/libR.so: undefined reference topcre_exec' ../../lib/libR.so: undefined reference to pcre_config' ../../lib/libR.so: undefined reference topcre_fullinfo' ../../lib/libR.so: undefined reference to pcre_maketables' ../../lib/libR.so: undefined reference topcre_compile' ../../lib/libR.so: undefined reference to lzma_end@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference tolzma_alone_decoder@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference to lzma_version_string@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference tolzma_crc64@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' ../../lib/libR.so: undefined reference to pcre_study' ../../lib/libR.so: undefined reference tolzma_stream_encoder@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>' collect2: ld returned 1 exit status make[3]: [R.bin] Error 1 make[3]: Leaving directory `/root/rpms/R-3.3.0/src/main' make[2]: [R] Error 2 make[2]: Leaving directory /root/rpms/R-3.3.0/src/main' make[1]: *** [R] Error 1 make[1]: Leaving directory/root/rpms/R-3.3.0/src' make: *** [R] Error 1

Regards, Takuya


METADATA

MichaelChirico commented 4 years ago

Please do not ask questions via the bug repository. R-devel mailing list would be appropriate

This is likely due to the below (from the NEWS file)

• The previously included versions of zlib, bzip2, xz and PCRE have
  been removed, so suitable external (usually system) versions are
  required (see the ‘R Installation and Administration’ manual).

METADATA

MichaelChirico commented 4 years ago

Yes. I also meet this problem. After I spend huge time to solve all the configure problems (zlib,bzip2,xz and pcre), then this problem stop me again. Really hope someone would give a suggestion or solution.


METADATA

MichaelChirico commented 4 years ago

This has been discussed on the R-SIG-Fedora mailing list. Tom Callaway, who maintains the R RPMs for Fedora and RHEL has produced a binary distribution of R for RHEL 5 and 6 that should work. See the R-SIG-Fedora archive for more details.

https://stat.ethz.ch/pipermail/r-sig-fedora/2016-June/thread.html


METADATA