Installing Lazarus on FreeBSD: what changed
Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | ## Installing Lazarus on FreeBSD | |
| 2 | 2 | ||
| 3 | - | ||
| 3 | + | The following applies to FreeBSD 13.x (i386, amd64), 14.x (i386, amd64) and 15-CURRENT (aarch64, amd64) only. Earlier FreeBSD versions are end-of-life and not supported. | |
| 4 | 4 | ||
| 5 | 5 | ### via the Ports tree | |
| 6 | 6 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 7 | + | Currently, two versions of Lazarus are available in the FreeBSD ports tree v3.6.0 (release version) and v4.99 (development version). The latest version of the Free Pascal Compiler in the ports tree is v3.2.3 and v3.3.1 (development version). You can install the GTK2 version, QT5 version _or_ QT6 version of Lazarus as follows: | |
| 8 | + | ``` | |
| 10 | 9 | # cd /usr/ports/editors/lazarus && make install clean | |
| 11 | 10 | ``` | |
| 12 | 11 | ||
| 13 | - | ||
| 14 | - | ||
| 15 | - | ||
| 12 | + | or | |
| 13 | + | ``` | |
| 16 | 14 | # cd /usr/ports/editors/lazarus-qt5 && make install clean | |
| 17 | 15 | ``` | |
| 18 | 16 | ||
| 19 | - | ||
| 20 | - | ||
| 21 | - | ||
| 17 | + | or | |
| 18 | + | ``` | |
| 22 | 19 | # cd /usr/ports/editors/lazarus-qt6 && make install clean | |
| 23 | 20 | ``` | |
| 24 | 21 | ||
| 25 | - | ||
| 26 | - | ||
| 27 | - | ||
| 22 | + | If you want use development (aka trunk) version of Lazarus do the following: | |
| 23 | + | ``` | |
| 28 | 24 | # cd /usr/ports/editors/lazarus-devel && make install clean | |
| 29 | 25 | ``` | |
| 30 | 26 | ||
| 31 | - | ||
| 32 | - | ||
| 33 | - | ||
| 27 | + | or | |
| 28 | + | ``` | |
| 34 | 29 | # cd /usr/ports/editors/lazarus-qt5-devel && make install clean | |
| 35 | 30 | ``` | |
| 36 | 31 | ||
| 37 | - | ||
| 38 | - | ||
| 39 | - | ||
| 32 | + | or | |
| 33 | + | ``` | |
| 40 | 34 | # cd /usr/ports/editors/lazarus-qt6-devel && make install clean | |
| 41 | 35 | ``` | |
| 42 | 36 | ||
| 43 | - | ||
| 37 | + | Note: Installing Lazarus will also install the Free Pascal Compiler and its source files. | |
| 44 | 38 | ||
| 45 | 39 | ### via the pkg system | |
| 46 | - | ||
| 47 | - | ||
| 40 | + | ``` | |
| 48 | 41 | # pkg install editors/lazarus | |
| 49 | 42 | ``` | |
| 50 | 43 | ||
| 51 | - | ||
| 52 | - | ||
| 53 | - | ||
| 44 | + | or | |
| 45 | + | ``` | |
| 54 | 46 | # pkg install editors/lazarus-qt5 | |
| 55 | 47 | ``` | |
| 56 | 48 | ||
| 57 | - | ||
| 58 | - | ||
| 59 | - | ||
| 49 | + | or | |
| 50 | + | ``` | |
| 60 | 51 | # pkg install editors/lazarus-qt6 | |
| 61 | 52 | ``` | |
| 62 | 53 | ||
| 63 | - | ||
| 64 | - | ||
| 65 | - | ||
| 54 | + | or | |
| 55 | + | ``` | |
| 66 | 56 | # pkg install editors/lazarus-devel | |
| 67 | 57 | ``` | |
| 68 | 58 | ||
| 69 | - | ||
| 70 | - | ||
| 71 | - | ||
| 59 | + | or | |
| 60 | + | ``` | |
| 72 | 61 | # pkg install editors/lazarus-qt5-devel | |
| 73 | 62 | ``` | |
| 74 | 63 | ||
| 75 | - | ||
| 76 | - | ||
| 77 | - | ||
| 64 | + | or | |
| 65 | + | ``` | |
| 78 | 66 | # pkg install editors/lazarus-qt6-devel | |
| 79 | 67 | ``` | |
| 80 | 68 | ||
| 81 | - | ||
| 82 | - | ||
| 83 | - | ||
| 69 | + | Lazarus should install the Free Pascal Compiler source files. If you don't have them, you can add them: | |
| 70 | + | ``` | |
| 84 | 71 | # pkg install lang/fpc-source | |
| 85 | 72 | ``` | |
| 86 | 73 | ||
| 87 | - | ||
| 74 | + | If you start Lazarus IDE at this point by typing **lazarus** you will get a dialog which needs you to input the directory in which the Free Pascal source files are located. Set it to **/usr/local/share/fpc-source-3.2.3** | |
| 88 | 75 | ||
| 89 | 76 | ### via the Lazarus repository | |
| 90 | 77 | ||
| 91 | - | ||
| 78 | + | This option will often be used if you want to follow Lazarus trunk, a fixes branch, or some other release (eg compiling from a source tarball). | |
| 92 | 79 | ||
| 93 | - | ||
| 80 | + | * Use the SubVersion or Git repositories to checkout a copy of the source code you want, or unpack a downloaded source archive into a suitable location. Recent versions of FreeBSD include the **svn** command as **svnlite** , so you do not need to install full Subversion package to checkout a copy of the source code. | |
| 94 | 81 | ||
| 95 | - | ||
| 82 | + | * The readme.txt file in Lazarus directory mentions **make clean all**. This only works if you are using Linux. Under FreeBSD you need to replace **make** with **gmake** and ensure that you have also installed the GNU gmake from ports. | |
| 96 | 83 | ||
| 97 | - | ||
| 98 | - | ||
| 99 | - | ||
| 100 | 84 | ``` | |
| 85 | + | cd /path/to/lazarus_source | |
| 86 | + | gmake distclean all bigide | |
| 87 | + | ``` | |
| 101 | 88 | ||
| 102 | 89 | ### What does the bigide make argument do? | |
| 103 | 90 | ||
| 91 | + | The _bigide_ `make` argument adds a bunch of packages to Lazarus that many find useful and cannot do without. The packages that are added are: | |
| 92 | + | ||
| 93 | + | cairocanvas · chmhelp · datetimectrls · externhelp · fpcunit · fpdebug · instantfpc · jcf2 · lazcontrols · lazdebuggers | lclextensions · leakview · macroscript · memds · onlinepackagemanager · pas2js · PascalScript · printers · projecttemplates · rtticontrols | sdf · sqldb · synedit · tachart · tdbf · todolist · turbopower_ipro · virtualtreeview | |
| 94 | + | ---|---|--- | |
| 95 | + | ||
| 96 | + | The above list is sourced from the _`[Lazarus source directory]/IDE/Makefile.fpc`_ and may be subject to change. | |
| 97 | + | ||
| 98 | + | Note that if you have not compiled your own Lazarus IDE with the _bigide_ argument, you can install any of these packages yourself using the Lazarus IDE [[IDE Window: Installed Packages|_Package > Install/Uninstall Packages..._]] dialog. | |
| 99 | + | ||
| 104 | 100 | ## Installation troubleshooting | |
| 105 | 101 | ||
| 106 | - | ||
| 102 | + | Troubleshooting details that should (hopefully) be applicable across platforms may be found in the article [[Installation Troubleshooting]]. | |
| 107 | 103 | ||
| 108 | - | ||
| 104 | + | Some additional notes for FreeBSD installations can be found in the articles [[FreeBSD]] and [[Installing the Free Pascal Compiler]]. | |
| 109 | 105 | ||
| 110 | 106 | ## Multiple Lazarus installs | |
| 111 | 107 | ||
| 112 | - | ||
| 108 | + | Please see [[Multiple Lazarus]] for details on having more than one Lazarus version installed on one system. We cover issues that can arise due to multiple Lazarus installs here, because they can also happen when installing over a previous version. | |
| 113 | 109 | ||
| 114 | 110 | ## Lazarus FAQ | |
| 115 | 111 | ||
| 116 | - | ||
| 112 | + | The Lazarus FAQ - Frequently Asked Questions - page is available [[Lazarus Faq|here]]. | |
| 117 | 113 | ||
| 118 | 114 | ## Installing old versions | |
| 119 | 115 | ||
| 120 | 116 | See [[Installation hints for old versions]] | |
| 121 | 117 | ||
| 122 | 118 | --- | |
| 123 | - | ||
| 124 | - | ||
| 125 | - | ||
| 126 | - | ||
| 127 | - | ||
| 119 | + | *From the Free Pascal wiki, page "Installing Lazarus on FreeBSD", as the Internet Archive kept it on 2025-06-16, last changed on 2024-11-17. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
