Installing Lazarus on FreeBSD
Installing Lazarus on FreeBSD
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.
via the Ports tree
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:
# cd /usr/ports/editors/lazarus && make install cleanor
# cd /usr/ports/editors/lazarus-qt5 && make install cleanor
# cd /usr/ports/editors/lazarus-qt6 && make install cleanIf you want use development (aka trunk) version of Lazarus do the following:
# cd /usr/ports/editors/lazarus-devel && make install cleanor
# cd /usr/ports/editors/lazarus-qt5-devel && make install cleanor
# cd /usr/ports/editors/lazarus-qt6-devel && make install cleanNote: Installing Lazarus will also install the Free Pascal Compiler and its source files.
via the pkg system
# pkg install editors/lazarusor
# pkg install editors/lazarus-qt5or
# pkg install editors/lazarus-qt6or
# pkg install editors/lazarus-develor
# pkg install editors/lazarus-qt5-develor
# pkg install editors/lazarus-qt6-develLazarus should install the Free Pascal Compiler source files. If you don't have them, you can add them:
# pkg install lang/fpc-sourceIf 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
via the Lazarus repository
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).
- 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.
- 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.
cd /path/to/lazarus_source
gmake distclean all bigideWhat does the bigide make argument do?
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:
| 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 |
|---|
The above list is sourced from the [Lazarus source directory]/IDE/Makefile.fpc and may be subject to change.
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 Package > Install/Uninstall Packages... dialog.
Installation troubleshooting
Troubleshooting details that should (hopefully) be applicable across platforms may be found in the article Installation Troubleshooting.
Some additional notes for FreeBSD installations can be found in the articles FreeBSD and Installing the Free Pascal Compiler.
Multiple Lazarus installs
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.
Lazarus FAQ
The Lazarus FAQ - Frequently Asked Questions - page is available here.
Installing old versions
See Installation hints for old versions
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.
Edited on wiki.freepascal.org by 2 people, 2019–2024
From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.
| When | Who | What changed |
|---|---|---|
| Trev | New Installation on FreeBSD page | |
| Trev | Content extracted from "Installing Lazarus" page | |
| Trev | Added FreeBSD supported versions (minor) | |
| Trev | Updated for FreeBSD 11 & 12 | |
| Acm | via the Ports tree | |
| Acm | Installing FPC sources | |
| Acm | via the pkg system | |
| Acm | Installing Lazarus on FreeBSD | |
| Acm | Installing Lazarus on FreeBSD | |
| Acm | Installing Lazarus on FreeBSD | |
| Trev | Added languages menu (minor) | |
| Acm | via the Ports tree | |
| Trev | via the Ports tree: Fixed typo (minor) | |
| Trev | via the Ports tree: Updated Lazarus revision (minor) | |
| Trev | via the Lazarus repository: minor tweak for gmake (minor) | |
| Trev | Adjust heading levels (minor) | |
| Trev | What does the bigide make argument do?: New section | |
| Acm | via the Ports tree | |
| Trev | Installation troubleshooting: Add link to Installing the FPC for FreeBSD (minor) | |
| Trev | Add categories and content | |
| Trev | Installing Lazarus on FreeBSD: Updated (minor) | |
| Acm | ||
| Acm | via the Ports tree | |
| Acm | Installing Lazarus on FreeBSD | |
| Acm | via the pkg system | |
| Acm | via the Ports tree | |
| Trev | via the Ports tree: Fix typos (minor) | |
| Trev | via the Ports tree: Fix typos; diff release vs devel versions (minor) | |
| Trev | Installing Lazarus on FreeBSD: Update FreeBSd versions for EOL (minor) | |
| Acm | via the Ports tree | |
| Acm | via the Ports tree | |
| Acm | via the Ports tree | |
| Acm | via the pkg system | |
| Acm | Installing Lazarus on FreeBSD | |
| Acm |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
