-
Notifications
You must be signed in to change notification settings - Fork 2
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
Proper way to provide libfswatch on Ubuntu 20.04 #4
Comments
Looking on the details of
But it doesn't seem to be found |
Great. Things are a bit messy it seems.
So, how we can make things work in ubuntu impish for example.
But your app will not run probably. The libfswatch.so is a shared library in a non default location. If your app does not run with a message complaining that libfswatch was not found that means that LD_LIBRARY_PATH needs to be tweaked. See how libfswatch is found by ldd after LD_LIBRARY_PATH is set. $ ldd your_compiled_app
linux-vdso.so.1 (0x00007ffcf2bdf000)
libfswatch.so.11 => not found
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fa2ddd08000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fa2ddc24000)
libevent-2.1.so.7 => /lib/x86_64-linux-gnu/libevent-2.1.so.7 (0x00007fa2ddbce000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fa2ddbb4000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fa2dd98c000)
/lib64/ld-linux-x86-64.so.2 (0x00007fa2ddfd0000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fa2dd985000)
$ export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/libfswatch
$ ldd your_compiled_app
linux-vdso.so.1 (0x00007fff3eb0c000)
libfswatch.so.11 => /usr/lib/x86_64-linux-gnu/libfswatch/libfswatch.so.11 (0x00007f80465f8000)
libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f804657f000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f804649b000)
libevent-2.1.so.7 => /lib/x86_64-linux-gnu/libevent-2.1.so.7 (0x00007f8046445000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f804642b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f8046203000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8046891000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f80461fc000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f8045fe3000) libfswatch seems to not have many users. People uses the app directly it seems. Some other considerations:
For additional help on how to deal with libraries in general use the forum were more wise people will probably collaborate. |
Thank you a lot, Brian! |
After
shards install
, when trying to compile the Crystal code example provided on README, with:I'm getting the following error:
I'm on Ubuntu 20.04 and
libfswatch-dev
is not provided anymore (was provided up to 18.04), so the only package I was able to install wasfswatch
. But after installing it, the same error still occurs when trying to compile.It seems that if I compile
fswatch
from source the problem will be solved, but I would like to provide Crystal libraries that use crystal-fswatch with no manual compilation needed from the user side.Do you know if the
libfswatch
changed its name from Ubuntu version 20.04 onwards?The
shard.yml
is:The text was updated successfully, but these errors were encountered: