Linux Mint setup for a beginner-Help please.
-
- Posts: 18
- Joined: Apr 16, 2022 4:38
Linux Mint setup for a beginner-Help please.
I've just started working with FreeBASIC on Windows using WinFBE64. I'd like to experiment with setting up a development environment in Linux Mint 22. Where can I find a simple guide to what I need to download and where from? Thanks.
-
- Posts: 255
- Joined: Jul 15, 2021 7:23
- Location: Greece
- Contact:
Re: Linux Mint setup for a beginner-Help please.
take a look here
https://sourceforge.net/projects/fbc/fi ... IC-1.10.1/
also you will need a good ide... i suggest poseidon ... see here https://bitbucket.org/KuanHsu/poseidonfb/downloads/ for AppImage, download and make it +x
https://sourceforge.net/projects/fbc/fi ... IC-1.10.1/
also you will need a good ide... i suggest poseidon ... see here https://bitbucket.org/KuanHsu/poseidonfb/downloads/ for AppImage, download and make it +x
Re: Linux Mint setup for a beginner-Help please.
Did you try the linux instructions in the readme file shipped with freebasic?
See: https://github.com/freebasic/fbc/blob/master/readme.txt (or below)
See: https://github.com/freebasic/fbc/blob/master/readme.txt (or below)
BTW, the Wiki is not very helpful here. It links to a forum post from 2006.Linux (if FreeBASIC is not available through your package manager):
Download and extract the latest FreeBASIC-x.xx.x-linux.tar.gz. Open a
terminal and cd into the extracted FreeBASIC-x.xx.x-linux directory, and
run "sudo ./install.sh -i" to copy the FB setup into /usr/local.
To compile FB programs, please install the following packages (names may
vary depending on your Linux distribution):
Debian/Ubuntu:
gcc libncurses5-dev libffi-dev libgl1-mesa-dev
libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev
libtinfo5 libgpm-dev
Fedora:
gcc ncurses-devel ncurses-compat-libs libffi-devel mesa-libGL-devel
libX11-devel libXext-devel libXrender-devel libXrandr-devel
libXpm-devel
If you want to use the 32bit version of FB on a 64bit system, it is
necessary to have the gcc 32bit multilib support and 32bit versions
of the libraries installed.
Debian/Ubuntu:
gcc-multilib lib32ncurses5-dev libx11-dev:i386 libxext-dev:i386
libxrender-dev:i386 libxrandr-dev:i386 libxpm-dev:i386 libtinfo5:i386
Now you can use fbc to compile FB programs (*.bas files) into executables.
For example:
$ cd FreeBASIC-x.xx.x-linux/examples
$ fbc hello.bas
This should have created the hello program. You can run it by entering:
$ ./hello
Optionally, you can install a text editor or IDE which will invoke fbc for
your, for example:
Geany: https://geany.org (sudo apt-get install geany)