SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Slackware 14.2, 32 bit. I pulled the last ledger-cli from github and decided to recompile it. It compiled successfully in 2019, but unfortunately in 2021 I got the following errors:
Code:
CMake Warning at CMakeLists.txt:63 (find_package):
By not providing "FindPython.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Python", but
CMake did not find one.
Could not find a package configuration file provided by "Python" with any
of the following names:
PythonConfig.cmake
python-config.cmake
Add the installation prefix of "Python" to CMAKE_PREFIX_PATH or set
"Python_DIR" to a directory containing one of the above files. If "Python"
provides a separate development package or SDK, be sure it has been
installed.
CMake Error at /usr/share/cmake-3.5/Modules/FindBoost.cmake:1657 (message):
Unable to find the requested Boost libraries.
Boost version: 1.59.0
Boost include path: /usr/include
Could not find the following Boost libraries:
boost_nowide
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries.
The first one is warning, it seems that cmake want's some Python configs. The second is an error: it needs boost_nowide lib. I couldn't find it anywhere among slackbuilds.
I tried it already. It also breaks with a different error. I wrote to the slackbuild maintainer.
try building that removing first the dependency utf8cpp: that actually breaks the build here and ledger seems to work well without it (it has an internal version).
try building that removing first the dependency utf8cpp: that actually breaks the build here and ledger seems to work well without it (it has an internal version).
I upgraded utf8cpp with help of ledger Slackbuild maintainer, but still get an error with boost lib:
Don't know the software at all, but 'undefined reference' errors usually signify the required library (libboost in this case) is too old, and a later version is required. Can't you update boost, & try again?
After careful debugging and reading I found the cause of the problem. My boost was compiled with gcc 5.5.0, while I upgraded it to 9.2.0. To solve it I needed to pass "-D_GLIBCXX_USE_CXX11_ABI=0" option to the compiler. So I changed the slackbuild a little:
Code:
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" \ # <-- !
..
make
make install DESTDIR=$PKG
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.