ga5941
Posts: 20
Joined: Thu Feb 12, 2015 1:35 pm

Freebasic install

Sun Feb 22, 2015 7:45 pm

I would like to program my RPi in BASIC which I understand will accept lines in assembler code.
I downloaded to my PC from http://www.freebasic.net/forum/viewtopi ... =5&t=21433
this file for Raspberry Pi:

fbc-0.91.0-pi-raspbian.tar.gz

How to install this on my Raspberry Pi 2 which has NOOBSv1.4.0 (Offline & network install)?

Do I just copy this file to my SD card? anywhere?

Then how is the program started?

Sorry all this is not obvious to a beginner.

drgeoff
Posts: 11508
Joined: Wed Jan 25, 2012 6:39 pm

Re: Freebasic install

Sun Feb 22, 2015 9:47 pm

The page you link to has the installation instructions!

Use the ARM7 debian version on a RPi2. (After installing Raspbian.)
Quis custodiet ipsos custodes?

ga5941
Posts: 20
Joined: Thu Feb 12, 2015 1:35 pm

Re: Freebasic install

Mon Feb 23, 2015 8:06 pm

Hi drgeoff!

I downloaded on my Rpi2 the ARM7 debian version which is listed for Beaglebone Black (BBB):
fbc-0.91.0-bbb-debian.tar.gz

I can't find which directory it landed in.

To first install Raspbian I entered;
sudo apt-get update
sudo apt-cache search Raspbian

Search results included:
linux-headers-rpi2-rpfv
linux-image-rpi2-rpfv
raspbian-archive-keyring

I installed these with:
sudo apt-get install linux-headers-rpi2-rpfv
sudo apt-get install linux-image-rpi2-rpfv
sudo apt-get install raspbian-archive-keyring

The first 2 seemed to install OK but the last one produced the messages:
Reading package lists...Done
Building dependency tree
Reading state information...Done
raspbian-archive-keyring is already the newest version
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Then on to install freebasic with:

cd $home
tar xfj fbc-0.91.0-bbb-debian.tar.gz

Which returns messages:
tar (child): fbc-0.91.0-bbb-debian.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

There didn't seem any point in continuing with remaining items, so freebasic is still not installed.

I'd appreciate more help, please.
ga5941

DirkS
Posts: 10583
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Freebasic install

Mon Feb 23, 2015 9:50 pm

Solution seems t obe to find the file you downloaded...
If you can't find it just download it again...

ga5941
Posts: 20
Joined: Thu Feb 12, 2015 1:35 pm

Re: Freebasic install

Mon Feb 23, 2015 10:45 pm

Hi!

Downloaded the file again and now its in ~/Downloads
so in this directory I entered:
sudo ./install.sh i /usr
which returned:
FreeBASIC compiler successfully installed in /usr

Sounds like success but not quite!

In desktop LXTerminal mode, the window opens in pi@raspberrypi /usr $ and when I enter "fbc" I get
the useage form and a long list of options. Tried all kinds of input combinations without luck. Am
closer to my objective but still can't get fbc to open in an editor mode so I can input some code.
ga5941

User avatar
xoopha
Posts: 106
Joined: Mon Feb 09, 2015 9:52 pm

Re: Freebasic install

Mon Feb 23, 2015 11:00 pm

fbc does not seem to be an IDE, just a compiler, so you'll have to use an external text editor to code.

Return to “Beginners”