samtay / tetris

A terminal interface for Tetris
Other
871 stars 40 forks source link

Error when installing binary on Linux (CentOS 7) #1

Closed DylanSp closed 7 years ago

DylanSp commented 7 years ago

I installed the binary from this repo, following the instructions in the README. When I tried to run the executable, I got this error:

tetris: error while loading shared libraries: libncursesw.so.6: cannot open shared object file: No such file or directory

Building from source worked and ran successfully. System is CentOS 7.

samtay commented 7 years ago

Yeah, I've seen this before. It was a bit naive to think the binaries would be so portable. Unfortunately, I think the fix is specific to the OS, for instance on ARCH you can install ncurses5-compat-libs. Some people also hack a fix by symlinking the existing libncursesw.so.5 to libncursesw.so.6, if version 6 isn't available for your OS.

When I get back to my linux box I'll push up a statically compiled binary and see if that works.