lxi-tools / liblxi

Open source LXI library
https://lxi-tools.github.io
Other
103 stars 27 forks source link

libixi compile and installs, but lxi: error while loading shared libraries on Fedora 27 #7

Closed DwaineGarden closed 6 years ago

DwaineGarden commented 6 years ago

When compiling from GIT clone. I get library error even though both liblxi and lxi-tools compiles and installs perfectly fine.

screenshot from 2018-01-28 02-41-08 screenshot from 2018-01-28 02-42-17 screenshot from 2018-01-28 02-43-13

lundmar commented 6 years ago

I can't tell for sure but assuming your just did a configure with no options then the install prefix defaults to /usr/local and so the library gets installed in /usr/local/lib which is likely not part of your systems dynamic library loader search path which I assume defaults to /usr/lib .

To mitigate this at run time you can start lxi like so:

LD_LIBRARY_PATH=/usr/local/lib lxi

Or, to fix it at installation time do:

./configure --prefix=/usr

Generally i don't recommend people to install stuff into their system as root like your are doing there as there is a chance your might overwrite your system installed lxi-tools or even worse end up destroying you system if you accidentally do something wrong. It's better to compile and install into your $HOME as normal user but that install procedure is more complicated though.

That being said, since you are on Fedora 27 why don't you try install latest lxi-tools using snap?

$ snap install lxi-tools

It is much much easier! 😄

robert-scheck commented 6 years ago

Fedora package maintainer here…it would have been helpful to get pinged on updates rather suggesting simply snap ;-)

lundmar commented 6 years ago

We try not to overload our package maintainers so we offer snap for those who want to try out latest. But I guess the time is due for another round of native package updates. Consider yourself pinged :)

robert-scheck commented 6 years ago

Since #8 is fixed and even ended up in a release (and the upstream libtirpc issue regarding multithreads for rpcgen has recently also been solved), liblxi v1.13 and lxi-tools v1.20 are submitted to the Fedora and EPEL repositories.

lundmar commented 6 years ago

Great - thanks! :+1:

Yeah, looks iike libtirpc is finally making its way as a replacement.