|
1 | 1 | {{fbdoc item="title" value="Installing"}}---- |
2 | 2 | Installing ""FreeBASIC"", any additionally needed packages, and perhaps a text editor or IDE. |
3 | 3 |
|
4 | | -{{fbdoc item="section" value="Windows"}} |
| 4 | +{{fbdoc item="section" value="Windows 32bit"}} |
5 | 5 |
|
6 | 6 | 1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win32.exe]] installer |
7 | 7 | 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. |
8 | | - 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"": |
| 8 | + 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"": |
9 | 9 | - [[http://fbide.freebasic.net/ FBIDE]] |
10 | 10 | - [[http://radasm.cherrytree.at/fbedit/ FBEdit]] |
11 | | - |
| 11 | + |
12 | 12 | 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]]). |
13 | 13 |
|
| 14 | +{{fbdoc item="section" value="Windows x64"}} |
| 15 | + |
| 16 | + 1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Windows/ FreeBASIC-x.xx.x-win64.zip]] package |
| 17 | + 1) Extract it where you like, for example at ##""C:\%ProgramFiles%\FreeBASIC""## (no further installation required to use fbc). |
| 18 | + 1) You may want to install a source code editor or IDE; also see the **Windows 32bit** section. |
| 19 | + |
| 20 | + To uninstall ""FreeBASIC"", simply deleted the directory where you extracted it. |
| 21 | + |
14 | 22 | {{fbdoc item="section" value="Linux"}} |
15 | 23 |
|
16 | | - 1) Download the latest [[https://sourceforge.net/projects/fbc/files/Binaries%20-%20Linux/ FreeBASIC-x.xx.x-linux.tar.gz]] package |
| 24 | + 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 |
17 | 25 | 1) Extract the archive, for example by doing right-click -> Extract Here, or manually in a terminal: |
18 | 26 |
|
19 | 27 | %%$ cd Downloads |
20 | | -$ tar xzf FreeBASIC-x.xx.x-linux.tar.gz%% |
| 28 | +$ tar xzf FreeBASIC-x.xx.x-linux-x86.tar.gz%% |
21 | 29 |
|
22 | | - 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: |
| 30 | + 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: |
23 | 31 |
|
24 | | - %%$ cd FreeBASIC-x.xx.x-linux |
| 32 | + %%$ cd FreeBASIC-x.xx.x-linux-x86 |
25 | 33 | $ sudo ./install.sh -i%% |
26 | 34 |
|
27 | 35 | 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. |
28 | | - |
| 36 | + |
29 | 37 | 1) ""FreeBASIC"" requires several additional packages to be installed before it can be used to compile executables. In general, these are: |
30 | 38 |
|
31 | 39 | - binutils |
32 | | - - libc development files |
| 40 | + - libc development files (installing gcc will typically install these too) |
33 | 41 | - gcc |
34 | | - - ""g++ (or rather, libsupc++, part of libstdc++)"" |
35 | 42 | - libncurses development files |
36 | 43 | - X11 development files (for FB graphics programs) |
37 | 44 | - libffi development files (for the [[KeyPgThreadCall ThreadCall]] keyword) |
| 45 | + - gpm (general purpose mouse) daemon and libgpm (only needed for GetMouse support in the Linux console) |
38 | 46 |
|
39 | 47 | The actual package names to install vary depending on the GNU/Linux distribution. |
40 | 48 |
|
41 | | - Debian/Ubuntu x86 (32bit): |
42 | | - - gcc, ""g++"" |
43 | | - - libncurses5-dev |
44 | | - - libx11-dev, libxext-dev, libxrender-dev, libxrandr-dev, libxpm-dev |
45 | | - - libffi-dev |
46 | | - |
47 | | - Debian/Ubuntu amd64 (64bit): |
48 | | - - gcc-multilib, ""g++-multilib"" |
49 | | - - lib32ncurses5-dev |
50 | | - - libx11-dev:i386, libxext-dev:i386, libxrender-dev:i386, libxrandr-dev:i386, libxpm-dev:i386 |
51 | | - |
52 | | - older Debian/Ubuntu amd64 (64bit), before the switch to multiarch: |
53 | | - - gcc-multilib, ""g++-multilib"" |
54 | | - - lib32ncurses5-dev |
55 | | - - ia32-libs |
56 | | - - lib32ffi-dev |
57 | | - |
58 | | - ""OpenSUSE"" x86 (32bit): |
59 | | - - gcc, ""gcc-c++"" |
60 | | - - ncurses-devel |
61 | | - - xorg-x11-devel |
62 | | - - libffi46-devel |
| 49 | + For native development (32bit FB on 32bit system, or 64bit FB on 64bit system): |
| 50 | + - Debian/Ubuntu: |
| 51 | + - gcc |
| 52 | + - libncurses5-dev |
| 53 | + - libffi-dev |
| 54 | + - libgl1-mesa-dev |
| 55 | + - libx11-dev libxext-dev libxrender-dev libxrandr-dev libxpm-dev |
| 56 | + - Fedora: |
| 57 | + - gcc |
| 58 | + - ncurses-devel |
| 59 | + - libffi-devel |
| 60 | + - mesa-libGL-devel |
| 61 | + - libX11-devel libXext-devel libXrender-devel libXrandr-devel libXpm-devel |
| 62 | + - ""OpenSUSE"": |
| 63 | + - gcc |
| 64 | + - ncurses-devel |
| 65 | + - libffi46-devel |
| 66 | + - xorg-x11-devel |
63 | 67 |
|
64 | | - ""OpenSUSE"" x86_64 (64bit): |
65 | | - - gcc-32bit, ""gcc-c++-32bit"" |
66 | | - - ncurses-devel-32bit |
67 | | - - xorg-x11-devel-32bit |
68 | | - - xorg-x11-libX11-devel-32bit |
69 | | - - xorg-x11-libXext-devel-32bit |
70 | | - - xorg-x11-libXrender-devel-32bit |
71 | | - - xorg-x11-libXpm-devel-32bit |
72 | | - - libffi46-devel-32bit |
| 68 | + For 32bit development on a 64bit system: |
| 69 | + - Debian/Ubuntu: |
| 70 | + - gcc-multilib |
| 71 | + - lib32ncurses5-dev |
| 72 | + - libx11-dev:i386 libxext-dev:i386 libxrender-dev:i386 libxrandr-dev:i386 libxpm-dev:i386 |
| 73 | + - ""OpenSUSE"": |
| 74 | + - gcc-32bit |
| 75 | + - ncurses-devel-32bit |
| 76 | + - xorg-x11-devel-32bit |
| 77 | + - xorg-x11-libX11-devel-32bit |
| 78 | + - xorg-x11-libXext-devel-32bit |
| 79 | + - xorg-x11-libXrender-devel-32bit |
| 80 | + - xorg-x11-libXpm-devel-32bit |
| 81 | + - libffi46-devel-32bit |
73 | 82 |
|
74 | 83 | 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"": |
75 | 84 | - [[http://www.geany.org/ Geany]] |
|
0 commit comments