Stellarium on Scientific Linux 6.1

I have updated my recent article on how to configure Scientific Linux 6.1 to be your desktop operating system in one crucial respect: the original instructions on how to install Stellarium (the world’s best astronomy program bar none) didn’t work properly.

The original instructions were to add the repoforge repository to the list of available respositories and then simply do a yum install stellarium.

This technique is very convenient and appears to work -but, unfortunately, it installs version 10.2 of Stellarium …which has a known bug whereby its display is garbled when using recent NVidia graphics drivers (I have no idea if ATI or Intel drivers are similarly a problem, but from my reading it appears they might be). You end up with this nonsense when you run the program:

Note the garbled text menus, the complete lack of stars in the main part of the window and the ‘fuzzy’ display of the various toolbars. The solution is, I’m afraid, to uninstall the version of Stellarium that comes from the repositories and, instead, to download source code and compile it. Normally, I’d run a mile from self-compilation, but in this case it is (a) necessary and (b) simple. It also, not incidentally, (c) results in a fully working version of Stellarium. The details are as follows (do all the following as root):

yum remove stellarium

(which cleans out any existing Stellarium installation). Then: Download the source code from http://sourceforge.net/projects/stellarium/files/Stellarium-sources/0.11.1/stellarium-0.11.1.tar.gz/download, saving it to (say) your Desktop directory. Next, right-click the downloaded tarball and select the Extract Here menu option. That will create a directory called something like /home/hjr/Desktop/stellarium-11.1. Change to that directory and create a couple of new sub-directories, as follows:

cd stellarium-11.1
mkdir -p builds/unix
cd builds/unix

Again as root, and at a command prompt, type the following commands:

yum install gcc gcc-c++ libstdc++ cmake cmake-gui gettext gettext-devel mesa-libGL-devel mesa-libGLU-devel zlib-devel libpng-devel freetype-devel boost-devel libjpeg-devel qt-devel doxygen graphviz subversion make

That gets the software dependencies installed. Then you can (again as root) issue three simple commands:

cmake ../..
make
make install

Note that the cmake command is issued whilst you’re sitting in your stellarium-11.1/builds/unix directory. Hence the use of ‘..’ to reference other directories, relative to that.

Now you have the latest version of Stellarium installed and can (as yourself) simply type the command stellarium to launch the thing. This time, it should all work as expected:

You’ll probably want to create a new launcher for the program on your top panel because the self-compile route doesn’t create nice menu options to launch the program. If you’d like to edit the Applications menu and add an item that points to your freshly-installed application, you’ll need to install alacarte (easily done with a simple yum install alacarte). In either case, you’ll end up configuring an application launcher to simply run the command stellarium.

Print Friendly

5 thoughts on “Stellarium on Scientific Linux 6.1

  1. AstroBoy

    In which directory should the (relative pathname) command
    cmake ../..
    be typed?

    Thanks. Also, think I’ll be switching to Scientific Linux from CentOS …. !

    Reply
    1. dizwell Post author

      Excellent question …which made me realise I’d missed out documenting a couple of vital steps! So I’ve corrected the main piece and I hope the answer is now clear: you unzip the tarball to, say, stellarium-11.1. Within that, you have to create a builds/unix sub-directory. And it’s in *that* sub-directory that you issue the cmake, make and make install commands. Apologies for the faulty proof-reading on my part!

      Reply
  2. ahmad

    that’s great.
    Now I can enjoy this app. btw why is my stellarium movement is quite lack ? because my GPU or else ?
    my spec:
    AMD X4
    2GB memory
    250 HD
    for all your effort. thanx

    Reply
    1. dizwell Post author

      The frames-per-second you get in Stellarium is very closely related to your graphics drivers. For example, when I install Stellarium onto a fresh Scientific Linux desktop PC, I maybe get 2 or 3 frames per second. As soon as I install the correct NVidia drivers, that shoots up to over 70 or 80fps. So yes, it’s GPU-dependent, but it’s probably your drivers more than anything else. If you’re relying on the open source Vesa or Nouveau drivers that ship with your distro by default, you’ll get terrible graphics performance. Install the proprietary NVidia or ATI drivers, you’ll get fine performance. (Not quite sure what you do if you’ve got Intel graphics, though!)

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>