There have been a few requests for information on what to do to get a Linux program up and running on, well, Linux. Hence the reason for this post.
To start withCompile your GLBasic program for Linux, and make sure it is available for running or copying elsewhere.
In LinuxAfter that, you need to boot up Linux, and get it running. If you find that double-clicking on the program opens a dialog window asking for a program to run the application, this means that the file isn't being treated as an executable. To do so, right-click over the correct .linux file, and left-click on Properties. Go into the Permissions tab and select Permissions.
Make sure Owners, Group and Other are set to Read And Write Access, and more importantly, make sure the 'Is Executable' button is active.
Okay that, and try again.
But It Still Doesn't WorkThen it would appear that the packages needed by the program aren't installed. The Linux GLBasic executable needs the following (or equivalent) installed in order to run - and are usually done via a Packet Manager.
You need to install the following :
- libSDL_mixer-1.2
- libstdc++.so.5
And that should get everything up and running.
Terminal based installation would be something like :
sudo apt-get install libsdl-mixer1.2-dev libstdc++5
If you can't find SDL_Mixer in the Package Manager list, you'll need to install it from the SDL website (
http://www.libsdl.org) and
http://www.libsdl.org/projects/SDL_mixer/Update :It appears that since version 6.197, extra libraries are needed. Thanks to Gregory in sorting this out. These files cant seem to be installed using the normal packaging system, and thus need to be installed slightly differently :
- Install getlibs from http://ubuntuforums.org/showthread.php?t=474790
- Open Terminal and type : getlibs -l libmikmod.so.2 libvorbisfile.so.3 libsmpeg-0.4.so.0 libvorbis.so.0
- Enter your admin password and press Y to install all dependancies
I had found that running a GLBasic linux executable in Ubuntu 8.04 (with VMWare) had running problems. These all seem to have gone in 8.10 (just wish it would shut down properly

). Speed is pretty good (at least on my iMac), although of course, not as fast as a proper installation.
I have found that mouse wheels in a VM environment aren't detected.
It is always best to get the computers graphics drivers installed of course, for optimum speed.
You'll have no problem running in Ubuntu, Kubuntu or Xubuntu. Other distros should be fine too.