Closed Antzelino closed 4 years ago
On https://nim-lang.org/install_unix.html I found
$ curl https://nim-lang.org/choosenim/init.sh -sSf | sh
to install latest nim, so I'm trying this right now.
Successfully installed and successfully compiled with nimble build -d:release
. It compiles so it works, right? Well, I got:
could not load: libGL.so
compile with -d:nimDebugDlOpen for more information
So I tried that, and then I got:
libX11.so: cannot open shared object file: No such file or directory
libX11.so: cannot open shared object file: No such file or directory
libGL.so: cannot open shared object file: No such file or directory
could not load: libGL.so
So I guess there is some library about GL or X11 or something that I have to install. Anyone know what it is and how to install?
@Antzelino I have not used Ubuntu based distros for age, but I think you can try to install libx11-dev
and libgl1-mesa-dev
packages. I think this where libX11.so
and libGL.so
could be located.
opengl
bindings link to libGL.so
instead of libGL.so.1
, and former in many distros is only present in dev
packages.
After:
$ sudo apt-get install libx11-dev libgl1-mesa-dev
It runs! :) thanks @rexim
I have Linux Mint 19.1 Cinnamon. Cinnamon Version 4.0.10 (no idea if that's important). Linux Kernel 4.15.0-70-generic (also no idea if that's important).
I didn't have nim installed so i just
sudo apt-get install nim
and then followed the readme.md:And I get this error:
What do I do? When I do
nim -h
I getNim Compiler Version 0.17.2 (2018-02-05) [Linux: amd64]
(etc...). Shouldn't apt-get install give me the latest version? 🤔