Solve ld linker issues for building R source

前端 未结 1 339
小蘑菇
小蘑菇 2021-01-24 16:56

While trying to install R from source, I ran into linker issues, in particular: undefined reference to \'u_getVersion_58

I found limited information on this

相关标签:
1条回答
  • 2021-01-24 17:31

    We can install a previous version of libicu from source as follows:

    wget http://download.icu-project.org/files/icu4c/58.2/icu4c-58_2-src.tgz
    tar -xf icu4c-58_2-src.tgz
    cd icu
    make
    make install
    

    However, make is likely to run into a compilation error due to missing xlocale.h. As indicated on this github post, this can be solved by running ln -s /usr/include/locale.h /usr/include/xlocale.h, as xlocale.h is just a subset of locale.h which was removed from glibc recently. After this, make and make install should succeed for icu version 58, and following that, for R.

    0 讨论(0)
提交回复
热议问题