You can work around this by including /usr/local/lib/x86_64-linux-gnu in a LD_LIBRARY_PATH environment variable or configuring the inclusion of that directory via /etc/ld.so.conf or similar. As a step to the correct fix of this problem: Is the library simply installed into a wrong directory? I.e. do other programs that use shared libraries installed in /usr/local have an RPATH¹ set, or does it 'just work'?
1: Check via: readelf -d binary_name and report any lines mentioning RPATH. This page may be relevant http://www.cmake.org/Wiki/CMake_RPATH_handling On Sat, Feb 1, 2014 at 10:46 PM, Ryan May <[email protected]> wrote: > Well, I may have been a bit hasty. Compilation now works, but when I `make > install` and attempt to run ledger I get the following error: > > ledger: error while loading shared libraries: libledger.so.3: cannot open > shared object file: No such file or directory > > The output of `make install` is: > > [ 88%] Built target libledger > [ 91%] Built target ledger > [ 98%] Built target MathTests > [100%] Built target UtilTests > Install the project... > -- Install configuration: "Release" > -- Up-to-date: /usr/local/lib/x86_64-linux-gnu/libledger.so.3 > -- Up-to-date: /usr/local/lib/x86_64-linux-gnu/libledger.so > -- Up-to-date: /usr/local/include/ledger/account.h > -- Up-to-date: /usr/local/include/ledger/amount.h > -- Up-to-date: /usr/local/include/ledger/annotate.h > -- Up-to-date: /usr/local/include/ledger/archive.h > -- Up-to-date: /usr/local/include/ledger/balance.h > -- Up-to-date: /usr/local/include/ledger/chain.h > -- Up-to-date: /usr/local/include/ledger/commodity.h > -- Up-to-date: /usr/local/include/ledger/compare.h > -- Up-to-date: /usr/local/include/ledger/context.h > -- Up-to-date: /usr/local/include/ledger/convert.h > -- Up-to-date: /usr/local/include/ledger/csv.h > -- Up-to-date: /usr/local/include/ledger/draft.h > -- Up-to-date: /usr/local/include/ledger/emacs.h > -- Up-to-date: /usr/local/include/ledger/error.h > -- Up-to-date: /usr/local/include/ledger/expr.h > -- Up-to-date: /usr/local/include/ledger/exprbase.h > -- Up-to-date: /usr/local/include/ledger/filters.h > -- Up-to-date: /usr/local/include/ledger/flags.h > -- Up-to-date: /usr/local/include/ledger/format.h > -- Up-to-date: /usr/local/include/ledger/generate.h > -- Up-to-date: /usr/local/include/ledger/global.h > -- Up-to-date: /usr/local/include/ledger/history.h > -- Up-to-date: /usr/local/include/ledger/item.h > -- Up-to-date: /usr/local/include/ledger/iterators.h > -- Up-to-date: /usr/local/include/ledger/journal.h > -- Up-to-date: /usr/local/include/ledger/lookup.h > -- Up-to-date: /usr/local/include/ledger/mask.h > -- Up-to-date: /usr/local/include/ledger/op.h > -- Up-to-date: /usr/local/include/ledger/option.h > -- Up-to-date: /usr/local/include/ledger/org.h > -- Up-to-date: /usr/local/include/ledger/output.h > -- Up-to-date: /usr/local/include/ledger/parser.h > -- Up-to-date: /usr/local/include/ledger/pool.h > -- Up-to-date: /usr/local/include/ledger/post.h > -- Up-to-date: /usr/local/include/ledger/precmd.h > -- Up-to-date: /usr/local/include/ledger/predicate.h > -- Up-to-date: /usr/local/include/ledger/print.h > -- Up-to-date: /usr/local/include/ledger/pstream.h > -- Up-to-date: /usr/local/include/ledger/ptree.h > -- Up-to-date: /usr/local/include/ledger/pyfstream.h > -- Up-to-date: /usr/local/include/ledger/pyinterp.h > -- Up-to-date: /usr/local/include/ledger/pyutils.h > -- Up-to-date: /usr/local/include/ledger/query.h > -- Up-to-date: /usr/local/include/ledger/quotes.h > -- Up-to-date: /usr/local/include/ledger/report.h > -- Up-to-date: /usr/local/include/ledger/scope.h > -- Up-to-date: /usr/local/include/ledger/select.h > -- Up-to-date: /usr/local/include/ledger/session.h > -- Up-to-date: /usr/local/include/ledger/stats.h > -- Up-to-date: /usr/local/include/ledger/stream.h > -- Up-to-date: /usr/local/include/ledger/temps.h > -- Up-to-date: /usr/local/include/ledger/timelog.h > -- Up-to-date: /usr/local/include/ledger/times.h > -- Up-to-date: /usr/local/include/ledger/token.h > -- Up-to-date: /usr/local/include/ledger/unistring.h > -- Up-to-date: /usr/local/include/ledger/utils.h > -- Up-to-date: /usr/local/include/ledger/value.h > -- Up-to-date: /usr/local/include/ledger/views.h > -- Up-to-date: /usr/local/include/ledger/xact.h > -- Up-to-date: /usr/local/include/ledger/strptime.h > -- Up-to-date: /usr/local/include/ledger/system.hh > -- Up-to-date: /usr/local/include/ledger/sha1.h > -- Up-to-date: /usr/local/include/ledger/utf8.h > -- Installing: /usr/local/include/ledger/utf8 > -- Up-to-date: /usr/local/include/ledger/utf8/checked.h > -- Up-to-date: /usr/local/include/ledger/utf8/core.h > -- Up-to-date: /usr/local/include/ledger/utf8/unchecked.h > -- Up-to-date: /usr/local/bin/ledger > -- Up-to-date: /usr/local/share/man/man1/ledger.1 > -- Up-to-date: /usr/local/share/info/ledger3.texi > -- Up-to-date: /usr/local/share/info/ledger-mode.texi > > Which indicates that the required file is being installed, but ledger can't > find it. > > Any suggestions? > > -Ryan > > > On Sat, Feb 1, 2014 at 2:37 PM, Ryan May <[email protected]> wrote: >> >> I just did a clean build from master on Ubuntu 13.10 and the compilation >> now works. >> >> -Ryan >> >> >> On Sat, Feb 1, 2014 at 1:54 PM, Alexis <[email protected]> wrote: >>> >>> Hi all, >>> the latest commits on the master branch address the build errors >>> and improve the python module support. >>> >>> It was tested on Mac, Debian 8, and Ubuntu 12. Please test whether >>> the current repository state works for you and report any issues. >>> >>> In order to quickly find severe issues as these Travis CI was >>> integrated, so that upon every commit ledger is build from scratch >>> and the tests are run. >>> >>> >>> Cheers, >>> Alexis >>> >>> -- >>> >>> --- >>> You received this message because you are subscribed to a topic in the >>> Google Groups "Ledger" group. >>> To unsubscribe from this topic, visit >>> https://groups.google.com/d/topic/ledger-cli/70yM_r0xguY/unsubscribe. >>> To unsubscribe from this group and all its topics, send an email to >>> [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. >> >> > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
