Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-09

making lazarus from source failed (linux mint)

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Xiangrong Fang

Hi All,

As I cannot find fpc 2.6.4 for linux mint (the highest version for deb package is 2.4.2). I need to compile lazarus from source (as the official deb package depends on fpc 2.6.4, while the mint system only provide 2.6.2).

I got this error: Fatal: (10022) Can't find unit system used by fcllaz

This is a "famous" error. I checked google, and know that it probably caused by some directory configuration problems.

The command being executed by the make file is:

/usr/share/fpc-2.6.4/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pas

I don't know where does the options come from (especially the -FU option), probably a fpc.cfg file somewhere. My fpc was installed by the official install.sh script to my local dir, and I moved the entire directory to /usr/share/fpc-2.6.4 made a symbol link /usr/share/fpc, then added that directory to $PATH.

Could anyone explain how FPC find its configuration file, and how to solve the compile problem?

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150917/f40a78bf/attachment.html>

Reply by email

Juha Manninen
to Xiangrong Fang
Xiangrong Fang wrote
As I cannot find fpc 2.6.4 for linux mint (the highest version for deb package is 2.4.2). I need to compile lazarus from source (as the official deb package depends on fpc 2.6.4, while the mint system only provide 2.6.2).

Lazarus project provides DEB packages also for FPC :

http://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.4.2/

My suggestion : delete FPC completely, then use that package.

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150917/85dcf525/attachment.html>

Reply by email

Graeme Geldenhuys
to Xiangrong Fang: As I cannot find fpc 2.6.4 for linux mint (the highest version for deb package is 2.4.2).…
Xiangrong Fang wrote
I need to compile lazarus from source (as the official deb package depends on fpc 2.6.4, while the mint system only provide 2.6.2).

The joys of package management and its dependency hell! To solve the problem forever, simply install FPC from the official FPC installer (no root access is required either). Download it from the SourceForge page. This has worked for me on Windows, Linux and FreeBSD for the last 5 years without error.

I got this error: Fatal: (10022) Can't find unit system used by fcllaz

Your FPC isn't installed correctly. Check your /etc/fpc.cfg file and your $HOME/.fpc.cfg file.

I suggest you uninstall all existing FPC's, remove all fpc.cfg files (see above locations), then use the official installer from SourceForge and install FPC is something like $HOME/devel/fpc-2.6.4/

Can you compile a simple console program from the command line?

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp

Reply by email

Mark Morgan Lloyd
to Graeme Geldenhuys
Graeme Geldenhuys wrote 10 lines
On 2015-09-17 at 23:42, Xiangrong Fang wrote: > I need to compile lazarus from source (as the > official deb package depends on fpc 2.6.4, while the mint system only > provide 2.6.2). The joys of package management and its dependency hell! To solve the problem forever, simply install FPC from the official FPC installer (no root access is required either). Download it from the SourceForge page. This has worked for me on Windows, Linux and FreeBSD for the last 5 years without error.

I agree, and the installation bundle includes a script which puts things in a suitable place and generates an fpc.cfg which is almost always OK.

I can't speak for Mint but 2.6.4- as available at Sourceforge etc.- is fine on any half-recent Debian (definitely "Lenny" onwards), and once that's running you can compile later versions (e.g. the development trunk) or if you really have to older ones.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email