Celestia In Linux Need Help

General discussion about Celestia that doesn't fit into other forums.
Guest

Celestia In Linux Need Help

Post #1by Guest » 01.09.2002, 08:21

I need help in installing an lunching Celestia in Linux!

I would like, if you don't mind, as many information as possible (I'm new to Linux).
I tried using the files in archive but didn’t maid it! :cry: :x

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Celestia In Linux Need Help

Post #2by Christophe » 01.09.2002, 08:39

Anonymous wrote:I need help in installing an lunching Celestia in Linux!

I would like, if you don't mind, as many information as possible (I'm new to Linux).
I tried using the files in archive but didn’t maid it! :cry: :x


What Linux distribution are you using?

The normal installation process is:
tar xvzf celestia-1.2.4.tar.gz
cd celestia-1.2.4/
./configure --help (to see a list of available options)
./configure --with-gnome (if you have the gnome libs installed)
make
make install (as root)

You may need to install some additional packages to get the configure part to work. If you've made a 'desktop' installation of your distribution you will probably need to install some 'devel' packages (they provide header files for libraries).

Let me know how it goes.

--
Christophe

Guest

Celestia on Linux

Post #3by Guest » 02.09.2002, 08:30

Somewhere in these forums there is also a patch that you may need to compile with Gnome.

I must say that that will be a bit of a bitch for beginners (and some people who claim to be "advanced" :twisted: ).

Anyone know of any RPMs around for ppl like this?

xyz
Posts: 43
Joined: 25.05.2002
With us: 22 years 4 months
Location: Montreal, Canada, Earth

Post #4by xyz » 02.09.2002, 16:05

I'm using Linux Mandrake 8.1
Interesting Projects:
Celestia an open source space simulator.
EventGhost an open source PC remote control.
TA Spring
OpenTTD

xyz
Posts: 43
Joined: 25.05.2002
With us: 22 years 4 months
Location: Montreal, Canada, Earth

Post #5by xyz » 02.09.2002, 16:33

Using ./configure --help -> file.text I've got this:

Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
--cache-file=FILE cache test results in FILE
--help print this message
--no-create do not create output files
--quiet, --silent do not print `checking...' messages
--version print the version of autoconf that created configure
Directory and file names:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[same as prefix]
--bindir=DIR user executables in DIR [EPREFIX/bin]
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
--datadir=DIR read-only architecture-independent data in DIR
[PREFIX/share]
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data in DIR
[PREFIX/com]
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
--includedir=DIR C header files in DIR [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
--infodir=DIR info documentation in DIR [PREFIX/info]
--mandir=DIR man documentation in DIR [PREFIX/man]
--srcdir=DIR find the sources in DIR [configure dir or ..]
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM
run sed PROGRAM on installed program names
Host type:
--build=BUILD configure for building on BUILD [BUILD=HOST]
--host=HOST configure for HOST [guessed]
--target=TARGET configure for TARGET [TARGET=HOST]
Features and packages:
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--x-includes=DIR X include files are in DIR
--x-libraries=DIR X library files are in DIR
--enable and --with options recognized:
--enable-debug Produce an executable with debugging symbols
--enable-pedantic Enable -pedantic (and -ansi for C) when compiling
--enable-profile Produce a profiled executable[default=no]
--with-gl-libs=DIR Specify OpenGL library location
--with-gl-inc=DIR Specify OpenGL header file location
--with-glut-libs=DIR Specify GLUT library location
--with-glut-inc=DIR Specify GLUT header file location
--with-gtk Use Gtk for an enhanced GUI
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
--disable-gtktest Do not try to compile and run a test GTK program
--with-gnome-includes Specify location of GNOME headers
--with-gnome-libs Specify location of GNOME libs
--with-gnome Specify prefix for GNOME files
--enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings.
--enable-iso-c Try to warn if code is not ISO C
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
--disable-gtktest Do not try to compile and run a test GTK program
--with-x use the X Window System
--enable-hipparcos-dir=DIR Specify location of HIPPARCOS/TYCHO stardata
Interesting Projects:
Celestia an open source space simulator.
EventGhost an open source PC remote control.
TA Spring
OpenTTD

TK274

Post #6by TK274 » 02.09.2002, 17:39

I'm also in trouble, look @ my shell while i do ./configure

Image

thanks any hel will be appreciated..seems that my compile doesn't work I run Mandrake 8.2

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Post #7by Christophe » 02.09.2002, 19:56

xyz wrote:Using ./configure --help -> file.text I've got this:
[...]


OK, that looks fine, but what happens when you run
./configure --with-gnome
(or you can try ./configure --with-gtk if you don't have gnome)

--
Christophe

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Post #8by Christophe » 02.09.2002, 20:25

TK274 wrote:I'm also in trouble, look @ my shell while i do ./configure

thanks any hel will be appreciated..seems that my compile doesn't work I run Mandrake 8.2


That doesn't look good indeed... I've never seen that one before.
It looks like gcc was not installed correctly on your system, some important library or binary is missing. It would help if you could tell me the exact error from your config.log file (look at the very end of it).

You can also try to do:

Code: Select all

unset CFLAGS
unset LDFLAGS
unset LD_LIBRARY_PATH


And check that you have the following packages installed:
gcc-2.96-0.76mdk
binutils-2.11.92.0.12-6mdk

Code: Select all

> rpm -q gcc binutils
gcc-2.96-0.76mdk
binutils-2.11.92.0.12-6mdk


You can also run the following to 'verify' that they are correctly installed.

Code: Select all

> rpm -V gcc binutils


--
Christophe

TK274

Post #9by TK274 » 02.09.2002, 21:09

Many thanks, I'll try soon!

Guest

TK274

Post #10by Guest » 02.09.2002, 21:22

I've done all that you suggested me..
I've that packages

at the end i've done rpm -V gcc biunutils
and:

Image

help me obi wan kenobi, you're my only hope...

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

TK274

Post #11by Christophe » 02.09.2002, 21:57

Anonymous wrote:I've done all that you suggested me..
I've that packages

at the end i've done rpm -V gcc biunutils

help me obi wan kenobi, you're my only hope...

Well, there you go, it seems that something went wrong when you installed gcc, the package gcc-cpp is needed but was not installed.

You need to do (as root):

Code: Select all

> urpmi gcc-cpp


Or use rpmdrake to install it.

But I'm not sure that will solve your problem. Have you checked the exact error in config.log?

--
Christophe

TK274

Post #12by TK274 » 03.09.2002, 10:18

OK I've done it and after the code the machine printed:

installing /var/cache/urpmi/rpms/gcc-cpp-2.96-0.76mdk.i586.rpm
Preparing... #######################################
gcc-cpp #######################################

then I've done again rpm -V gcc binuutils
and the shell didn't print any error message.

You think I've fixed tha thing?

xyz
Posts: 43
Joined: 25.05.2002
With us: 22 years 4 months
Location: Montreal, Canada, Earth

Post #13by xyz » 03.09.2002, 17:33

O.K. here's what i got:

[root@xyz celestia-1.2.4]# ./configure --with-gnome
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether to include debugging code... no
checking whether to be pedantic... no
checking whether to do profiling... no
checking whether to disable GTK.... no
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config. If you are running Linux or some-
*** thing similar, you may need to install the gtk-devel package
*** (or some other package with a similar name) in order to get
*** a working gtk-config. If in fact you don't have or want GTK,
*** disregard this message. Note that configuring with
*** '--without-gtk' will turn off this check and message.
configure: warning: Disabled GTK GUI because of missing necessary packages
checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for GL/gl.h... yes
checking for glNewList in -lGL... yes
checking for GL/glu.h... no
configure: error: No glu.h found. See INSTALL file for details on how to correct this problem.

and

[root@xyz celestia-1.2.4]# ./configure --with-gtk
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for c++... c++
checking whether the C++ compiler (c++ ) works... yes
checking whether the C++ compiler (c++ ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking how to run the C++ preprocessor... c++ -E
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether to include debugging code... no
checking whether to be pedantic... no
checking whether to do profiling... no
checking whether to disable GTK.... no
checking for gtk-config... no
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config. If you are running Linux or some-
*** thing similar, you may need to install the gtk-devel package
*** (or some other package with a similar name) in order to get
*** a working gtk-config. If in fact you don't have or want GTK,
*** disregard this message. Note that configuring with
*** '--without-gtk' will turn off this check and message.
configure: error: Unable to find GTK

as for the make and make install nothing
Interesting Projects:
Celestia an open source space simulator.
EventGhost an open source PC remote control.
TA Spring
OpenTTD

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Post #14by Christophe » 03.09.2002, 19:32

TK274 wrote:OK I've done it and after the code the machine printed:

installing /var/cache/urpmi/rpms/gcc-cpp-2.96-0.76mdk.i586.rpm
Preparing... #######################################
gcc-cpp #######################################

then I've done again rpm -V gcc binuutils
and the shell didn't print any error message.

You think I've fixed tha thing?


At least now you have a correct gcc installation, so it should work. Just give it a try...

--
Christophe

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Post #15by Christophe » 03.09.2002, 19:53

xyz wrote:O.K. here's what i got:

[root@xyz celestia-1.2.4]# ./configure --with-gnome
[...]
checking for GTK - version >= 1.2.0... no
*** The gtk-config script installed by GTK could not be found
*** If GTK was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GTK_CONFIG environment variable to the
*** full path to gtk-config. If you are running Linux or some-
*** thing similar, you may need to install the gtk-devel package
*** (or some other package with a similar name) in order to get
*** a working gtk-config. If in fact you don't have or want GTK,
*** disregard this message. Note that configuring with
*** '--without-gtk' will turn off this check and message.
configure: warning: Disabled GTK GUI because of missing necessary packages

[...]
checking for GL/glu.h... no
configure: error: No glu.h found. See INSTALL file for details on how to correct this problem.


The fist error means that you don't have gtk-devel installed.
Try:

Code: Select all

> urpmi libgtk+1.2-devel
> urpmi libgtkglarea5-devel


I'm not too sure about the version numbers as I don't have 8.1 installed.
Otherwise you can run rpmdrake, do a search on gtk+ and install the relevant packages (if you don't know which just install everything).

The second error means that you don't have the GLU header file installed. That one is provided by Mesa:

Code: Select all

> urpmi libMesaGLU1-devel
> urpmi libMesaglut3-devel


Once again I'm not sure about the version numbers but you can also do it from rpmdrake (search for Mesa).

Since you don't have the gtk+-devel stuff installed you don't have gnome-devel either.

Code: Select all

> urpmi libglib1.2-devel
> urpmi libgnome32-devel


It can't hurt to install a package (except if you're short on disk space), so if you don't know whether a package is needed or not just install it.


--
Christophe

TK274

Post #16by TK274 » 04.09.2002, 15:10

Oh my,
seems that this install is still a pain...
after all that we discussed I found that some GTK libs were missing...after this new fix, I've done once again ./configure and.....look this:
Image

Guest

Post #17by Guest » 06.09.2002, 05:41

Seems to me that roms for Celestia would be great for PPL like this.
Peronally I run Slackware, and manage to compile most stuff myself, but that has taken a few years ;-)

If anyone can make a nice RPM for ppl like this with good dependency checking, that would help a lot ;-)

I don't do RPM myself so I would be of little use there ;-(

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Post #18by Christophe » 06.09.2002, 11:28

Anonymous wrote:Seems to me that roms for Celestia would be great for PPL like this.
Peronally I run Slackware, and manage to compile most stuff myself, but that has taken a few years ;-)

If anyone can make a nice RPM for ppl like this with good dependency checking, that would help a lot ;-)

I don't do RPM myself so I would be of little use there ;-(


Hopefully I'll be able to provide an RPM for the 1.2.5 KDE version, but that's for Mandrake 8.2 only. It may also be possible for me to make a distribution-agnostic rpm for the no-GUI version...

Now regarding TK274's configure problem, you should be able to build with --with-gtk. For --with-gnome to work you need to install the libgnome-devel package (libgnome32-devel on my system).

--
Christophe

Christophe
Developer
Posts: 944
Joined: 18.07.2002
With us: 22 years 2 months
Location: Lyon (France)

Post #19by Christophe » 06.09.2002, 12:08

I've made an RPM for Mandrake 8.2 for Celestia 1.2.4.

You can get it here.

This is hosted on my home machine (ADSL connection at 128 kbps upload), so be patient. The file is 10 MB.

--
Christophe

tkappa274

Post #20by tkappa274 » 06.09.2002, 14:30

OH my!!!!!

THANKS SO MUCH FOR THE mdkRPM!!! I'll download it monday (as soon as I'll be home)
thanks sooooooo much!


Return to “Celestia Users”