Thanks. Yes I wanted to get fpc (the compiler) installed from sources
rather than lazarus. Your advice somewhat got me there, but now when I
compile the source/units are not found.

cd /home/myusername
sudo apt-get install fpc
mkdir fpc
svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus
cd fpc
# now i'm at at /home/myusername/fpc/fpc
make all
make FPC=`pwd`/compiler/ppc386 -C compiler installsymlink INSTALL_PREFIX=
/home/myusername
make install INSTALL_PREFIX=/home/myusername
cd /home/myusername

Then I created Hello.pas:

program Hello;

begin
  WriteLn('Hello');
end.

And then:

fpc Hello.pas


Error:

Free Pascal Compiler version 2.7.1 [2012/04/02] for i386
Copyright (c) 1993-2012 by Florian Klaempfl and others
Target OS: Linux for i386
Compiling Hello.pas
Fatal: Can't find unit system used by Hello
Fatal: Compilation aborted
Error: /home/delluser/bin/ppc386 returned an error exitcode
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to