paul-nameless / nim-fswatch

Nim wrapper for the libfswatch
GNU General Public License v3.0
18 stars 1 forks source link

could not load: libfswatch.so on Ubuntu #5

Open tiye opened 3 years ago

tiye commented 3 years ago

probably not an issue of the code, but related to how Ubuntu is loading that...

root@bb3b3e2e11d4:/dev/calcit-runner# ./out/cr
could not load: libfswatch.so
(compile with -d:nimDebugDlOpen for more information)

I installed fswatch with

apt-get install fswatch

it also got a package called libfswatch9 installed. After Googling I noticed I may need to load that, then I tried:

ldconfig -v

but only to find:

    libfswatch.so.9 -> libfswatch.so.9.0.0

and my program still can not load libfswatch.so.

My test is running on a Docker container. Not sure if that brought changes. I was using nim-fswatch quite well on my macbook.

Any extra steps to use it in Ubuntu?

manually changing https://github.com/paul-nameless/nim-fswatch/blob/master/src/libfswatch.nim#L9 to libfswatch.so.9 works though... but that doesn't looks like a correct solution...

tiye commented 3 years ago

tried ln -s /usr/lib/x86_64-linux-gnu/libfswatch.so.9.0.0 /usr/lib/x86_64-linux-gnu/libfswatch.so... seems like a temporary fix.