Open tiye opened 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:
libfswatch9
ldconfig -v
but only to find:
libfswatch.so.9 -> libfswatch.so.9.0.0
and my program still can not load libfswatch.so.
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.
nim-fswatch
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...
libfswatch.so.9
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.
ln -s /usr/lib/x86_64-linux-gnu/libfswatch.so.9.0.0 /usr/lib/x86_64-linux-gnu/libfswatch.so
probably not an issue of the code, but related to how Ubuntu is loading that...
I installed fswatch with
it also got a package called
libfswatch9
installed. After Googling I noticed I may need to load that, then I tried:but only to find:
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...