[SOLVED] difficulty installing Gnucash 2.6.14 from a tarball
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
difficulty installing Gnucash 2.6.14 from a tarball
I wish to install Gnucash, and would like to use the latest version, rather than that available through the Software Manager. I am running Linux Mint 17.3 Cinnamon.
This is partly because I tried Gnucash once before, had difficulties, and am hoping that a later version might be better (the difficulties were probably all mine, but hope springs eternal) but mostly because I would like to understand the process of installing from a tarball.
(note: again, any difficulties I've encountered I am sure were of my own making)
I downloaded gnucash-2.6.14.tar.bz2
I created a folder named "gnucash", transferred the tarball there and extracted it (so that I then had a folder named "gnucash-2.6.14" sitting beside the original tarball.
I then entered in the terminal the following:
./configure /home/brant/gnucash/gnucash-2.6.14
but received the message "./configure: No such file or directory.
I am sure the error, or errors, are obvious, but what?
When installing tarballs like this the "configure" command you're using is typically just a script included with the tarball. (That is to say there isn't a system wide "configure" command [usually]).
Do:
cd /home/brant/gnucash/gnucash-2.6.14
./configure
Also do any make commands inside that directory after the configure. Be sure to look at what the configure tells you as there may be other packages it asks you to install. If so you just rerun configure after you've addressed such dependencies.
brant@brant-HP-Compaq-dc5100-MT-PZ583UA ~ $ cd /home/brant/gnucash/gnucash-2.6.14
brant@brant-HP-Compaq-dc5100-MT-PZ583UA ~/gnucash/gnucash-2.6.14 $ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/brant/gnucash/gnucash-2.6.14':
configure: error: C compiler cannot create executables
See `config.log' for more details
"config.log" contains:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GnuCash configure 2.6.14, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = brant-HP-Compaq-dc5100-MT-PZ583UA
uname -m = i686
uname -r = 3.13.0-24-generic
uname -s = Linux
uname -v = #47-Ubuntu SMP Fri May 2 23:31:42 UTC 2014
configure:2768: checking for a BSD-compatible install
configure:2836: result: /usr/bin/install -c
configure:2847: checking whether build environment is sane
configure:2902: result: yes
configure:3053: checking for a thread-safe mkdir -p
configure:3092: result: /bin/mkdir -p
configure:3099: checking for gawk
configure:3115: found /usr/bin/gawk
configure:3126: result: gawk
configure:3137: checking whether make sets $(MAKE)
configure:3159: result: yes
configure:3188: checking whether make supports nested variables
configure:3205: result: yes
configure:3401: checking for gcc
configure:3417: found /usr/bin/gcc
configure:3428: result: gcc
configure:3657: checking for C compiler version
configure:3666: gcc --version >&5
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:3677: $? = 0
configure:3666: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.4-2ubuntu1~14.04.3' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configure:3677: $? = 0
configure:3666: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3677: $? = 4
configure:3666: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3677: $? = 4
configure:3697: checking whether the C compiler works
configure:3719: gcc conftest.c >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3723: $? = 1
configure:3761: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GnuCash"
| #define PACKAGE_TARNAME "gnucash"
| #define PACKAGE_VERSION "2.6.14"
| #define PACKAGE_STRING "GnuCash 2.6.14"
| #define PACKAGE_BUGREPORT "gnucash-devel@gnucash.org"
| #define PACKAGE_URL ""
| #define PACKAGE "gnucash"
| #define VERSION "2.6.14"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3766: error: in `/home/brant/gnucash/gnucash-2.6.14':
configure:3768: error: C compiler cannot create executables
See `config.log' for more details
it is best to just run ./configure then if you see any errors use what it is telling you to fix it, if it is an error 'cannot find...' usually it is because you do not have it installed, install whatever it is it cannot find then run ./configure again then go from there.
dependencies requires the developer files, header files, -> devel or dev packages to be installed so it can compile properly
first time using ./configure make sudo make install huh?
best to just run it then use the errors to help you work out any dependinise you are missing, if no errors, then go to next step, which is - make - if no errors then go to next step, #make install (as root on the last step)
The problem seems obvious: your compiler doesn't work! There are a lot of complaints, but one sums it up:
error: C compiler cannot create executables
I don't know enough to decide whether you've just got an incompatibility or whether the copy of gcc you have has a bug in it. You could see if Ubuntu has an update for your compiler or you could install a precompiled version of gnucash from an unofficial repository as explained here http://wiki.gnucash.org/wiki/Ubuntu
configure:3697: checking whether the C compiler works
configure:3719: gcc conftest.c >&5
/usr/bin/ld: cannot find crt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
/usr/bin/ld: cannot find -lc
/usr/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3723: $? = 1
configure:3761: result: no
missing object files. libc*.*-dev try installing that
I followed the advice found above. After the terminal did its thing, it informed me that I was short a dependency, which I installed, whereupon it told me I was short another, which I installed; this went on some time, but finally I ran "make".
This ended in a long series of messages; here is the last few lines:
make[3]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/accounts/zh_TW'
make[3]: Entering directory `/home/brant/gnucash/gnucash-2.6.14/accounts'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/accounts'
make[2]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/accounts'
Making all in checks
make[2]: Entering directory `/home/brant/gnucash/gnucash-2.6.14/checks'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/checks'
make[1]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14'
All these messages ended in "Nothing to be done for '&'". Is this good news or not? Does it mean "Nothing needs to be done" or "Nothing could be done"?
Before I run "sudo make install" I thought I should ask!
I followed the advice found above. After the terminal did its thing, it informed me that I was short a dependency, which I installed, whereupon it told me I was short another, which I installed; this went on some time, but finally I ran "make".
This ended in a long series of messages; here is the last few lines:
make[3]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/accounts/zh_TW'
make[3]: Entering directory `/home/brant/gnucash/gnucash-2.6.14/accounts'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/accounts'
make[2]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/accounts'
Making all in checks
make[2]: Entering directory `/home/brant/gnucash/gnucash-2.6.14/checks'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14/checks'
make[1]: Leaving directory `/home/brant/gnucash/gnucash-2.6.14'
All these messages ended in "Nothing to be done for '&'". Is this good news or not? Does it mean "Nothing needs to be done" or "Nothing could be done"?
Before I run "sudo make install" I thought I should ask!
yep
good job you got your dependencies using the messages.
next step is sudo make install
if you do not see it in the menu list you can run it off the command line. Just using its name keeps in running within the terminal allowing to to kill it easily but just killing the terminal, or you can run it programName & separating from the terminal.
if it does not show up in the menu list all you need to do is create a desktop file for it. you can use one in /usr/share/applications just replace the information in it with that programs name and location and what not. I think you can do it!!!!! cheers
configure: error: C compiler cannot create executables
Please consider using [code][/code] around blocks of large textual outputs here. Thank you.
Code:
sudo apt-get install build-essential
and then try ./configure again in that same directory.
It's quite a list depending on your system as-is, but ./configure should work after they are installed.
"sudo make install" seemed to deliver.
Unfortunately Gnucash refused to open. . .
After a certain amount of keening, I looked in Software Manager and installed "gnucash-dbg" which seemed to do the trick.
Now comes the boring rote work of setting up a chart of accounts.
Many thanks for all the comments!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.