Finally I have installed Lazarus on FreeBSD. It involved lots of learning and experimentation, but not it's done
My problem is now that when loading the IDE I get a message saying that "The Free Pascal source directory was not found", and that "Some code functions will not work." Ignoring this message will allow the default empty project to compile and run, but when placing controls and double clicking on them, further errors pop up saying that sources could not be found.
I tried to point the FPC Source Directory field in the Environment Options window to a suitable directory, but it seems that I do not have the FPC sources. To install I compiled everything from source:
#cd /usr/ports/editors/lazarus
#make install clean
The lazarus and fpc related packages that I have installed are as follows:
#pkg_info
(snippet)
lazarus-0.9.18_2 A portable Delphi-like IDE for the FreePascal compiler
fpc-2.0.4_1 Free Pascal compiler with Turbo and Delphi
fpc-base-2.0.4 Meta package to install all of the Free Pascal base
fpc-bfd-2.0.4_1 Free Pascal interface for the GNU Binary Format description
fpc-docs-2.0.4 Free Pascal compiler Adobe Acrobat(tm) documentation
fpc-fcl-2.0.4_1 Free Pascal Component Library
fpc-fftw-2.0.4_1 Free Pascal interface to the FFTW3 library
fpc-forms-2.0.4_1 X-Forms interface for Free Pascal
fpc-fpgtk-2.0.4_1 Free Component Library for create programs with gtk
fpc-fv-2.0.4 FreeVision is a Free Pascal unit for Delphi support
fpc-gconf-2.0.4_1 Free Pascal interface to GConf
fpc-gdbint-2.0.4 Free Pascal unit providing interface to gdb
fpc-gdbm-2.0.4_1 Free Pascal interface to the GNU database system
fpc-ggi-2.0.4_1 Free Pascal interface to libggi
fpc-gnome-2.0.4 Free Pascal unit to create programs for GNOME 1
fpc-graph-2.0.4 Free Pascal interface to graphical applications
fpc-gtk-2.0.4_1 Free Pascal interface to the GTK libraries
fpc-gtk2-2.0.4_1 Free Pascal interface to the GTK2 libraries
fpc-hash-2.0.4 Free Pascal unit for MD5 hash routines
fpc-ibase-2.0.4_1 Free Pascal interface to interbase
fpc-ide-2.0.4 Free Pascal integrated IDE/compiler
fpc-imlib-2.0.4_1 Free Pascal interface to imlib library
fpc-libasync-2.0.4 Free Pascal interface to async library
fpc-libgd-2.0.4_1 Free Pascal interface to libgd for producing graphics files
fpc-libpng-2.0.4_1 Free Pascal interface to libpng, for reading PNG image file
fpc-mysql-2.0.4_1 Free Pascal interface to MySQL
fpc-ncurses-2.0.4 Free Pascal interface to the ncurses library
fpc-netdb-2.0.4 Pure-pascal netdb implementation
fpc-odbc-2.0.4_1 Free Pascal interface to ODBC
fpc-opengl-2.0.4_1 Free Pascal interface to the OpenGL library
fpc-oracle-2.0.4_1 Free Pascal interface to Oracle
fpc-pasjpeg-2.0.4 Handling JPEG files with Pascal
fpc-paszlib-2.0.4 Free Pascal unit for native compression IO
fpc-postgres-2.0.4_1 Free Pascal interface to PostGreSQL
fpc-pthreads-2.0.4 Free Pascal wraper for the pthreads library
fpc-regexpr-2.0.4 Free Pascal regular expression routines
fpc-sqlite-2.0.4_1 Free Pascal interface to SQLite
fpc-svgalib-2.0.4_1 Free Pascal interface to the SVGA graphics library
fpc-syslog-2.0.4 Free Pascal interface to the system logger
fpc-tcl-2.0.4_1 Free Pascal interface to the tcl/tk interpreter
fpc-units-2.0.4 A meta port to install Free Pascal units
fpc-unzip-2.0.4_1 Free Pascal routines for unzipping zip files
fpc-utils-2.0.4 Free Pascal Compiler utils
fpc-utmp-2.0.4 Free Pascal unit to gather information from the utmp file
fpc-x11-2.0.4_1 Free Pascal interface to X windows server
fpc-zlib-2.0.4 Free Pascal interface to the zlib compression library
fpc-zvt-2.0.4_1 Free Pascal interface to Zed's Virtual Terminal
I have been unable to install the binary distribution as it still does not work for me:
#pkg_add -r lazarus
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/lazarus.tbz: File unavailable (e.g., file not found, no access)
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/lazarus.tbz' by URL
Although I have used cvsup to update to STABLE sources and STABLE ports tree, my system is still thinking it is the RELEASE version. The problem is that I don't know what to change to set the system to the STABLE version. (I did rebuild world after cvsup, though).
How can I stop Lazarus complaining about the missing sources? Should I download and install these? If yes, from where? Maybe these should be added as a dependency to the Lazarus package?
Any suggestions would be greatly welcome.
Cheers!
Edwin