[R-sig-Debian] libR.so error to install R-3.5.0 in Ubuntu 18.04

Ista Zahn i@t@z@hn @ending from gm@il@com
Thu Jun 21 00:30:16 CEST 2018


You can make sure you have all packages required to build with

apt-get build-dep r-base

Note that you shouldn't use sudo to make, just the usual

./configure
make
sudo make install

Best,
Ista
On Wed, Jun 20, 2018 at 6:12 PM, Yifang Tan <yifangt using gmail.com> wrote:
> I tried to install R-3.5.0 from source on my Ubuntu 18.04, and met this
> problem:
>
> ../../lib/libR.so: undefined reference to 'ucol_strcollIter_58'
> ../../lib/libR.so: undefined reference to 'u_getVersion_58'
> ../../lib/libR.so: undefined reference to 'uloc_setDefault_58'
> ../../lib/libR.so: undefined reference to 'ucol_close_58'
> ../../lib/libR.so: undefined reference to 'ucol_getLocaleByType_58'
> ../../lib/libR.so: undefined reference to 'ucol_setAttribute_58'
> ../../lib/libR.so: undefined reference to 'u_versionToString_58'
> ../../lib/libR.so: undefined reference to 'ucol_open_58'
> ../../lib/libR.so: undefined reference to 'uiter_setUTF8_58'
> ../../lib/libR.so: undefined reference to 'ucol_setStrength_58'
>
> # collect2: error: ld returned 1 exit status
> # Makefile:145: recipe for target 'R.bin' failed
>
> What I did to configure is according to the INSTALL instruction with the
> source code except --with-cairo (which seems un-necessary):
>
> ./configure --prefix=/opt/R/3.5.0 --enable-R-shlib --with-blas
> --with-lapack --with-cairo
>
> ###################################################################################
> # R is now configured for x86_64-pc-linux-gnu
> #
> #   Source directory:          .
> #   Installation directory:    /opt/R/3.5.0
> #
> #   C compiler:                gcc  -g -O2
> #   Fortran 77 compiler:       f95  -g -O2
> #
> #   Default C++ compiler:      g++   -g -O2
> #   C++98 compiler:            g++ -std=gnu++98 -g -O2
> #   C++11 compiler:            g++ -std=gnu++11 -g -O2
> #   C++14 compiler:            g++ -std=gnu++14 -g -O2
> #   C++17 compiler:            g++ -std=gnu++17 -g -O2
> #   Fortran 90/95 compiler:    gfortran -g -O2
> #   Obj-C compiler:
> #
> #   Interfaces supported:      X11, tcltk
> #   External libraries:        readline, BLAS(generic), LAPACK(generic),
> curl
> #   Additional capabilities:   PNG, JPEG, TIFF, NLS, cairo, ICU
> #   Options enabled:           shared R library, R profiling
> #
> #   Capabilities skipped:
> #   Options not enabled:       shared BLAS, memory profiling
> #
> #   Recommended packages:      yes
> #
> ##################################################################################################
> The above error came from make by sudo make.
>
> There are some threads about the options --enable-R-shlib, but the problem
> stayed with the option turned off. Without --with-cairo option could not
> resolve the problem either.
> After several hours of search, it seems to me it is related to the
> compiling process, but I'm not sure which library is missing, or which
> options should be used to compile/link in my Ubuntu 18.04.
>
> Thanks a lot!
>
> Yifang
>
>         [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Debian mailing list
> R-SIG-Debian using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-debian



More information about the R-SIG-Debian mailing list