-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded to 0.22.2 and getting missing libc error after installing #4203
Comments
I also have this error on 0.22.1 and 0.22.2. Error on 0.22.2: Error on 0.22.1: Version 0.22.0 will run fine. Unfortunately for me, this version uses testnet3 and I'm hoping to use testnet4. |
We'll have to start linking libc statically with |
I was able to fix this by manually compiling glibc-2.39 and linking a library enviornment. Then making an alias to use that in .bashrc This is on linux
sudo apt update
sudo apt install build-essential manpages-dev gawk bison
wget http://ftp.gnu.org/gnu/libc/glibc-2.39.tar.gz
tar -xvzf glibc-2.39.tar.gz
cd glibc-2.39
mkdir build
cd build
../configure --prefix=/opt/glibc-2.39
make -j$(nproc)
sudo make install Now you need to add an alias in .bashrc to use this library path when running ord nano ~/.bashrc add this line: source ~/.bashrc Now you should be able to use ord. I don't know how to achieve the same for Windows I'm sorry. But this is how to build glibc from source on linux and get ord to use it. Hopefully this help others until it's fixed. If you want my service file for ord server [Unit]
Description=Ord Server
After=network.target
[Service]
ExecStart=/opt/glibc-2.39/lib/ld-linux-x86-64.so.2 --library-path /opt/glibc-2.39/lib:/usr/lib/x86_64-linux-gnu /usr/local/bin/ord server --http-port ****
WorkingDirectory=/home/satoshi/.ord
User=satoshi
Group=satoshi
Restart=always
Environment="LD_LIBRARY_PATH=/opt/glibc-2.39/lib:/usr/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH"
[Install]
WantedBy=multi-user.target Set the port as you like |
Post upgrade to latest build from prev ord 0.22.0;
running ord commands generate the error below:
ord: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by ord)
ord: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by ord)
environment: Win11 pro with WSL Ubuntu build 22.04.1 LTS
tried sudo apt update and sudo apt install libc6 to troubleshoot with no solution, had to revert to prev build of ord to continue
The text was updated successfully, but these errors were encountered: