You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Neither running from build nor installing works for me (both running build/i-use-arch-btw or install + running i-use-arch-btw) yields:
build/i-use-arch-btw: error while loading shared libraries: libiuab.so: cannot open shared object file: No such file or directory
Probable reason: The .so file isn't installed properly for me / the program doesn't try to use it, even though it's in the same folder as the binary. When i sudo copy build/libiuab.so /lib it works. But externalizing the functionality to a lib seems overkill IMO, so the probable solutions are:
Fix makefile to also install lib
Fix build/make process to not build a lib
System: I use Arch btw. (Manjaro)
On Windows, this behaviour probably wouldn't happen, as .exe files look for .dll files automatically.
The text was updated successfully, but these errors were encountered:
Sorry for making you wait, I somehow didn't even notice that this issue was opened.
Running sudo make install in the project's root directory should install everything. However, the default install directories for the i-use-arch-btw executable and the libiuab.so shared library are /usr/local/bin and /usr/local/lib respectively, and not /usr/bin and /usr/lib, as the latter should only contain files installed by your distro's package manager and not by you manually, and it is more likely for the make install command to be run by someone manually than by a package build script.
To make the i-use-arch-btw executable work, you can either:
append :/usr/local/lib to the LD_LIBRARY_PATH environment variable, which tells the dynamic link loader in which directories to look for shared libraries
run sudo make install PREFIX=/usr instead of simply sudo make install; that'll install i-use-arch-btw and libiuab.so to /usr/bin and /usr/lib instead of /usr/local/bin and /usr/local/lib
I would recommend the former. If you use bash or zsh as your shell, add this to your ~/.bashrc/~/.zshrc:
Neither running from build nor installing works for me (both running build/i-use-arch-btw or install + running i-use-arch-btw) yields:
Probable reason: The .so file isn't installed properly for me / the program doesn't try to use it, even though it's in the same folder as the binary. When i
sudo copy build/libiuab.so /lib
it works. But externalizing the functionality to a lib seems overkill IMO, so the probable solutions are:System: I use Arch btw. (Manjaro)
On Windows, this behaviour probably wouldn't happen, as .exe files look for .dll files automatically.
The text was updated successfully, but these errors were encountered: