Special:Badtitle/NS114:Setting up Bennu on 64 bit linux

From Bennu Wiki
Jump to: navigation, search


At the time of the writing, Bennu doesn't yet offer a native 64 bit version for linux (or any other OS, for that matter). The 32 bit version does, however, work flawlessly provided you have the adequate dependencies installed.

This page includes installation instructions for the 64 bit versions of some popular linux distros. In essence, the process for all the distros is the same, it's only the package names and installation methods that change.

Please note that an active internet connection will be needed to be able to install Bennu.

Fedora 11 x86_64 (Leonidas)

Fedora 11 uses the YUM package manager, which is, in turn, based in the RPM package system. We'll be using a graphical interface to YUM called Packagekit.

Launching Packagekit

To launch the package manager, go to "System > Administration > Add/Remove Software" in the menu at the top of your screen (in the default GNOME configuration) as shown in the screenshot below.

You might be asked for the administrative password; enter it.

Error creating thumbnail: File missing

Installing the required packages

In order to get Bennu to run you must install the following native packages and their corresponding 32 bit versions. To make things quicker, you can search for the package names in the search box, as shown in the screenshot below:

  • SDL
  • SDL_mixer
  • libogg
  • zlib
  • libpng
  • libX11
  • libXrandr
  • libXext
  • libXrender
  • libgcc


Error creating thumbnail: File missing

Notice there are two SDL packages with the same name? The one ending in (x86_64) is the native 64 bit version of the package. The one ending in (i586) is the corresponding 32 bit version.

Please note that Packagekit won't let even show you the 32 bit version for a package whose 64 bit (x86_64) counterpart is not installed. It will be faster if you install all the 64 bit versions of the packages on the list above and then proceeding to install the 32 bit versions.

When you tell Packagekit to install the packages for you, it will check for mising dependencies and ask for your permission to install them. Depending on what packages you have already available for your system the number of missing dependencies may change.

System-additional-dependencies.png

Doing all of the above with a simple command line instruction

All of the above should be equivalent to doing -in a terminal where ou're logged in as root- the following:

   yum install SDL SDL.i586 SDL_mixer SDL_mixer.i586 libogg libogg.i586 zlib zlib.i586 libpng libpng.i586 libX11 libX11.i586 libXrandr libXrandr.i586 libXext libXext.i586 libXrender libXrender.i586 libgcc.i586

Actuallly installing Bennu

Now you can go to the Bennu download page and download the linux installation script to a location easy to find. Your home directory is a good choice, if you have no preference.

Now -supposing you saved the download script to your home directory- open a terminal and login as the root user and launch the installation script by doing:

   su (this logs you as the root user, it will ask for root's password, enter it)
   chmod a+x bgd-1.0.0RC7\(r99\)-linux-installer.sh (replace with the version number you downloaded)
   ./bgd-1.0.0RC7\(r99\)-linux-installer.sh (Again, replace with the installer script filename you downloaded)

Ubuntu 9.04 x86_64 (Jaunty)

Ubuntu 9.04 uses the APT package manager, which is, in turn, based in the DEB package system. We'll be using the Synaptic graphical front-end to APT.

Running Synaptic

To run Synaptic, go to "System > Administration > Synaptic Package Manager" as shown below.

You might be asked for your password; enter it.

Error creating thumbnail: File missing

Installing required deps

For Bennu to run, you need to install the ia32-libs package and its dependencies. Search for it in Synaptic.

Error creating thumbnail: File missing

Depending in your system configuration, Synaptic might ask for permission to install additional packages:

Error creating thumbnail: File missing

Doing all of the above with a single command

You can install ia32-libs and all of its dependencies by executing the following command in a terminal:

   sudo apt-get install ia32-libs

You might be asked for your password; enter it. You might also be asked for permission to install additional packages; give the system permission.

Actually installing Bennu

Go to the Bennu download page and download the linux installation script to a location easy to find. Your desktop directory is a good choice, if you have no preference.

Now, open a terminal through "Applications->Accessories->Terminal" and run the following commands:

   cd Desktop (Replace with the directory to where you downloaded the installation script).
   chmod a+x bgd-1.0.0RC7\(r99\)-linux-installer.sh (Replace with the file name you downloaded).
   sudo ./bgd-1.0.0RC7\(r99\)-linux-installer.sh (You might be asked for your password, enter it).

Run Bennu!

Now you should be ready to use Bennu! You can, for example, try the Beginner's tutorial, or your own sample code:

Error creating thumbnail: File missing