ERROR: Error building `RCall`: ERROR: could not load library "/usr/lib/R/lib/libR.so" /home/shaoyanjia/julia/julia-1.8.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /lib/x86_64-linux-gnu/libicuuc.so.70) ERROR: LoadError: Try adding /usr/lib/R/lib to the "LD_LIBRARY_PATH" environmental variable and restarting Julia.解决报错
时间: 2023-07-07 18:36:11 浏览: 141
Linux-Information.rar_Linux/Unix编程_Unix_Linux_
This error occurs when Julia is unable to load the required library for RCall due to a missing dependency. Specifically, it seems that the version of libstdc++.so.6 in your system is not compatible with the version required by libicuuc.so.70.
To resolve this issue, you can try adding the path to R's library directory (/usr/lib/R/lib) to the "LD_LIBRARY_PATH" environmental variable. This can be done by running the following command in your terminal:
```
export LD_LIBRARY_PATH="/usr/lib/R/lib:$LD_LIBRARY_PATH"
```
Then, restart Julia and try building RCall again. This should resolve the issue.
阅读全文