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 20:36:11 浏览: 114
If adding the R library directory to the "LD_LIBRARY_PATH" environmental variable did not resolve the issue, you can try installing a newer version of libstdc++.so.6 that includes the required `GLIBCXX_3.4.30` version.
To do this, you can follow these steps:
1. Check if you have the latest version of libstdc++.so.6 installed by running the command:
```
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
```
This should show you a list of the GLIBCXX versions that are included in the library.
2. If the version `GLIBCXX_3.4.30` is not included in the library, you can try installing a newer version of libstdc++.so.6 by running the command:
```
sudo apt-get install libstdc++6
```
This should install the latest version of libstdc++.so.6.
3. After installing the new library, you may need to update the "LD_LIBRARY_PATH" environmental variable to include the path to the new library. You can do this by running the command:
```
export LD_LIBRARY_PATH="/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH"
```
4. Restart Julia and try building RCall again. This should resolve the issue.
If these steps do not work, you may need to seek further assistance from a more experienced user or a technical support forum.
阅读全文