For some reason in my setup the ledger executable could not find the 
libledger-3.dll.

Symptom:
xxx@yyy Tue Dec 30 00:44:18  ~
$ ledger
/usr/local/bin/ledger.exe: error while loading shared libraries: libledger-
3.dll: cannot open shared object file: No such file or directory

The libledger-3.dll is installed by the make install to /usr/local/lib/.


*Solution for now: Make sure the shell executing ledger contains 
/usr/local/lib/ in the PATH environment variable.*
I tried several other methods to influence the executables runtime library 
load path by tweaking linker parameters like -rpath, gcc parameters like 
-L,  environment variables like LIBRARY_PATH and all that, but none of them 
worked.

Op dinsdag 23 december 2014 00:56:03 UTC+1 schreef Hans Erik van Elburg:
>
>
> * building ledger 3.1 under cygwin
>
> # Used sources:
> - [[https://
> github.com/ledger/ledger/wiki/Build-instructions-for-Cygwin][Build 
> <http://github.com/ledger/ledger/wiki/Build-instructions-for-Cygwin%5D%5BBuild>
>  
> instructions for Cygwin]]
> - [[https://
> groups.google.com/d/msg/ledger-cli/Iumqw02dTOs/HYBzW8tSyw4J][Jo 
> <http://groups.google.com/d/msg/ledger-cli/Iumqw02dTOs/HYBzW8tSyw4J%5D%5BJo> 
> Bernsteins tip:]]
>
>
> # from scratch assuming dependencies are available, see reference build 
> instructions:
> git clone https://github.com/ledger/ledger.git
> cd ledger
> sed -i.backup -e 's/add_definitions(-std=c++11)/add_definitions(-std=c++11 
> -U__STRICT_ANSI__)/' CMakeLists.txt
> cmake -G "Unix Makefiles"
> ./acprep --python update
>
>
> # or alternatively in an existing ledger clone:
> ./acprep gitclean
> sed -i.backup -e 's/add_definitions(-std=c++11)/add_definitions(-std=c++11 
> -U__STRICT_ANSI__)/' CMakeLists.txt
> cmake -G "Unix Makefiles"
> ./acprep --python update
>
>
>
>

-- 

--- 
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/d/optout.

Reply via email to