Hi Maik,

some distributions do not include /usr/local/lib directories to the 
default library search path. However, most build systems default the 
build directory to be prefixed as /usr/local to avoid conflicts with 
other libs installed by the package manager. So developers who build own 
packages sometimes have to adjust the library search path as you 
described in your Readme or have to change the prefix while building the 
library.

The strange thing here is that the reporter says he installed the 
package via apt-get. But packages should usually not install to 
/usr/local. So probably it is not an official package and the package 
creator did not configure the install prefix the right way. Any idea 
what package it was? AFAIK liblensfun 0.3.2 is not yet available in 
ubuntu or debian repos.

Hope that helps,

Sebastian

Am 2016-02-24 00:28, schrieb Maik Riechert:
> Hi all,
> 
> A Linux user of my python wrapper lensfunpy reported an issue about
> ldconfig not searching in /usr/local/lib/x86_64-linux-gnu after
> installing lensfun via apt-get:
> 
> https://github.com/neothemachine/lensfunpy/issues/8
> 
> I'm no expert on these things which is why I'm asking you guys for 
> help.
> Does anyone have an idea why these things happen? Shouldn't all the
> paths be registered correctly after installing lensfun through apt-get?
> Or am I missing something obvious?
> 
> Note that I already have a general suggestion in my README for the
> /usr/local/lib case:
> 
> ###
> If you get the error "ImportError: liblensfun.so.0: cannot open shared
> object file: No such file or directory" when trying to use lensfunpy,
> then do the following:
> 
> echo  "/usr/local/lib"  |  sudo tee /etc/ld.so.conf.d/99local.conf
> sudo ldconfig
> 
> The lensfun library is installed in /usr/local/lib and apparently this
> folder is not searched for libraries by default in some Linux 
> distributions.
> ###
> 
> For the user above the folder however is
> /usr/local/lib/x86_64-linux-gnu. But even for /usr/local/lib I don't
> understand why this is necessary on some systems.
> 
> Any advice is appreciated.
> 
> Cheers
> Maik
> 
> 
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Lensfun-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lensfun-users

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Lensfun-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lensfun-users

Reply via email to