[fpc-pascal] Linux Install: Is it me or the documentation? ;-)

Michael Van Canneyt michael at freepascal.org
Mon Oct 30 09:10:45 CET 2006



On Mon, 30 Oct 2006, Lev Lafayette wrote:

> On Sat, 2006-10-28 at 15:58 +0200, Michael Van Canneyt wrote:
> > 
> > On Sat, 28 Oct 2006, Lev Lafayette wrote:
> > 
> > > 
> > > First let me say how pleased I am to discover FreePascal. 'Twas my
> > > favourite programming language way back around 1988-89, being the last
> > > time I put my serious programming goggles on.
> > > 
> > > So I'm trying to set this leopard up on Ubuntu (the Badger variety) and
> > > am following the user manual.
> > > 
> > > Downloaded the .tar file; extracted to a temporary directory. (p11)
> > > 
> > > Ran the install script as root (or rather, equivalent thereof)
> > > sudo ./install.sh and accepted all defaults (p12)
> > > 
> > > Ran the test 'fpc hello' (p14). It fails. Run it will full directory
> > > listing, even tho' config has been written to /etc. Still fails.
> > 
> > Ehm. What is the error you get ?
> 
> 
> lev at hedgehog:/usr/local/lib/fpc/2.0.4/units$ fpc hello
> Free Pascal Compiler version 2.0.4 [2006/08/20] for i386
> Copyright (c) 1993-2006 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling hello.pp
> hello.pp(6,3) Error: Can't create object file: hello.o
> hello.pp(6,3) Fatal: Can't create object hello.o
> hello.pp(6,3) Fatal: Compilation aborted
> Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you
> did not specify a source file to be compiled)

This is normal, you don't have write permission in usr/local/lib/fpc/2.0.4/units,
it's owned by root. 

> 
> Ran it as sudo as well
> 
> lev at hedgehog:/usr/local/lib/fpc/2.0.4/units$ sudo fpc hello
> Password:
> Free Pascal Compiler version 2.0.4 [2006/08/20] for i386
> Copyright (c) 1993-2006 by Florian Klaempfl
> Target OS: Linux for i386
> Compiling hello.pp
> Linking hello
> hello.pp(6,3) Error: Util ld not found, switching to external linking
> Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you
> did not specify a source file to be compiled)

This means you don't have the gnu binutils (as, ld) installed.
Just install them using the Ubuntu package manager, and all 
should be well. The package should be called binutils.

Michael.



More information about the fpc-pascal mailing list