Revision history for CompilerInstalling
Revision [23723]
Last edited on 2019-10-19 00:26:56 by RoBert [Replaced UTF-8 encoded punctuation from Compiling under Ubuntu 10.04 LTS, 64-bit: section]Additions:
Install all of the Libraries listed above; some of the entries ending in ":i386" may throw "not found" errors.
To verify that you're using a 64-bit build, use: "uname -a" or "uname -m" (it'll show x86_64 for 64-bit, i386 for 32-bit).
Then, when running FBC, an error may appear: "error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory".
"libtinfo.so.5" is available as a separate library in Ubuntu 11.10+, but it is built into "ncurses.so.5" in 10.04 LTS. So, we need to re-direct the libtinfo references into the ncurses.so.5 libraries:
1) Change to the folder containing the FBC executable (perhaps "/usr/local/bin/").
1) Issue: ldd fbc - it will list the various library folder(s) being searched (probably "/lib32" in most cases).
1) Issue: sudo ln -s /lib32/libncurses.so.5 /lib32/libtinfo.so.5 (assuming "/lib32" was emitted in the previous step).
1) Issue: sudo ln -s /lib32/libtinfo.so.5 /lib32/libtinfo.so (assuming "/lib32"...)
To verify that you're using a 64-bit build, use: "uname -a" or "uname -m" (it'll show x86_64 for 64-bit, i386 for 32-bit).
Then, when running FBC, an error may appear: "error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory".
"libtinfo.so.5" is available as a separate library in Ubuntu 11.10+, but it is built into "ncurses.so.5" in 10.04 LTS. So, we need to re-direct the libtinfo references into the ncurses.so.5 libraries:
1) Change to the folder containing the FBC executable (perhaps "/usr/local/bin/").
1) Issue: ldd fbc - it will list the various library folder(s) being searched (probably "/lib32" in most cases).
1) Issue: sudo ln -s /lib32/libncurses.so.5 /lib32/libtinfo.so.5 (assuming "/lib32" was emitted in the previous step).
1) Issue: sudo ln -s /lib32/libtinfo.so.5 /lib32/libtinfo.so (assuming "/lib32"...)
Deletions:
To verify that you’re using a 64-bit build, use: “uname -a” or “uname -m” (it’ll show x86_64 for 64-bit, i386 for 32-bit).
Then, when running FBC, an error may appear: “error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory”.
“libtinfo.so.5” is available as a separate library in Ubuntu 11.10+, but it is built into “ncurses.so.5” in 10.04 LTS. So, we need to re-direct the libtinfo references into the ncurses.so.5 libraries:
1) Change to the folder containing the FBC executable (perhaps “/usr/local/bin/”).
1) Issue: ldd fbc - it will list the various library folder(s) being searched (probably “/lib32” in most cases).
1) Issue: sudo ln -s /lib32/libncurses.so.5 /lib32/libtinfo.so.5 (assuming “/lib32” was emitted in the previous step).
1) Issue: sudo ln -s /lib32/libtinfo.so.5 /lib32/libtinfo.so (assuming “/lib32”...)
Additions:
- libtinfo development files (if not already installed by libncurses)
- libtinfo5 (if not already installed by libncurses5)
- libncurses5
- libtinfo5 (if not already installed by libncurses5)
- libncurses5
Additions:
- libffi-devel-32bit
Deletions:
- libffi46-devel-32bit
Additions:
- [[https://www.freebasic.net/forum/viewtopic.php?f=8&t=25215|WinFBE Editor and Visual Designer]]
Revision [22302]
Edited on 2018-04-29 23:51:31 by fxm [Added recommendations regarding the installation procedure]No Differences
Revision [22301]
Edited on 2018-04-29 11:10:25 by fxm [Added recommendations regarding the installation procedure]Additions:
Revision [22300]
Edited on 2018-04-29 11:02:25 by fxm [Added recommendations regarding the installation procedure]Additions:
//Note: If the user specifies directory names during the installation of the different components, it is recommended in the chosen names to use only alphanumeric ASCII characters without accent and preferably not any space, otherwise some paths might not work as expected.//
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win32.zip]] package, or the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win32.exe]] installer (not recommended for Windows 7 and later versions).
1) Depending on the chosen method:
- Zip package: Extract it where you like, for example at ##""...\FreeBASIC""## (no further installation required to use fbc).
- Installer (not recommended for Windows 7 and later versions): Run it and click through it. The installer will install ""FreeBASIC"" at ##""C:\%ProgramFiles%\FreeBASIC""##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the website will be installed as well.
To uninstall ""FreeBASIC"":
- If previously installed using zip package: simply deleted the directory where you extracted it.
- If previously installed using installer: remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx|Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program|Uninstall or change a program]]).
{{fbdoc item="section" value="Windows 64bit"}}
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win64.zip]] package.
1) Extract it where you like, for example at ##""...\FreeBASIC""## (no further installation required to use fbc).
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win32.zip]] package, or the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win32.exe]] installer (not recommended for Windows 7 and later versions).
1) Depending on the chosen method:
- Zip package: Extract it where you like, for example at ##""...\FreeBASIC""## (no further installation required to use fbc).
- Installer (not recommended for Windows 7 and later versions): Run it and click through it. The installer will install ""FreeBASIC"" at ##""C:\%ProgramFiles%\FreeBASIC""##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the website will be installed as well.
To uninstall ""FreeBASIC"":
- If previously installed using zip package: simply deleted the directory where you extracted it.
- If previously installed using installer: remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx|Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program|Uninstall or change a program]]).
{{fbdoc item="section" value="Windows 64bit"}}
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win64.zip]] package.
1) Extract it where you like, for example at ##""...\FreeBASIC""## (no further installation required to use fbc).
Deletions:
1) Run it and click through it. The installer will install ""FreeBASIC"" at ##""C:\%ProgramFiles%\FreeBASIC""##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the website will be installed as well.
To uninstall ""FreeBASIC"", remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx|Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program|Uninstall or change a program]]).
{{fbdoc item="section" value="Windows x64"}}
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win64.zip]] package
1) Extract it where you like, for example at ##""C:\%ProgramFiles%\FreeBASIC""## (no further installation required to use fbc).
No Differences
Additions:
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win32.exe]] installer
- [[http://fbide.freebasic.net/|FBIDE]]
- [[http://radasm.cherrytree.at/fbedit/|FBEdit]]
To uninstall ""FreeBASIC"", remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx|Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program|Uninstall or change a program]]).
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win64.zip]] package
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/|FreeBASIC-x.xx.x-linux-x86.tar.gz (32bit) or FreeBASIC-x.xx.x-linux-x86_64.tar.gz (64bit)]] package
- libffi development files (for the [[KeyPgThreadCall|ThreadCall]] keyword)
- gpm (general purpose mouse) daemon and libgpm (only needed for [[KeyPgGetmouse|GetMouse]] support in the Linux console)
- [[http://www.geany.org/|Geany]]
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20DOS/|FreeBASIC-x.xx.x-dos.zip]] archive
- [[CompilerRunning|Invoking the Compiler]]
- [[CompilerCmdLine|Compiler Command Line Options]]
- [[http://fbide.freebasic.net/|FBIDE]]
- [[http://radasm.cherrytree.at/fbedit/|FBEdit]]
To uninstall ""FreeBASIC"", remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx|Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program|Uninstall or change a program]]).
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/|FreeBASIC-x.xx.x-win64.zip]] package
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/|FreeBASIC-x.xx.x-linux-x86.tar.gz (32bit) or FreeBASIC-x.xx.x-linux-x86_64.tar.gz (64bit)]] package
- libffi development files (for the [[KeyPgThreadCall|ThreadCall]] keyword)
- gpm (general purpose mouse) daemon and libgpm (only needed for [[KeyPgGetmouse|GetMouse]] support in the Linux console)
- [[http://www.geany.org/|Geany]]
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20DOS/|FreeBASIC-x.xx.x-dos.zip]] archive
- [[CompilerRunning|Invoking the Compiler]]
- [[CompilerCmdLine|Compiler Command Line Options]]
Deletions:
- [[http://fbide.freebasic.net/ FBIDE]]
- [[http://radasm.cherrytree.at/fbedit/ FBEdit]]
To uninstall ""FreeBASIC"", remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program Uninstall or change a program]]).
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win64.zip]] package
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux-x86.tar.gz (32bit) or FreeBASIC-x.xx.x-linux-x86_64.tar.gz (64bit)]] package
- libffi development files (for the [[KeyPgThreadCall ThreadCall]] keyword)
- gpm (general purpose mouse) daemon and libgpm (only needed for [[KeyPgGetmouse GetMouse]] support in the Linux console)
- [[http://www.geany.org/ Geany]]
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20DOS/ FreeBASIC-x.xx.x-dos.zip]] archive
- [[CompilerRunning Invoking the Compiler]]
- [[CompilerCmdLine Compiler Command Line Options]]
Additions:
- gpm (general purpose mouse) daemon and libgpm (only needed for [[KeyPgGetmouse GetMouse]] support in the Linux console)
Deletions:
Additions:
This comment applies to FB 1.01.0, and may apply to other builds also.
Install all of the Libraries listed above; some of the entries ending in “:i386” may throw “not found” errors.
1) Retry!
1) [Unrelated point: if "private" Libraries are needed for compiles, they were expected to be in /usr/local/lib/freebasic/. Now, they may have to be in /usr/local/lib/freebasic/linux-x86/].
1) [Mike Kennedy, Jan, 2015. (This note was not acceptable as a standard "comment" - I don't know why?)].
Install all of the Libraries listed above; some of the entries ending in “:i386” may throw “not found” errors.
1) Retry!
1) [Unrelated point: if "private" Libraries are needed for compiles, they were expected to be in /usr/local/lib/freebasic/. Now, they may have to be in /usr/local/lib/freebasic/linux-x86/].
1) [Mike Kennedy, Jan, 2015. (This note was not acceptable as a standard "comment" - I don't know why?)].
Deletions:
1) Retry! [Mike Kennedy, Jan, 2015. (This note was not acceptable as a standard "comment"?)].
Additions:
{{fbdoc item="section" value="Compiling under Ubuntu 10.04 LTS, 64-bit:"}}
Install all of the above Libraries, as advised. Some of the entries ending in “:i386” may throw “not found” errors.
To verify that you’re using a 64-bit build, use: “uname -a” or “uname -m” (it’ll show x86_64 for 64-bit, i386 for 32-bit).
Then, when running FBC, an error may appear: “error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory”.
“libtinfo.so.5” is available as a separate library in Ubuntu 11.10+, but it is built into “ncurses.so.5” in 10.04 LTS. So, we need to re-direct the libtinfo references into the ncurses.so.5 libraries:
1) Issue: find / -name 'libtinfo.so.5' - just to verify that there are no confusing references to these libraries anywhere. Any references should be checked, and probably deleted?
1) Change to the folder containing the FBC executable (perhaps “/usr/local/bin/”).
1) Issue: ldd fbc - it will list the various library folder(s) being searched (probably “/lib32” in most cases).
1) Issue: sudo ln -s /lib32/libncurses.so.5 /lib32/libtinfo.so.5 (assuming “/lib32” was emitted in the previous step).
1) Issue: sudo ln -s /lib32/libtinfo.so.5 /lib32/libtinfo.so (assuming “/lib32”...)
1) Retry! [Mike Kennedy, Jan, 2015. (This note was not acceptable as a standard "comment"?)].
Install all of the above Libraries, as advised. Some of the entries ending in “:i386” may throw “not found” errors.
To verify that you’re using a 64-bit build, use: “uname -a” or “uname -m” (it’ll show x86_64 for 64-bit, i386 for 32-bit).
Then, when running FBC, an error may appear: “error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory”.
“libtinfo.so.5” is available as a separate library in Ubuntu 11.10+, but it is built into “ncurses.so.5” in 10.04 LTS. So, we need to re-direct the libtinfo references into the ncurses.so.5 libraries:
1) Issue: find / -name 'libtinfo.so.5' - just to verify that there are no confusing references to these libraries anywhere. Any references should be checked, and probably deleted?
1) Change to the folder containing the FBC executable (perhaps “/usr/local/bin/”).
1) Issue: ldd fbc - it will list the various library folder(s) being searched (probably “/lib32” in most cases).
1) Issue: sudo ln -s /lib32/libncurses.so.5 /lib32/libtinfo.so.5 (assuming “/lib32” was emitted in the previous step).
1) Issue: sudo ln -s /lib32/libtinfo.so.5 /lib32/libtinfo.so (assuming “/lib32”...)
1) Retry! [Mike Kennedy, Jan, 2015. (This note was not acceptable as a standard "comment"?)].
Additions:
- (See comment below re Ubuntu 10.04 LTS)
Additions:
- libx11-dev:i386 libxext-dev:i386 libxrender-dev:i386 libxrandr-dev:i386 libxpm-dev:i386
Deletions:
No Differences
Additions:
1) The ""FreeBASIC"" compiler can be used from where it was extracted. Usually it is installed into the ##/usr/local## system directory though, so that the ##fbc## program is available through-out the whole system. To do that, run the included installation script:
- libc development files (installing gcc will typically install these too)
- gpm (general purpose mouse) daemon and libgpm (only needed for GetMouse support in the Linux console)
- libc development files (installing gcc will typically install these too)
- gpm (general purpose mouse) daemon and libgpm (only needed for GetMouse support in the Linux console)
Deletions:
- libc development files
- ""g++ (or rather, libsupc++, part of libstdc++)""
Additions:
{{fbdoc item="section" value="Windows 32bit"}}
1) Unless you already have a source code editor or IDE, you should install one too, as ""FreeBASIC"" itself does not include one. An IDE can be used to write and save .bas files and to launch the ""FreeBASIC"" Compiler to compile them. The following IDEs are known to explicitly support ""FreeBASIC"":
{{fbdoc item="section" value="Windows x64"}}
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win64.zip]] package
1) Extract it where you like, for example at ##""C:\%ProgramFiles%\FreeBASIC""## (no further installation required to use fbc).
1) You may want to install a source code editor or IDE; also see the **Windows 32bit** section.
To uninstall ""FreeBASIC"", simply deleted the directory where you extracted it.
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux-x86.tar.gz (32bit) or FreeBASIC-x.xx.x-linux-x86_64.tar.gz (64bit)]] package
$ tar xzf FreeBASIC-x.xx.x-linux-x86.tar.gz%%
1) The ""FreeBASIC"" setup can be used from where it was extracted. Usually it is installed into the ##/usr/local## system directory though, so that the ##fbc## program is available through-out the whole system. To do that, run the included installation script:
%%$ cd FreeBASIC-x.xx.x-linux-x86
For native development (32bit FB on 32bit system, or 64bit FB on 64bit system):
- Debian/Ubuntu:
- gcc
- libncurses5-dev
- libffi-dev
- libgl1-mesa-dev
- libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev
- Fedora:
- gcc
- ncurses-devel
- libffi-devel
- mesa-libGL-devel
- libX11-devel libXext-devel libXrender-devel libXrandr-devel libXpm-devel
- ""OpenSUSE"":
- gcc
- ncurses-devel
- libffi46-devel
- xorg-x11-devel
For 32bit development on a 64bit system:
- Debian/Ubuntu:
- gcc-multilib
- lib32ncurses5-dev
- libx11-dev:i386, libxext-dev:i386, libxrender-dev:i386, libxrandr-dev:i386, libxpm-dev:i386
- ""OpenSUSE"":
- gcc-32bit
- ncurses-devel-32bit
- xorg-x11-devel-32bit
- xorg-x11-libX11-devel-32bit
- xorg-x11-libXext-devel-32bit
- xorg-x11-libXrender-devel-32bit
- xorg-x11-libXpm-devel-32bit
- libffi46-devel-32bit
1) Unless you already have a source code editor or IDE, you should install one too, as ""FreeBASIC"" itself does not include one. An IDE can be used to write and save .bas files and to launch the ""FreeBASIC"" Compiler to compile them. The following IDEs are known to explicitly support ""FreeBASIC"":
{{fbdoc item="section" value="Windows x64"}}
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win64.zip]] package
1) Extract it where you like, for example at ##""C:\%ProgramFiles%\FreeBASIC""## (no further installation required to use fbc).
1) You may want to install a source code editor or IDE; also see the **Windows 32bit** section.
To uninstall ""FreeBASIC"", simply deleted the directory where you extracted it.
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux-x86.tar.gz (32bit) or FreeBASIC-x.xx.x-linux-x86_64.tar.gz (64bit)]] package
$ tar xzf FreeBASIC-x.xx.x-linux-x86.tar.gz%%
1) The ""FreeBASIC"" setup can be used from where it was extracted. Usually it is installed into the ##/usr/local## system directory though, so that the ##fbc## program is available through-out the whole system. To do that, run the included installation script:
%%$ cd FreeBASIC-x.xx.x-linux-x86
For native development (32bit FB on 32bit system, or 64bit FB on 64bit system):
- Debian/Ubuntu:
- gcc
- libncurses5-dev
- libffi-dev
- libgl1-mesa-dev
- libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev
- Fedora:
- gcc
- ncurses-devel
- libffi-devel
- mesa-libGL-devel
- libX11-devel libXext-devel libXrender-devel libXrandr-devel libXpm-devel
- ""OpenSUSE"":
- gcc
- ncurses-devel
- libffi46-devel
- xorg-x11-devel
For 32bit development on a 64bit system:
- Debian/Ubuntu:
- gcc-multilib
- lib32ncurses5-dev
- libx11-dev:i386, libxext-dev:i386, libxrender-dev:i386, libxrandr-dev:i386, libxpm-dev:i386
- ""OpenSUSE"":
- gcc-32bit
- ncurses-devel-32bit
- xorg-x11-devel-32bit
- xorg-x11-libX11-devel-32bit
- xorg-x11-libXext-devel-32bit
- xorg-x11-libXrender-devel-32bit
- xorg-x11-libXpm-devel-32bit
- libffi46-devel-32bit
Deletions:
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux.tar.gz]] package
$ tar xzf FreeBASIC-x.xx.x-linux.tar.gz%%
1) The ""FreeBASIC"" setup can be used from where it was extracted. Usually it is installed into the /usr/local system directory though, so that the ##fbc## program is available through-out the whole system. To do that, run the included installation script:
%%$ cd FreeBASIC-x.xx.x-linux
Debian/Ubuntu x86 (32bit):
- gcc, ""g++""
- libncurses5-dev
- libx11-dev, libxext-dev, libxrender-dev, libxrandr-dev, libxpm-dev
- libffi-dev
Debian/Ubuntu amd64 (64bit):
- gcc-multilib, ""g++-multilib""
- lib32ncurses5-dev
- libx11-dev:i386, libxext-dev:i386, libxrender-dev:i386, libxrandr-dev:i386, libxpm-dev:i386
older Debian/Ubuntu amd64 (64bit), before the switch to multiarch:
- gcc-multilib, ""g++-multilib""
- lib32ncurses5-dev
- ia32-libs
- lib32ffi-dev
""OpenSUSE"" x86 (32bit):
- gcc, ""gcc-c++""
- ncurses-devel
- xorg-x11-devel
- libffi46-devel
""OpenSUSE"" x86_64 (64bit):
- gcc-32bit, ""gcc-c++-32bit""
- ncurses-devel-32bit
- xorg-x11-devel-32bit
- xorg-x11-libX11-devel-32bit
- xorg-x11-libXext-devel-32bit
- xorg-x11-libXrender-devel-32bit
- xorg-x11-libXpm-devel-32bit
- libffi46-devel-32bit
Additions:
- libffi development files (for the [[KeyPgThreadCall ThreadCall]] keyword)
Deletions:
Additions:
Installing ""FreeBASIC"", any additionally needed packages, and perhaps a text editor or IDE.
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win32.exe]] installer
1) Run it and click through it. The installer will install ""FreeBASIC"" at ##""C:\%ProgramFiles%\FreeBASIC""##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the website will be installed as well.
1) Unless you already have a text editor or IDE, you should install one too, as ""FreeBASIC"" itself does not include one. An IDE can be used to write and save .bas files and to launch the ""FreeBASIC"" Compiler to compile them. The following IDEs are known to explicitly support ""FreeBASIC"":
- [[http://fbide.freebasic.net/ FBIDE]]
- [[http://radasm.cherrytree.at/fbedit/ FBEdit]]
To uninstall ""FreeBASIC"", remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program Uninstall or change a program]]).
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux.tar.gz]] package
1) Extract the archive, for example by doing right-click -> Extract Here, or manually in a terminal:
%%$ cd Downloads
$ tar xzf FreeBASIC-x.xx.x-linux.tar.gz%%
1) The ""FreeBASIC"" setup can be used from where it was extracted. Usually it is installed into the /usr/local system directory though, so that the ##fbc## program is available through-out the whole system. To do that, run the included installation script:
%%$ cd FreeBASIC-x.xx.x-linux
$ sudo ./install.sh -i%%
The ##install.sh## script can also be given a path as in ##./install.sh -i /usr## if you prefer to install into a directory other than the default ##/usr/local##. This default is a good choice though, as it avoids mixing with the content of ##/usr## which is usually managed by the distribution's packaging tool.
1) ""FreeBASIC"" requires several additional packages to be installed before it can be used to compile executables. In general, these are:
- binutils
- libc development files
- gcc
- ""g++ (or rather, libsupc++, part of libstdc++)""
- libncurses development files
- X11 development files (for FB graphics programs)
- libffi development files (for the [[KeyPgThreadCall ThreadCall]] keyword
The actual package names to install vary depending on the GNU/Linux distribution.
Debian/Ubuntu x86 (32bit):
- gcc, ""g++""
- libncurses5-dev
- libx11-dev, libxext-dev, libxrender-dev, libxrandr-dev, libxpm-dev
- libffi-dev
Debian/Ubuntu amd64 (64bit):
- gcc-multilib, ""g++-multilib""
- lib32ncurses5-dev
- libx11-dev:i386, libxext-dev:i386, libxrender-dev:i386, libxrandr-dev:i386, libxpm-dev:i386
older Debian/Ubuntu amd64 (64bit), before the switch to multiarch:
- gcc-multilib, ""g++-multilib""
- lib32ncurses5-dev
- ia32-libs
- lib32ffi-dev
""OpenSUSE"" x86 (32bit):
- gcc, ""gcc-c++""
- ncurses-devel
- xorg-x11-devel
- libffi46-devel
""OpenSUSE"" x86_64 (64bit):
- gcc-32bit, ""gcc-c++-32bit""
- ncurses-devel-32bit
- xorg-x11-devel-32bit
- xorg-x11-libX11-devel-32bit
- xorg-x11-libXext-devel-32bit
- xorg-x11-libXrender-devel-32bit
- xorg-x11-libXpm-devel-32bit
- libffi46-devel-32bit
1) Unless you already have a text editor or IDE, you should install one too, as ""FreeBASIC"" itself does not include one. An IDE can be used to write and save .bas files and to launch the ""FreeBASIC"" Compiler to compile them. The following IDEs are known to explicitly support ""FreeBASIC"":
- [[http://www.geany.org/ Geany]]
To uninstall ""FreeBASIC"" from ##/usr/local##, you can run the install.sh script again, but with the -u option: ##sudo ./install.sh -u##
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20DOS/ FreeBASIC-x.xx.x-dos.zip]] archive
1) Find a place for ""FreeBASIC"" with at least 13 ""MiB"" free space.
1) Unpack the ZIP archive, making sure that the directory structure as used inside the archive is preserved ("PKUNZIP -d" for example).
1) The top-level directory is named ""FreeBASIC-x.xx.x-dos"" (will be truncated to "FREEBASI" in DOS without full LFN support), so you might want to rename it then to a convenient DOS-compliant name not longer than 8 characters and containing no white-spaces, like "FB".
1) All the important files used by the compiler (includes, libs) inside the archive do have DOS-compliant names, therefore DOSLFN is not required to use ""FreeBASIC"", however, some examples and texts do have longer names and will be truncated when extracted without full LFN support.
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win32.exe]] installer
1) Run it and click through it. The installer will install ""FreeBASIC"" at ##""C:\%ProgramFiles%\FreeBASIC""##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the website will be installed as well.
1) Unless you already have a text editor or IDE, you should install one too, as ""FreeBASIC"" itself does not include one. An IDE can be used to write and save .bas files and to launch the ""FreeBASIC"" Compiler to compile them. The following IDEs are known to explicitly support ""FreeBASIC"":
- [[http://fbide.freebasic.net/ FBIDE]]
- [[http://radasm.cherrytree.at/fbedit/ FBEdit]]
To uninstall ""FreeBASIC"", remove it from the system's list of installed software ([[http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/win_addprog_window_component.mspx Add/remove programs]], [[http://windows.microsoft.com/en-US/windows-vista/Uninstall-or-change-a-program Uninstall or change a program]]).
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux.tar.gz]] package
1) Extract the archive, for example by doing right-click -> Extract Here, or manually in a terminal:
%%$ cd Downloads
$ tar xzf FreeBASIC-x.xx.x-linux.tar.gz%%
1) The ""FreeBASIC"" setup can be used from where it was extracted. Usually it is installed into the /usr/local system directory though, so that the ##fbc## program is available through-out the whole system. To do that, run the included installation script:
%%$ cd FreeBASIC-x.xx.x-linux
$ sudo ./install.sh -i%%
The ##install.sh## script can also be given a path as in ##./install.sh -i /usr## if you prefer to install into a directory other than the default ##/usr/local##. This default is a good choice though, as it avoids mixing with the content of ##/usr## which is usually managed by the distribution's packaging tool.
1) ""FreeBASIC"" requires several additional packages to be installed before it can be used to compile executables. In general, these are:
- binutils
- libc development files
- gcc
- ""g++ (or rather, libsupc++, part of libstdc++)""
- libncurses development files
- X11 development files (for FB graphics programs)
- libffi development files (for the [[KeyPgThreadCall ThreadCall]] keyword
The actual package names to install vary depending on the GNU/Linux distribution.
Debian/Ubuntu x86 (32bit):
- gcc, ""g++""
- libncurses5-dev
- libx11-dev, libxext-dev, libxrender-dev, libxrandr-dev, libxpm-dev
- libffi-dev
Debian/Ubuntu amd64 (64bit):
- gcc-multilib, ""g++-multilib""
- lib32ncurses5-dev
- libx11-dev:i386, libxext-dev:i386, libxrender-dev:i386, libxrandr-dev:i386, libxpm-dev:i386
older Debian/Ubuntu amd64 (64bit), before the switch to multiarch:
- gcc-multilib, ""g++-multilib""
- lib32ncurses5-dev
- ia32-libs
- lib32ffi-dev
""OpenSUSE"" x86 (32bit):
- gcc, ""gcc-c++""
- ncurses-devel
- xorg-x11-devel
- libffi46-devel
""OpenSUSE"" x86_64 (64bit):
- gcc-32bit, ""gcc-c++-32bit""
- ncurses-devel-32bit
- xorg-x11-devel-32bit
- xorg-x11-libX11-devel-32bit
- xorg-x11-libXext-devel-32bit
- xorg-x11-libXrender-devel-32bit
- xorg-x11-libXpm-devel-32bit
- libffi46-devel-32bit
1) Unless you already have a text editor or IDE, you should install one too, as ""FreeBASIC"" itself does not include one. An IDE can be used to write and save .bas files and to launch the ""FreeBASIC"" Compiler to compile them. The following IDEs are known to explicitly support ""FreeBASIC"":
- [[http://www.geany.org/ Geany]]
To uninstall ""FreeBASIC"" from ##/usr/local##, you can run the install.sh script again, but with the -u option: ##sudo ./install.sh -u##
1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20DOS/ FreeBASIC-x.xx.x-dos.zip]] archive
1) Find a place for ""FreeBASIC"" with at least 13 ""MiB"" free space.
1) Unpack the ZIP archive, making sure that the directory structure as used inside the archive is preserved ("PKUNZIP -d" for example).
1) The top-level directory is named ""FreeBASIC-x.xx.x-dos"" (will be truncated to "FREEBASI" in DOS without full LFN support), so you might want to rename it then to a convenient DOS-compliant name not longer than 8 characters and containing no white-spaces, like "FB".
1) All the important files used by the compiler (includes, libs) inside the archive do have DOS-compliant names, therefore DOSLFN is not required to use ""FreeBASIC"", however, some examples and texts do have longer names and will be truncated when extracted without full LFN support.
Deletions:
Run the installer executable, and follow its instructions. FreeBASIC uses the NSIS installer which has a strong compression. The download size is ca 6 MB, after extraction the full total size is ca 50 MB.
FreeBASIC will be installed in ##C:\FreeBASIC##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the Uninstaller and website will be installed as well.
Unpack the archive to a temporary folder and navigate to the root FreeBASIC installation directory. For example, if the FreeBASIC package you downloaded was called ##""FreeBASIC-vX.XX.Xb-linux.tar.gz""## and was in your home directory, type,
##cd##
//(change to your home directory)//
##mkdir -p tmp && cd tmp##
//(attempt to create a temporary directory and change to it)//
##tar -xzf ""../FreeBASIC-vX.XX.Xb-linux.tar.gz""##
//(unpack the archive)//
##cd FreeBASIC##
//(change to the root installation directory)//
Run the installation script ##install.sh## with the "-i" switch, optionally specifying the installation directory. For example, to install FreeBASIC into the default directory type,
##sudo ./install.sh -i##
//(the default installation)//
Run the installation script with no arguments for more info on command-line options. ##install.sh## will install FreeBASIC ##/usr/local## by default.
To uninstall FreeBASIC, you can run "install.sh -u"
{{fbdoc item="section" value="Linux (standalone)"}}
Unpack the archive to a temporary folder and navigate to the root FreeBASIC installation directory. For example, if the FreeBASIC package you downloaded was called ##""FreeBASIC-vX.XX.Xb-linux-standalone.tar.gz""## and was in your home directory, type,
##cd##
//(change to your home directory)//
##mkdir -p tmp && cd tmp##
//(attempt to create a temporary directory and change to it)//
##tar -xzf ""../FreeBASIC-vX.XX.Xb-linux-standalone.tar.gz""##
//(unpack the archive)//
##cd FreeBASIC##
//(change to the root installation directory)//
Run the installation script ##install-standalone.sh## with the "-i" switch, optionally specifying the installation directory. For example, to install FreeBASIC into the default directory type,
##sudo ./install-standalone.sh -i##
//(the default installation)//
Run the installation script with no arguments for more info on command-line options. ##install-standalone.sh## will install FreeBASIC to ##/usr/share/freebasic## by default and a symlink to the compiler binary will be created at ##/usr/bin/fbc## if run with root permission.
To uninstall FreeBASIC, you can run "install-standalone.sh -u"
- Find a place for FreeBASIC with at least 13 MiB free space.
- Unpack the ZIP archive, making sure that the directory structure as used inside the archive is preserved ("PKUNZIP -d" for example).
- The top-level directory is named FreeBASIC (will be truncated to "FREEBASI" in DOS without full LFN support), so you might want to rename it then to a convenient DOS-compliant name not longer than 8 characters and containing no white-spaces, like "FB".
- All the important files used by the compiler (includes, libs) inside the archive do have DOS-compliant names, therefore DOSLFN is not required to use FreeBASIC, however, some examples and texts do have longer names and will be truncated when extracted without full LFN support.
Additions:
{{fbdoc item="back" value="DocToc|Table of Contents"}}
Deletions:
Additions:
Run the installer executable, and follow its instructions. FreeBASIC uses the NSIS installer which has a strong compression. The download size is ca 6 MB, after extraction the full total size is ca 50 MB.
FreeBASIC will be installed in ##C:\FreeBASIC##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the Uninstaller and website will be installed as well.
FreeBASIC will be installed in ##C:\FreeBASIC##, or if you chose a different installation directory, in your chosen directory. Start Menu shortcuts to the Uninstaller and website will be installed as well.
Deletions:
If successful, FreeBASIC will be installed in ##C:\Program Files\FreeBASIC##, or if you chose a different installation directory, in your chosen directory. Desktop and Start Menu shortcuts will be installed by default as well.
Revision [14632]
Edited on 2010-06-15 11:31:10 by DkLwikki ["Back to Main" instead of "Back to TOC"]Additions:
{{fbdoc item="back" value="FBWiki|Main Page"}}