hydrogen-music / hydrogen

The advanced drum machine for Linux, macOS, and Windows
http://www.hydrogen-music.org
GNU General Public License v2.0
1.01k stars 172 forks source link

install not going to /usr/lib but only /usr/local/lib #1956

Closed wolftune closed 2 months ago

wolftune commented 3 months ago

Hydrogen version * : 1.2.3 Operating system + version : KDE Neon (Ubuntu based)

As discussed in https://github.com/hydrogen-music/hydrogen/issues/677 I built and installed, could not run, and making a symlink of libhydrogen-core-1.2.3.so linking /usr/local/lib/ at /usr/lib allowed it to work.

theGreatWhiteShark commented 3 months ago

Hey @wolftune ,

Seems like your Linux distribution is more user than developer focused. It added /usr/local/bin to $PATH but not /usr/local/lib to $LD_LIBRARY_PATH.

Installing your local build to /usr/local is more or less standard. /usr should be used by your package manager. This allows you to manually compile and install custom Hydrogen versions without messing with the system's one.

You could use a different installation prefix when building Hydrogen. But I would strongly discourage that. As discussed in #677, you could do one of these instead

Do you think there is anything else to be done to keep this issue open?

wolftune commented 3 months ago

Well, the one thing maybe to do is to note this issue in the build instructions. Your reply here is amazingly thorough and clear. Only thing is, your list looks like a 4 step process, but I think you meant it as a weakly-sorted list of options to try (where any one of them alone could work), right?

I have it working now, and I'm just wanting to keep it working in the future and for others to know what to do.

Thanks!

theGreatWhiteShark commented 3 months ago

Well, the one thing maybe to do is to note this issue in the build instructions.

We already had a paragraph in INSTALL.md. But it was that accessible. Just updated it :)