installation on UBUNTU 16.04 LTS

Have a question about using Celestia? Check here first for FAQs and helpful advice.
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Topic author
jthibaut
Posts: 4
Joined: 02.05.2017
With us: 7 years 6 months

installation on UBUNTU 16.04 LTS

Post #1by jthibaut » 02.05.2017, 14:02

Dear all,
I just want to know how to install Celestia on UBUNTU 16.04 LTS 64-bits as all I have read on different websites doesn't work.
Thanks in advance,
Thibaut

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #2by John Van Vliet » 14.05.2017, 16:23

the qmake and autotools build i have on my github page builds just fine on linux

there is also a VERY OLD 1.6.0 version in the debian ubuntu repos

Code: Select all

su -
apt search celestia

should show a hit

or build the current version
https://github.com/JohnVV/MyCelestiaBuild

-- still a work in progress

Topic author
jthibaut
Posts: 4
Joined: 02.05.2017
With us: 7 years 6 months

Post #3by jthibaut » 16.05.2017, 13:40

Sorry
I just follow the instructions that I don't understand and it does not work.
I still have error messages.
There is no simple solution ?

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #4by selden » 16.05.2017, 21:59

jthibaut,

If you want anyone to help, you will have to include a full log of your terminal session, showing all of your commands and everything that happened.

John,

What version(s) of the autotools are you using?

Unfortunately, they're constantly being modified in incompatible ways, so that if one does not use exactly the same version, the autoconf process will fail.
Selden

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #5by John Van Vliet » 19.05.2017, 14:02

the default gcc 4.8 for opensuse 42.2

the code on my github page is the working code I use on my system

i think i stated that this is a version that uses SPICE for orbits and cspice 65 heeds to be installed
-- or turn off that option

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #6by selden » 19.05.2017, 14:12

John,

I'd still like to know what version of Autotools you're using. The version of autotools that's available under the version of Ubuntu that you're running is not necessarily the same as the version of autotools that's available under other versions of Linux.

When you run autoconfig, the version number usually is shown at the beginning of each of its status lines.

The version of autoconfig that I'm trying to use is complaining about some of the autoconfig macro definitions. It doesn't get anywhere near being able to try to build Celestia. Unfortunately, I don't recall the details. it's at home and I'm not.

Added after 6 hours 5 minutes:
Here's the terminal log showing the errors I'm seeing.

Code: Select all

$ autoreconf -v -i
autoreconf-2.69: Entering directory `.'
autoreconf-2.69: configure.ac: not using Gettext
autoreconf-2.69: running: aclocal -I macros
acinclude.m4:2882: warning: the serial number must appear before any macro definition
autoreconf-2.69: configure.ac: tracing
autoreconf-2.69: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
autoreconf-2.69: configure.ac: not using Libtool
autoreconf-2.69: running: /usr/bin/autoconf-2.69
autoreconf-2.69: running: /usr/bin/autoheader-2.69
autoreconf-2.69: running: automake --add-missing --copy --no-force
Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/\${ <-- HERE ([^ \t=:+{}]+)}/ at /usr/bin/automake-1.13 line 3935.
src/cel3ds/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/cel3ds/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/cel3ds/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
src/celengine/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/celengine/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celengine/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
src/celephem/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/celephem/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celephem/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
src/celestia/gtk/Makefile.am:32: error: library used but 'RANLIB' is undefined
src/celestia/gtk/Makefile.am:32:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celestia/gtk/Makefile.am:32:   to 'configure.ac' and run 'autoconf' again.
src/celestia/qt/Makefile.am:76: error: library used but 'RANLIB' is undefined
src/celestia/qt/Makefile.am:76:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celestia/qt/Makefile.am:76:   to 'configure.ac' and run 'autoconf' again.
src/celmath/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/celmath/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celmath/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
src/celmodel/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/celmodel/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celmodel/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
src/celtxf/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/celtxf/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celtxf/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
src/celutil/Makefile.am:1: error: library used but 'RANLIB' is undefined
src/celutil/Makefile.am:1:   The usual way to define 'RANLIB' is to add 'AC_PROG_RANLIB'
src/celutil/Makefile.am:1:   to 'configure.ac' and run 'autoconf' again.
autoreconf-2.69: automake failed with exit status: 1
Selden

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #7by John Van Vliet » 28.05.2017, 22:26

this line looks pertinent

Code: Select all

autoreconf-2.69: configure.ac: not using Libtool

is libtool installed ?

this is what i get
autoreconf -v -i
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I macros
acinclude.m4:2882: warning: the serial number must appear before any macro definition
autoreconf: configure.ac: tracing
autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
autoreconf: running: libtoolize --copy
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
acinclude.m4:2882: warning: the serial number must appear before any macro definition
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
autoreconf: Leaving directory `.'

now as to Ubuntu
did you install " build-essential" ?

Code: Select all

apt-get install build-essential

and the libpng ,lua,and things
you NEED the header files those are in the "-dev.deb" packages
mine is still on QT4 so qmake4 and it's tools are needed
-- in the process of porting to 5

Topic author
jthibaut
Posts: 4
Joined: 02.05.2017
With us: 7 years 6 months

Post #8by jthibaut » 31.05.2017, 12:21

When I downloaded celestia-1.6.1
I went into the directory.
I typed:./configure && make && make install
I had an error message telling: No package 'gtkglext-1.0' found
I went to synaptic and installed libgtkglextmm-x11-1.2* files
I retyped:./configure && make && make install
and now I have:

In file included from cmdparser.cpp:30:0:
../celestia/celx.h:26:17: fatal error: lua.h: Aucun fichier ou dossier de ce type
compilation terminated.
Makefile:975 : la recette pour la cible « libcelengine_a-cmdparser.o » a échouée
make[3]: *** [libcelengine_a-cmdparser.o] Erreur 1
make[3] : on quitte le répertoire « /home/jacquin/Téléchargements/celestia-1.6.1/src/celengine »
Makefile:536 : la recette pour la cible « all-recursive » a échouée
make[2]: *** [all-recursive] Erreur 1
make[2] : on quitte le répertoire « /home/jacquin/Téléchargements/celestia-1.6.1/src »
Makefile:599 : la recette pour la cible « all-recursive » a échouée
make[1]: *** [all-recursive] Erreur 1
make[1] : on quitte le répertoire « /home/jacquin/Téléchargements/celestia-1.6.1 »
Makefile:474 : la recette pour la cible « all » a échouée
make: *** [all] Erreur 2

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 3 months

Post #9by John Van Vliet » 03.06.2017, 01:23

When I downloaded celestia-1.6.1
I went into the directory.
I typed:./configure && make && make install
I had an error message telling: No package 'gtkglext-1.0' found
I went to synaptic and installed libgtkglextmm-x11-1.2* files
I retyped:./configure && make && make install
and now I have:

In file included from cmdparser.cpp:30:0:
../celestia/celx.h:26:17: fatal error: lua.h: Aucun fichier ou dossier de ce type
compilation terminated.

i am guessing you never read the output of :

Code: Select all

./configure --help

nor any documentation on building software
as in the basics form " linux 101"

you did not install the lua 5.1 source / hearers ( lua5.1-dev)


have a read through
http://www.tldp.org/

and for Debian based distros
http://www.tldp.org/guides.html#debian

Topic author
jthibaut
Posts: 4
Joined: 02.05.2017
With us: 7 years 6 months

Post #10by jthibaut » 03.06.2017, 15:53

Thanks it fixed it but I have new error messages.
So I resign. No time to waste.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Post #11by selden » 14.06.2017, 10:23

FWIW, I finally managed to use John's autoreconf to build Celestia to run under Scientific Linux v7, so in principle it should work for RHEL 7 and Centos 7, too. SL/RHEL/Centos v6 are too old. I dunno about Fedora compatibility. The major stumbling block under v7 was making sure all of the devel rpms were installed.

I could make binaries available if anyone is interested.

Or a zip of everything, for that matter.
Selden


Return to “Help Central”