Sign in Join

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

Mailing lists / fpc-devel / 2006-03

new install on Linux

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Hi,

I am new to developing under Linux and installing fpc/lazarus on Linux. I downloaded the FPC 2.0.2 .tar.gz file. Unpacked it, and ran ./install.sh
Selected /opt/fpc as my install path. Everything seem to have gone fine. Added /opt/fpc/bin to my PATH. Ran fpc -i and got the correct output

If I try and compile any sample application or Lazarus (using make all), I get this error. Fatal: Can't find unit System

The full output is below. Am I supposed to put something else in my path or LD_LIBRARY path to find the fpc compiled units?

I am running Ubuntu 5.10 and have all the dev packages I could find or think of installed.

--------------------------------
make all
Makefile:3511: warning: overriding commands for target `examples' Makefile:3473: warning: ignoring old commands for target `examples' make -C lcl all
make[1]: Entering directory `/opt/lazarus/lcl'
/bin/rm -f units/i386-linux/alllclunits.ppu
/opt/fpc/bin/ppc386 -gl -Fu. -Funonwin32 -Fuwidgetset -Fiinclude -FE. -FUunits/i386-linux -Fl/usr/lib/gcc/i486-linux-gnu/4.0.2 -Fl/usr/lib/libc5-compat -Fl/lib/libc5-compat
-Fl/usr/i486-linuxlibc1/lib -di386 alllclunits.pp
Free Pascal Compiler version 2.0.2 [2005/12/07] for i386 Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Linux for i386
Compiling alllclunits.pp
Fatal: Can't find unit System
Fatal: Compilation aborted
make[1]: *** [alllclunits.ppu] Error 1
make[1]: Leaving directory `/opt/lazarus/lcl'
make: *** [lcl] Error 2

--------------------------------

Regards,
- Graeme -

Reply by email

Peter Vreman
to Graeme Geldenhuys
Show quoted text 16 lines
Hi, I am new to developing under Linux and installing fpc/lazarus on Linux. I downloaded the FPC 2.0.2 .tar.gz file. Unpacked it, and ran ./install.sh Selected /opt/fpc as my install path. Everything seem to have gone fine. Added /opt/fpc/bin to my PATH. Ran fpc -i and got the correct output If I try and compile any sample application or Lazarus (using make all), I get this error. Fatal: Can't find unit System The full output is below. Am I supposed to put something else in my path or LD_LIBRARY path to find the fpc compiled units? I am running Ubuntu 5.10 and have all the dev packages I could find or think of installed.

Use option -vt to see where fpc looks.
Configure paths in fpc.cfg
For the makefiles you can add FPCDIR=/opt/fpc to specify which fpc isntallation it shall use.

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys: I am new to developing under Linux and installing fpc/lazarus on Linux. I downloaded the…

I found the problem. My units folder was located in /opt/fpc/lib/fpc/units!! I expected /opt/fpc/units. Anyway, created a symbolic link in /usr/lib and that sorted the problem. :-)

Regards,
- Graeme -

Graeme Geldenhuys wrote 44 lines
Hi, I am new to developing under Linux and installing fpc/lazarus on Linux. I downloaded the FPC 2.0.2 .tar.gz file. Unpacked it, and ran ./install.sh Selected /opt/fpc as my install path. Everything seem to have gone fine. Added /opt/fpc/bin to my PATH. Ran fpc -i and got the correct output If I try and compile any sample application or Lazarus (using make all), I get this error. Fatal: Can't find unit System The full output is below. Am I supposed to put something else in my path or LD_LIBRARY path to find the fpc compiled units? I am running Ubuntu 5.10 and have all the dev packages I could find or think of installed. -------------------------------- make all Makefile:3511: warning: overriding commands for target `examples' Makefile:3473: warning: ignoring old commands for target `examples' make -C lcl all make[1]: Entering directory `/opt/lazarus/lcl' /bin/rm -f units/i386-linux/alllclunits.ppu /opt/fpc/bin/ppc386 -gl -Fu. -Funonwin32 -Fuwidgetset -Fiinclude -FE. -FUunits/i386-linux -Fl/usr/lib/gcc/i486-linux-gnu/4.0.2 -Fl/usr/lib/libc5-compat -Fl/lib/libc5-compat -Fl/usr/i486-linuxlibc1/lib -di386 alllclunits.pp Free Pascal Compiler version 2.0.2 [2005/12/07] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: Linux for i386 Compiling alllclunits.pp Fatal: Can't find unit System Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory `/opt/lazarus/lcl' make: *** [lcl] Error 2 -------------------------------- Regards, - Graeme -

Reply by email