-
Notifications
You must be signed in to change notification settings - Fork 990
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
ncurses error when using binary #2106
Comments
Hey @faddat, just curious if you tried to install |
I believe this is because Arch Linux has already the newer version of libncursesw.so - libncursesw.so.6:
Creating a simlink 6 -> 5 works just fine:
and exactly the same goes for /usr/lib/libtinfo.so. Grin lunches just fine after these fixes |
I installed 5 on a vultr server running Ubuntu 18.xx, still get the error. Not paying attention thought I might need the newer 6.1, so compiled and installed. Same error of course and the simlink back to 5 still gives initial error. Going to try rolling back to good old 16.xx I think. |
Works like a charm, no ncurses install required(5 already there) on a Vultr Ubuntu 16.04 clean install w/upgrades. Just as an update to my previous comment. Doesn't change OP issue. |
same issue here, grin 1.0.1 |
fixed this problem in ubuntu 18.10, grin 1.0.1: cd /lib/x86_64-linux-gnu
ln -s libncursesw.so.6 libncursesw.so.5
ln -s libtinfo.so.6 libtinfo.so.5 in ubuntu 18.04, this problem don't exist, and these two file is appeared in version 5. |
cding into /usr/lib/ and using your symlink commands from there seems to solve the issue on manjaro (and probably Arch as well) |
Looks like the a distro related error and not a grin error itself. Closing. |
Seems to me like an issue with grin not recognizing libncurse version 6, only version 5 |
Seems like it already occurs in version 18.10 reading the comments above |
After making the link, it comes with another error:
|
@cool007zqw try the code from jasonzhouu, that fixed the errors for me on Manjaro |
Ubuntu 19.04 |
I am on Ubuntu 19.04 and the symlinks have not solved the problem for me. After running the above commands, trying to run grin gives me these errors: ./grin: /lib/x86_64-linux-gnu/libtinfo.so.5: version NCURSES_TINFO_5.0.19991023' not found (required by ./grin) Thank you for any help you can provide. |
Hi @FTLIan, I will spin up a 19.04 VM and see if I can help you. |
Resolves: sudo apt-get install -y libncursesw5 |
@quentinlesceller I just encountered this issue as well (Debian Buster) with newer versions of libncurses already installed on the system. @Sky-Bly's fix worked for me (thanks for that)
...but I would tend to agree with @jeroen7s's comment above:
Would be nice if we could get this addressed somehow, I don't think it's obvious for end users that they need to have a specific older version of ncurses installed in order for the binary to work. Perhaps makes sense to reopen? |
I agree, fixing small things like this matter |
I'll take a look. |
To clarify: the issue is with the linking of libncursesw-6 which is the wide character library. This looks similar to jeaye/ncurses-rs#151. |
Since libncursesw5 and libncursesw6 uses the same API. Doing an
on Ubuntu solved it (tested on Ubuntu 20.04). I expect it to be the same on other distros. |
fixed the issue in pop!_OS 22.04 |
This release:
https://github.com/mimblewimble/grin/releases/tag/v0.4.2
When using the v0.4.2 binary, I get the following ncurses error:
./grin: error while loading shared libraries: libncursesw.so.5: cannot open shared object file: No such file or directory
I don't get this error when building using cargo from source code. When I build it myself Grin works just fine :). Arch Linux. Happy to investigate further.
The text was updated successfully, but these errors were encountered: