Hi Hiroo,
ChatGPT helped me to fix the problem with Readline Library
+++
How to fix "awk: symbol lookup error: /usr/local/lib/libreadline.so.8:
undefined symbol: UP" while ./configure and make
*in WSL 2 (Ubuntu 20.04.6 LTS) on Windows 10*
Avoid Modifying Read-Only System Libraries: Since the /usr/lib/wsl/lib/
*_directory appears to be read-only_*, always aim to create symbolic
links in a user-writable directory like ~/custom_libs.
1) Create a directory in your home folder (or another writable location)
to hold your custom libcuda files.
mkdir -p ~/custom_libs
Since you cannot modify the /usr/lib/wsl/lib/ directory directly, you
can create a symbolic link in your custom library directory and ensure
that it’s recognized by your system.
2) Create a symbolic link in this directory that points to the original
file:
ln -sf /usr/lib/wsl/lib/libcuda.so.1 ~/custom_libs/libcuda.so.1
Recheck the Symbolic Link: Make sure the symbolic link in your
~/custom_libs is pointing correctly:
ls -l ~/custom_libs/libcuda.so.1
3) Use the custom library path. To use the library from the new
location, you can set the LD_LIBRARY_PATH environment variable to
include your new directory. You can add this to your ~/.bashrc or
~/.bash_profile so that it is set automatically when you start a new
shell session:
echo 'export LD_LIBRARY_PATH=~/custom_libs:$LD_LIBRARY_PATH' >> ~/.bashrc
source ~/.bashrc
4) Verify the Symbolic Link. Confirm that the symbolic link points
correctly to the original library:
ls -l ~/custom_libs/libcuda.so.1
You should see something like:
libcuda.so.1 -> /usr/lib/wsl/lib/libcuda.so.1
5) Verify the Environment Variable:
echo $LD_LIBRARY_PATH
6) Try running ldconfig again without errors:
sudo ldconfig
+++
Best regards,
Dan Richter
Czech Republic
Dne 02.11.2024 v 0:38 林宏雄 napsal(a):
I am using *wsl* (Windows Subsystem for Linux) on my notebook
*Ubuntu 20.04.6 LTS*
...
*_My goal is to successfully compile a run_* (Mathemagix
<https://sourcesup.renater.fr/projects/mmx/> is a free computer
algebra and analysis system):
You already have GNU readline installed. What you need is the header
files.
sudo apt install libncurses-dev libreadline-dev
I hope this helps.
--
Hiroo Hayashi