Wiki copymirror

This is a mirror of the wiki at pascal.chat. Editing, history and sign-in are there.

Installing Lazarus on FreeBSD

Installing Lazarus on FreeBSD

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.

via the Ports tree

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:

bash
# cd /usr/ports/editors/lazarus && make install clean

or

bash
# cd /usr/ports/editors/lazarus-qt5 && make install clean

or

bash
# cd /usr/ports/editors/lazarus-qt6 && make install clean

If you want use development (aka trunk) version of Lazarus do the following:

bash
# cd /usr/ports/editors/lazarus-devel && make install clean

or

bash
# cd /usr/ports/editors/lazarus-qt5-devel && make install clean

or

bash
# cd /usr/ports/editors/lazarus-qt6-devel && make install clean

Note: Installing Lazarus will also install the Free Pascal Compiler and its source files.

via the pkg system

bash
# pkg install editors/lazarus

or

bash
# pkg install editors/lazarus-qt5

or

bash
# pkg install editors/lazarus-qt6

or

bash
# pkg install editors/lazarus-devel

or

bash
# pkg install editors/lazarus-qt5-devel

or

bash
# pkg install editors/lazarus-qt6-devel

Lazarus should install the Free Pascal Compiler source files. If you don't have them, you can add them:

bash
# pkg install lang/fpc-source

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

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).

bash
  cd /path/to/lazarus_source
  gmake distclean all bigide

What does the bigide make argument do?

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 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.

Revision 1, last changed by WikiArchive .