LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-21-2020, 10:30 AM   #1
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Rep: Reputation: 58
Installing GnuCash on current


Anybody get GnuCash installed on current that can help me?
I've been trying to use sqg and sbopkg, but get way too many errors.

Or, is the a different and comparable application that is easier to install?

I use gnucash on another distro because I use it a couple times/week. I'd just prefer to stay with Slackware.

Any help appreciated
 
Old 07-21-2020, 10:46 AM   #2
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
I use kmymoney from AlienBob's Plasma 5 on -current. I personally found it more intuitive back when I was choosing one. I'm attempting to build gnucash now to see if it works.
 
Old 07-21-2020, 12:43 PM   #3
phalange
Member
 
Registered: May 2018
Distribution: Slackware, FreeBSD, Debian
Posts: 355

Rep: Reputation: 184Reputation: 184
Quote:
Originally Posted by multios View Post
Anybody get GnuCash installed on current that can help me?
I've been trying to use sqg and sbopkg, but get way too many errors.

Or, is the a different and comparable application that is easier to install?

I use gnucash on another distro because I use it a couple times/week. I'd just prefer to stay with Slackware.

Any help appreciated
I installed flatpak on Slackware current to run some other apps, and I found it convenient to install GnuCash that way too.

I have also used the GnuCash slackbuild, and it's fine also. It's a bit behind in version at this moment.

Since you're on current, you'll find many of the dependencies for GnuCash are now met within Slackware, so just check before overwriting something.
 
Old 07-21-2020, 01:05 PM   #4
chrisVV
Member
 
Registered: Aug 2010
Posts: 548

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by multios View Post
Anybody get GnuCash installed on current that can help me?
I've been trying to use sqg and sbopkg, but get way too many errors.

Or, is the a different and comparable application that is easier to install?

I use gnucash on another distro because I use it a couple times/week. I'd just prefer to stay with Slackware.

Any help appreciated
I have gnucash-3.10 running but it is quite tedious. First you need to install webkit-gtk, which is a long compile (about an hour on my 8-core machine). I also couldn't get it to compile with guile-3.0, so I had to install a separate version of guile-2.2 in its own special directory. And to compile it (but not to run it) you need googletest installed, and you need to do so in a way which has the googlemock/src directory appear as /usr/src/gmock/src so gnucash can find it.

Here is my config file for gnucash, for compilation against guile-2.2:

Code:
mkdir build
cd build
GNUCASH_CFLAGS="-O2 -fPIC -Wno-error"
export LD_LIBRARY_PATH=/opt/guile22/lib64
export PATH=/opt/guile22/bin:$PATH
export GUILE_LOAD_PATH=/opt/guile22/share/guile/2.2:/opt/guile22/share/guile/site/2.2:/opt/guile22/share/guile/site:/opt/guile22/share/guile
export PKG_CONFIG_PATH=/opt/guile22/lib64/pkgconfig:$PKG_CONFIG_PATH
export LDFLAGS=-L/opt/guile22/lib64:$LDFLAGS
export ACLOCAL_PATH=/opt/guile22/share/aclocal:/usr/share/aclocal:$ACLOCAL_PATH
GUILE_EFFECTIVE_VERSION="2.2" CFLAGS="$GNUCASH_CFLAGS" \
                        cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib64 \
                        -DCMAKE_BUILD_TYPE=Release -DWITH_AQBANKING=No -DWITH_OFX=No -DWITH_SQL=No \
                        -DCOMPILE_GSCHEMAS=No
I then rename the gnucash binary as gnucash.bin and start it with this script so it can find the guile-2.2 shared library:

Code:
#!/bin/sh
export LD_LIBRARY_PATH=/opt/guile22/lib64:$LD_LIBRARY_PATH
exec /usr/bin/gnucash.bin
guile-2.2 is installed in /opt/guile22 so it doesn't interfere with guile-3.0 with this configuration:

Code:
GUILE_CFLAGS="-O2 -fPIC -Wno-error"
CFLAGS="$GUILE_CFLAGS" ./configure --prefix=/opt/guile22 --libdir=/opt/guile22/lib64 --enable-shared --disable-static
If compiling gnucash-3, make sure you don't have gnucash-2 installed or you will get compile errors.
 
Old 07-21-2020, 01:11 PM   #5
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,149

Rep: Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214Reputation: 4214
FWIW it builds just fine here using the scripts in the unofficial fork of SBo for current: I introduced a guile2.2.SlackBuild in there (to parallel install guile2.2 together with guile-3.x of Slackware current) as a dependency, it's explained in gnucash's README.
 
Old 07-21-2020, 02:11 PM   #6
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
Quote:
Originally Posted by ponce View Post
FWIW it builds just fine here using the scripts in the unofficial fork of SBo for current: I introduced a guile2.2.SlackBuild in there (to parallel install guile2.2 together with guile-3.x of Slackware current) as a dependency, it's explained in gnucash's README.
Thanks for all the comments/help!
Ponce, I saw the info you just provided when I ran sbopkg -s gnucash, but not when I just ran sqg -p gnucash. I am installing it as I write this.
I also found, and installed gst-plugins-bad on alienbob's slackbuild site, which solved that problem.
I also uncommented SKIP_EMPTY line in /usr/sbin/sqg. When I get back to the gnucash queue, I'll see if that helps the building of any further dependencies.

Oh, also, fwiw, not knowing if it would help, I also ran sqg -a.

I am still learning about how to use these different apps for building packages, so thanks to all of you for your patience/help

Last edited by multios; 07-21-2020 at 02:12 PM. Reason: add sgq -a comment
 
Old 07-21-2020, 03:16 PM   #7
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
With the help mentioned above, after running sqg -p gnucash, I ran sbokpkg.
I loaded the gnucash and gnucash-docs files, then processed the queue after clearing the installed apps.
Installation of gnucash and gnucash-docs completed

So far, gnucash seems to be working fine, although as mentioned above, it is an earlier version. IIRC, on Windows 10, I have 4.0.

However, no need to boot back and forth between systems/distros.
Thank you all for your help! Very much appreciated.
 
Old 07-21-2020, 03:21 PM   #8
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
Sounds like you've got it figured out, but since I took the time to build it, I will just report: gnucash successfully on -current using sboui. All I had to do was install guile-2.2, and then the build order sboui came up with took care of the rest. I use a build of sboui from the latest master commit on -current.
 
1 members found this post helpful.
Old 07-21-2020, 04:02 PM   #9
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
Quote:
Originally Posted by montagdude View Post
Sounds like you've got it figured out, but since I took the time to build it, I will just report: gnucash successfully on -current using sboui. All I had to do was install guile-2.2, and then the build order sboui came up with took care of the rest. I use a build of sboui from the latest master commit on -current.
Thanks montagdude
A couple of my problems was with guile (having 2 versions), another program that I now forget, and the skip_empty error.
I had no idea at the time of my original post what the correct answer to the errors/failures was.
Reading the posts above helped. IIRC, previously I had left my laptop on all night to install the webkitgtk app.

Any way, thanks again for installing it yourself to see how it went.
 
Old 07-21-2020, 09:42 PM   #10
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,224

Rep: Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946Reputation: 946
There's some messing around, but it's not so tough. Here's the sbotools way (from the beginning):

(0) Install the sbotools "ready-made package".
(1) Put Ponce's -current repo in /etc/sbotools/sbotools.conf (JOBS=x can also be useful to improve compile times).
Code:
REPO=https://github.com/Ponce/slackbuilds.git
(2) Pull SBo repo (repo files go to /usr/sbo/repo, downloads go to /usr/sbo/distfiles).
Code:
sbosnap fetch
(3) Download/build/install guile2.2 and gnucash (+ deps).
Code:
sboinstall guile2.2 gnucash
 
Old 07-22-2020, 09:59 AM   #11
multios
Member
 
Registered: Mar 2006
Location: Homer, Alaska USA
Distribution: OpenBSD, FreeBSD, Slackware64-current
Posts: 276

Original Poster
Rep: Reputation: 58
Quote:
Originally Posted by drgibbon View Post
There's some messing around, but it's not so tough. Here's the sbotools way (from the beginning):

(0) Install the sbotools "ready-made package".
(1) Put Ponce's -current repo in /etc/sbotools/sbotools.conf (JOBS=x can also be useful to improve compile times).
Code:
REPO=https://github.com/Ponce/slackbuilds.git
(2) Pull SBo repo (repo files go to /usr/sbo/repo, downloads go to /usr/sbo/distfiles).
Code:
sbosnap fetch
(3) Download/build/install guile2.2 and gnucash (+ deps).
Code:
sboinstall guile2.2 gnucash
drgibbon, thank you! I'll try that next time I need to install something with slackbuild.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] gnucash-3.3.tar.bz2 actually installs gnucash v. 3.2, not 3.3 Captain Brillo Linux - Software 6 11-01-2018 02:45 PM
Slackware64-Current, GnuCash and Linuxdoc-tools kd5zex Slackware 1 02-25-2010 03:27 AM
Installing GnuCash on KDE - anyone know how to do it? Malacoda Linux - Software 4 04-16-2006 05:26 PM
Installing new language in GNUCash pdemaers Linux - Software 2 05-31-2004 10:11 AM
installing Gnucash undershepherd Linux - Newbie 2 02-06-2003 05:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration