After reading and trying several of the methods suggested here to get Freebasic working on ubuntu 8.10 64 bits, I found the following one to be the easiest and quickest, and works perfectly fine.
Here are the steps:
1. Download the latest Freebasic available, normal install, not standalone:
http://ufpr.dl.sourceforge.net/sourcefo ... nux.tar.gz
Uncompress it and follow the instructions in the readme.txt to install it. Basically, all you gotta do is open up a terminal in your uncompressed folder and type in:
sudo ./install.sh -i
After installing you should be able to open up a terminal and type in "fbc -version" to see which version of the compiler you got. But if you try to compile any .bas file you'll get missing libraries errors. So here comes the solution.
2. Download and install the "getlibs" deb file, which installs the required 32 bit libraries on your 64 bit system. Download it here (BTW, thanks to Cappy for his wonderful deb file; it really does a great job and simplifies the library installation process to the max):
http://www.boundlesssupremacy.com/Cappy ... bs-all.deb
Just double click on it and it and follow the installation steps.
3. Now, the libraries that were missing in my system for freebasic to compile code properly were installed by opening up a terminal and typing:
sudo getlibs -p libxpm-dev
sudo getlibs -p libxrandr-dev
sudo getlibs -p libxrender-dev
sudo getlibs -p libncurses5-dev
4. To round things up, and to avoid the libncurses error, also install:
sudo apt-get install lib32ncurses5
sudo apt-get install lib32ncurses5-dev
After that, no more library errors when compiling .bas files with freebasic!! :D
hope it helps! This is the safest and easiest way to get it running in ubuntu 8.10 64 bits.
EDITED: I deliberately changed the code lines to quote lines as they were easier to read this way, and they weren't really code. ;)