Ubuntu 12.04 precise Pangolin

Linux specific questions.
Post Reply
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Ubuntu 12.04 precise Pangolin

Post by bonny »

Hello...

Does somebody use Freebasic on Ubuntu 12.04?
I can't install it.
As this is 64 bit system is that possible at all?
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Ubuntu 12.04 precise Pangolin

Post by dkl »

FB is 32bit only at the moment, but it can still be used on 64bit systems. Installing the following packages should allow fbc to compile FB programs:
gcc-multilib
g++-multilib
libncurses5-dev:i386 (or lib32ncurses5-dev)
libxrandr-dev:i386
libxpm-dev:i386
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Re: Ubuntu 12.04 precise Pangolin

Post by bonny »

dkl wrote:FB is 32bit only at the moment, but it can still be used on 64bit systems. Installing the following packages should allow fbc to compile FB programs:
gcc-multilib
g++-multilib
libncurses5-dev:i386 (or lib32ncurses5-dev)
libxrandr-dev:i386
libxpm-dev:i386
I can't find
g++-multilib

some hints?
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Ubuntu 12.04 precise Pangolin

Post by dkl »

It's perhaps not listed in the Ubuntu Software Center, but I can see it here:
http://packages.ubuntu.com/precise/g++-multilib

It should be available via:
sudo apt-get install g++-multilib
or via the other package installation programs (synaptic, aptitude).
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Re: Ubuntu 12.04 precise Pangolin

Post by bonny »

I install other via package manager, not from command line.
Ok I install that. But still can't install FB.
I start downloaded run package and fail

There was a problem opening the file /home/slavko/Downloads/FreeBASIC-0.23.0-linux.run.
The file you opened has some invalid characters. If you continue editing this file you could corrupt this document.You can also choose another character encoding and try again.

How I can install the FB onto Ubuntu 12.04?
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Ubuntu 12.04 precise Pangolin

Post by dkl »

The .run file is a script that needs to be executed, not edited, it should work something like this:
sudo sh ./FreeBASIC-0.23.0-linux.run install
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Re: Ubuntu 12.04 precise Pangolin

Post by bonny »

now fbc seems executable... but doesn't work..

That's error is returned.

slavko@ePodstresnik:~/xx$ fbc BasTest.bas
ld: cannot find -lncurses
slavko@ePodstresnik:~/xx$
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Ubuntu 12.04 precise Pangolin

Post by dkl »

looks like 32bit libncurses development files are not installed. Does installing libncurses5-dev:i386 or lib32ncurses5-dev help?
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Re: Ubuntu 12.04 precise Pangolin

Post by bonny »

no.. It's even worse..
It's deinstal gcc! (I hit enter in wrong point)

but after
sudo apt-get install build-essential
they seems to work.
need little more testing..
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Re: Ubuntu 12.04 precise Pangolin

Post by bonny »

Now I had little more time and make few tests.
Console programs rum ok.

But when I try to use screen statment then I got compile error.
ld: cannot find -lXrendr
ld: cannot find -lXext
ld: cannot find -lXrandr

Now the problem come as library is installed but seems that i386 and default can't coexists.
I think if we wan't to use FB in Ubuntu someone should update libraryes and other thing to be able to compile.

So for me at that time the FB is ussable only in windows but fail on 64 bit ubuntu.
sadly I can't find simple compiler to be able to compile same source to linux and windows.
In era of ubuntu 6.06 all that works great.
dkl
Site Admin
Posts: 3235
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Ubuntu 12.04 precise Pangolin

Post by dkl »

I just set up a fresh Ubuntu 12.04 amd64, and I got FB programs to compile after installing these packages:
gcc-multilib
g++-multilib
libx11-dev:i386
libxext-dev:i386
libxrender-dev:i386
libxrandr-dev:i386
libxpm-dev:i386
libgl1-mesa-dev:i386
libglu1-mesa-dev:i386
lib32ncurses5-dev
Note that I used lib32ncurses5-dev and not libncurses5-dev:i386, because installing the latter, for some reason, wanted to remove gcc, g++, gcc-multilib, g++-multilib, etc. I guess that's the problem you encountered aswell. I don't know why that problem exists, perhaps it's a Debian/Ubuntu packaging bug...
bonny
Posts: 75
Joined: Nov 22, 2007 10:23

Re: Ubuntu 12.04 precise Pangolin

Post by bonny »

Now compile there too..

Thanks.


..now just waiting for FB 64 bit :D
Post Reply