gnuCash compiled from source

Issues related to applications and software problems and general support
Post Reply
david.m.pulkowski
Posts: 1
Joined: 2021/02/14 17:16:21

gnuCash compiled from source

Post by david.m.pulkowski » 2021/02/17 01:00:21

Just wanted to share how I compiled gnuCash from source since its still not in the stable epel release (maybe someone else will find this useful). I usually don't compile applications from source; but once all the compile utility dependencies were figured out, its surprisingly easy.

Download the tar file & extract it.
https://www.gnucash.org/download.phtml
or
https://sourceforge.net/projects/gnucas ... .4.tar.bz2

Extract to a desired location:

Code: Select all

/home/$USER/src/

Disclaimer:
Always check the README files. I ran all the make & ninja commands as my regular user. Anything with dnf was with root.

Repos installed:

Code: Select all

dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf config-manager --set-enabled powertools

Making dependencies;
NOTE: I gathered the dependency list from the README's
Here's a one liner. Please read all the packages to ensure you want these installed. This won't work without them. dnf will add any needed dependencies.

Code: Select all

dnf install ninja-build libxml2 gcc cmake glib2 guile-devel gettext boost-devel swig libdbi zlib aqbanking-devel libofx gcc-c++ spice-glib-devel libxslt-devel webkit2gtk3-devel swig gwenhywfar-devel gwenhywfar-gui-gtk3-devel libofx-devel icu libsecret-devel libdbi-devel gtest-devel libdbi-devel libdbi-drivers libdbi-dbd-mysql gmock-devel

Run the cmake portion:

1. Pick your proper destinations.
2. CMAKE_INSTALL_PREFIX is the location that all of the compiled code will go.
3. -G Ninja is pointing to your source location e.g. /home/$USER/src/gnucash-4.4
4. Run the below command when you have your destinations correct.

Code: Select all

cd /home/$USER/bin/gnucash-build
cmake -D CMAKE_INSTALL_PREFIX=/home/$USER/bin/gnucash-build -G Ninja /home/$USER/src/gnucash-4.4/
Run ninja build file:

Code: Select all

cd /home/$USER/bin/gnucash-build
ninja-build
If the build was sucessful gnucash is now compiled in the CMAKE_INSTALL_PREFIX bin directory.

Run the ninja tests:

Code: Select all

/home/$USER/bin/gnucash-build
ninja check
Test gnucash launches.

From the commandline:

Code: Select all

/home/$USER/bin/gnucash-build/bin/gnucash
Make a gnucash directory in opt or desired location.

Code: Select all

mkdir /opt/gnucash
cp -R /home/$USER/bin/gnucash-build/* /opt/gnucash/
Create a launcher-shortcut:
Create this if you want to. If you do not put the compiled code into /opt/gnucash you will have to change the paths in the launcher.

Code: Select all

vim /usr/share/applications/gnucash.desktop

Code: Select all

[Desktop Entry]
Type=Application
MimeType=application/x-gnucash;
Version=0.9.4
Name[ca]=GnuCash
Name[da]=GnuCash
Name[fa]=گنوکش
Name[ja]=GnuCash
Name[ro]=GnuCash
Name[sk]=GnuCash
Name[sr]=Гнуов новчић
Name[sv]=GnuCash
Name[tr]=GnuCash
Name[uk]=GnuCash
Name[zh_CN]=GnuCash
Name[ar]=جنوكاش
Name[as]=GnuCash
Name[brx]=GnuCash
Name[de]=GnuCash
Name[es]=GnuCash
Name[fi]=GnuCash
Name[fr]=GnuCash
Name[he]=גנוקאש
Name[hi]=GnuCash
Name[hr]=GnuCash
Name[it]=GnuCash
Name[kn]=ಗ್ನುಕ್ಯಾಶ್
Name[kok]=GnuCash
Name[kok@latin]=GnuCash
Name[ks]=GnuCash
Name[lt]=GnuCash
Name[lv]=GnuCash
Name[mai]=ग्नूकैश
Name[mni]=GnuCash
Name[mni@bengali]=GnuCash
Name[mr]=GnuCash
Name[nb]=GnuCash
Name[nl]=GnuCash
Name[pt]=GnuCash
Name[pt_BR]=GnuCash
Name[ru]=GnuCash
Name[ta]=GnuCash
Name[te]=Gnuక్యాష్
Name[ur]=GnuCash
Name[zh_TW]=GnuCash
Name[id]=GnuCash
Name=GnuCash
GenericName[ca]=Gestor de finances
GenericName[da]=Finanshåndtering
GenericName[fa]=مدیریت امور مالی
GenericName[ja]=財務管理
GenericName[ro]=Administrarea finanțelor
GenericName[sr]=Управљање финансијама
GenericName[tr]=Finans Yönetimi
GenericName[uk]=Керування фінансами
GenericName[zh_CN]=财务管理
GenericName[ar]=الإدارة المالية
GenericName[as]=বিত্ত পৰিচালনা
GenericName[brx]=राङारि मेनेजमेन्ट
GenericName[de]=Finanzmanagement
GenericName[es]=Gestión Financiera
GenericName[fr]=Gestionnaire de finances
GenericName[he]=ניהול פיננסי
GenericName[hi]=वित्त प्रबंधन
GenericName[hr]=Financijsko upravljanje
GenericName[it]=Gestione finanziaria
GenericName[kn]=ಹಣಕಾಸು ನಿರ್ವಹಣೆ
GenericName[kok]=अर्थिक व्यवस्थापन
GenericName[kok@latin]=Arthik karbhar
GenericName[ks]=फायनानॊस मनेजमेनट
GenericName[lt]=Finansų valdymas
GenericName[lv]=Finanšu pārvaldība
GenericName[mai]=वित्त प्रबंधन
GenericName[mni]=ꯁꯦꯜ-ꯊꯨꯝꯒꯤ ꯑꯁꯤꯟ-ꯑꯔꯥꯡ
GenericName[mni@bengali]=ফাইনান্স মেনেজমেন্ত
GenericName[mr]=वित्तपुरवठा व्यवस्थापन
GenericName[nb]=Finansforvaltning
GenericName[nl]=Financieel management
GenericName[pt]=Gestão financeira
GenericName[pt_BR]=Gerenciador Financeiro
GenericName[ru]=Управление финансами
GenericName[ta]=நிதி மேலாண்மை
GenericName[te]=ఆర్థిక నిర్వహణ
GenericName[ur]=فنانس مینجمنٹ
GenericName[zh_TW]=財務管理
GenericName[id]=Manajemen Keuangan
GenericName=Finance Management
Comment[ca]=Gestioneu les vostres finances, comptes i inversions
Comment[cs]=Spravovat vaše finance, účty a investice
Comment[da]=Håndter dine finanser, konti og investeringer
Comment[eu]=Kudeatu zure finantzak, kontuak eta inbertsioak
Comment[fa]=امور مالی،حساب‌ها و سرمایه‌گذاری خود را مدیریت کن
Comment[ja]=財務、口座および投資を管理します
Comment[ro]=Administrează-ți finanțele, conturile și investițiile
Comment[sr]=Управљајте вашим финансијама, налозима, и улагањима
Comment[tr]=Maliyet, hesap ve yatırımlarınızı yönetin
Comment[uk]=Керування вашими фінансами, рахунками та інвестиціями
Comment[zh_CN]=管理您的财务、账户与投资
Comment[ar]=إدارة الشؤون المالية والحسابات والاستثمارات الخاص بك
Comment[as]=আপোনাৰ বিত্তবোৰ, একাউন্টবোৰ, আৰু বিনিয়োগবোৰ পৰিচালনা কৰক
Comment[bg]=Управлявайте финанси, сметки и инвестиции
Comment[brx]=नोंथांनि रां, एकाउन्ट, आरो रांखामानियाव बाहायनायखौ सामलाय
Comment[de]=Verwaltung der Finanzen von Privatanwendern und Kleinbetrieben.
Comment[doi]=अपने फाइनांस, खातें ते निवेशें दा प्रबंधन करो 
Comment[en_GB]=Manage your finances, accounts, and investments
Comment[es]=Gestione sus finanzas, cuentas e inversiones
Comment[fr]=Gérez vos finances, vos comptes et vos investissements
Comment[gu]=તમારા નાણાકીય, હિસાબો અને રોકાણનું સંચાલન કરો
Comment[he]=ניהול הכספים, החשבונות וההשקעות
Comment[hi]=अपने वित्त, खातों और निवेशों का प्रबंधन करें
Comment[hr]=Upravljaj novčanim sredstvima, kontima i ulaganjima
Comment[hu]=Igazgassa pénzügyeit, számláit és befektetéseit
Comment[it]=Gestisce le proprie finanze, i conti e gli investimenti
Comment[kn]=ನಿಮ್ಮ ಹಣಕಾಸುಗಳನ್ನು, ಖಾತೆಗಳನ್ನು ಹಾಗು ಹೂಡಿಕೆಗಳನ್ನು ನಿರ್ವಹಿಸಿ
Comment[ko]=재정, 계정 및 투자 관리
Comment[kok]=तुमचे वित्त,खाती आणि गुंतवणूकींचे व्यवस्थापन करात
Comment[kok@latin]=Tuji duddu, khatim ani guntovnnuk hatall
Comment[ks]=पनॊन फायनानोस,एिकावुंट, तॊ ईनवीसटेमींट कॊरीव मनिज
Comment[lt]=Valdykite savo finansus, sąskaitas ir investicijas
Comment[lv]=Pārvaldiet savas finanses, kontus un investīcijas
Comment[mai]=अपन वित्त, खाता आओर निवेश क'  प्रबंधन करू
Comment[mni]=ꯑꯗꯣꯝꯒꯤ ꯐꯥꯏꯅꯥꯟꯁꯦꯁ, ꯑꯦꯀꯥꯎꯟꯠꯁ, ꯑꯃꯁꯨꯡ ꯏꯟꯚꯦꯁꯃꯦꯟꯠꯁ ꯁꯤꯜ-ꯂꯥꯡꯎ
Comment[mni@bengali]=অদোমগী ফাইনান্সেস, একাউন্তস, অমসুং ইনভেস্তমেন্তস শীল-লাংউ
Comment[mr]=तुमचे आर्थिक व्यवहार, खाते आणि गुंतवणुकी यांचे व्यवस्थापन करा
Comment[nb]=Forvalt dine finanser, kontoer og investeringer
Comment[ne]=तपाईँको वित्तहरू, खाताहरू, र लगानीहरू प्रबन्ध गर्नुहोस्
Comment[nl]=Om uw financiën, rekeningen en investeringen te beheren
Comment[pl]=Zarządzaj swoimi finansami, kontami i inwestycjami
Comment[pt]=Faça a gestão das suas finanças, contas e investimentos
Comment[pt_BR]=Gerencie suas finanças, contas e investimentos
Comment[ru]=Управляйте своими финансами, счетами и инвестициями
Comment[ta]=உங்கள் நிதிகள், கணக்குகள், மற்றும் முதலீடுகளை பராமரிக்கவும்
Comment[te]=మీ ఆర్ధికాలను, ఖాతాలను, పెట్టుబడులను నిర్వహించు
Comment[ur]=آپ اپنے مالگزاری، اكاؤنٹس اور سرمایہ كاری كا بندوبست كرو
Comment[vi]=Quản lý tài chính, các tài khoản và vốn cố định
Comment[id]=Kelola keuangan, akun, dan investasi Anda
Comment=Manage your finances, accounts, and investments
Exec=/opt/gnucash/bin/gnucash %f
# Translators: Icon file name, do not translate unless you also provide a localized icon file. Alternatively use the English "gnucash-icon" as msgstr
Icon=/opt/gnucash/share/icons/hicolor/128x128/apps/gnucash-icon.png
StartupNotify=true
Terminal=false
Categories=Office;Finance;
X-GNOME-Bugzilla-Bugzilla=gnucash.org
X-GNOME-Bugzilla-Product=GnuCash
X-GNOME-Bugzilla-Component=General
X-GNOME-Bugzilla-Version=4.
X-GNOME-DocPath=gnucash-help/gnucash-help.xml
X-GNOME-FullName=GnuCash Finance Management

Post Reply

Return to “CentOS 8 - General Support”