Installing Lazarus on FreeBSD: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Installing Lazarus on FreeBSD
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## Installing Lazarus on FreeBSD | |
| 2 | + | ||
| 3 | + | The following applies to FreeBSD 12.x, 13.x, 14.x and 15-CURRENT only. Earlier FreeBSD versions are end-of-life and not supported. | |
| 4 | + | ||
| 5 | + | ### via the Ports tree | |
| 6 | + | ||
| 7 | + | Currently, two versions of Lazarus are available in the FreeBSD ports tree v3.0.0 (release version) and v3.1.0 (development version). The latest version of the Free Pascal Compiler in the ports tree is v3.2.2 and v3.3.1 (development version). You can install the GTK2 version, QT5 version *or* QT6 version of Lazarus as follows: | |
| 8 | + | ||
| 9 | + | ``` bash | |
| 10 | + | # cd /usr/ports/editors/lazarus && make install clean | |
| 11 | + | ``` | |
| 12 | + | ||
| 13 | + | or | |
| 14 | + | ||
| 15 | + | ``` bash | |
| 16 | + | # cd /usr/ports/editors/lazarus-qt5 && make install clean | |
| 17 | + | ``` | |
| 18 | + | ||
| 19 | + | or | |
| 20 | + | ||
| 21 | + | ``` bash | |
| 22 | + | # cd /usr/ports/editors/lazarus-qt6 && make install clean | |
| 23 | + | ``` | |
| 24 | + | ||
| 25 | + | If you want use development (aka trunk) version of Lazarus do the following: | |
| 26 | + | ||
| 27 | + | ``` bash | |
| 28 | + | # cd /usr/ports/editors/lazarus-devel && make install clean | |
| 29 | + | ``` | |
| 30 | + | ||
| 31 | + | or | |
| 32 | + | ||
| 33 | + | ``` bash | |
| 34 | + | # cd /usr/ports/editors/lazarus-qt5-devel && make install clean | |
| 35 | + | ``` | |
| 36 | + | ||
| 37 | + | or | |
| 38 | + | ||
| 39 | + | ``` bash | |
| 40 | + | # cd /usr/ports/editors/lazarus-qt6-devel && make install clean | |
| 41 | + | ``` | |
| 42 | + | ||
| 43 | + | Note: Installing Lazarus will also install the Free Pascal Compiler and its source files. | |
| 44 | + | ||
| 45 | + | ### via the pkg system | |
| 46 | + | ||
| 47 | + | ``` bash | |
| 48 | + | # pkg install editors/lazarus | |
| 49 | + | ``` | |
| 50 | + | ||
| 51 | + | or | |
| 52 | + | ||
| 53 | + | ``` bash | |
| 54 | + | # pkg install editors/lazarus-qt5 | |
| 55 | + | ``` | |
| 56 | + | ||
| 57 | + | or | |
| 58 | + | ||
| 59 | + | ``` bash | |
| 60 | + | # pkg install editors/lazarus-qt6 | |
| 61 | + | ``` | |
| 62 | + | ||
| 63 | + | or | |
| 64 | + | ||
| 65 | + | ``` bash | |
| 66 | + | # pkg install editors/lazarus-devel | |
| 67 | + | ``` | |
| 68 | + | ||
| 69 | + | or | |
| 70 | + | ||
| 71 | + | ``` bash | |
| 72 | + | # pkg install editors/lazarus-qt5-devel | |
| 73 | + | ``` | |
| 74 | + | ||
| 75 | + | or | |
| 76 | + | ||
| 77 | + | ``` bash | |
| 78 | + | # pkg install editors/lazarus-qt6-devel | |
| 79 | + | ``` | |
| 80 | + | ||
| 81 | + | Lazarus should install the Free Pascal Compiler source files. If you don't have them, you can add them: | |
| 82 | + | ||
| 83 | + | ``` bash | |
| 84 | + | # pkg install lang/fpc-source | |
| 85 | + | ``` | |
| 86 | + | ||
| 87 | + | 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.2** | |
| 88 | + | ||
| 89 | + | ### via the Lazarus repository | |
| 90 | + | ||
| 91 | + | 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 | + | ||
| 93 | + | - 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 | + | ||
| 95 | + | - 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 | + | ||
| 97 | + | ``` bash | |
| 98 | + | cd /path/to/lazarus_source | |
| 99 | + | gmake distclean all bigide | |
| 100 | + | ``` | |
| 101 | + | ||
| 102 | + | ### What does the bigide make argument do? | |
| 103 | + | ||
| 104 | + | ## Installation troubleshooting | |
| 105 | + | ||
| 106 | + | Troubleshooting details that should (hopefully) be applicable across platforms may be found in the article [[Installation Troubleshooting]]. | |
| 107 | + | ||
| 108 | + | Some additional notes for FreeBSD installations can be found in the articles [[FreeBSD]] and [[Installing the Free Pascal Compiler]]. | |
| 109 | + | ||
| 110 | + | ## Multiple Lazarus installs | |
| 111 | + | ||
| 112 | + | 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 | + | ||
| 114 | + | ## Lazarus FAQ | |
| 115 | + | ||
| 116 | + | The Lazarus FAQ - Frequently Asked Questions - page is available [[Lazarus Faq|here]]. | |
| 117 | + | ||
| 118 | + | ## Installing old versions | |
| 119 | + | ||
| 120 | + | See [[Installation hints for old versions]] | |
| 121 | + | ||
| 122 | + | --- | |
| 123 | + | *From the Free Pascal wiki, page "Installing Lazarus on FreeBSD", as it stood on 2024-01-06 after a change by Acm, out of the wiki's dump of 2024-05-26. 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).* | |
| 124 | + | Category: FPC | |
| 125 | + | Category: FreeBSD | |
| 126 | + | Category: Install | |
| 127 | + | Category: Lazarus |
