ERROR: Unable to install rJava package. /usr/bin/ld: cannot find -licuuc

Problem
The following error message appears when installing the rJava package in a RedHat Linux environment: 
/usr/bin/ld: cannot find -licuuc 
collect2: ld returned 1 exit status 
make[2]: *** [libjri.so] Error 1 
make[2]: Leaving directory `/tmp/Rtmp13ZjLo/R.INSTALL200e61ae1/rJava/jri/src' 
make[1]: *** [src/JRI.jar] Error 2 
make[1]: Leaving directory `/tmp/Rtmp13ZjLo/R.INSTALL200e61ae1/rJava/jri' 
make: *** [jri] Error 2 
ERROR: compilation failed for package ‘rJava’
Solution
This error pertains to the libicu library missing. To verify if this is the case in your environment, check if you have it installed on your machine by doing the following command on the linux console:
rpm -qa | grep -i libicu
 
There should be two package showing on the output. If one or none of this packages are present, just use yum to install it:
yum install libicu yum install libicu-devel
Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.
Properties

Article ID: 3103815 - Last Review: 11/01/2015 14:04:00 - Revision: 1.0

Revolution Analytics

  • KB3103815
Feedback