bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error undefined symbol: UP while installing Readline on wsl (Ubuntu


From: Dan Richter
Subject: Re: Error undefined symbol: UP while installing Readline on wsl (Ubuntu 20.04.6 LTS)
Date: Mon, 4 Nov 2024 10:03:51 +0100
User-agent: Mozilla Thunderbird

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 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]