Mattias Gaertner wrote:
On Sun, 17 Sep 2006 08:11:51 +0700
Colin Lehmann <[EMAIL PROTECTED]> wrote:

Mattias Gaertner wrote:
On Sat, 16 Sep 2006 17:56:09 +0700
Colin Lehmann <[EMAIL PROTECTED]> wrote:

Mattias Gaertner wrote:
On Sat, 16 Sep 2006 17:17:18 +0700
Colin Lehmann <[EMAIL PROTECTED]> wrote:

[...]
How did you install FPC (i.e. Free Pascal)?
Normally the install scripts install a valid /etc/fpc.cfg.

That's the second time this week, that someone downloaded FPC
and the installation does not create the fpc.cfg. What did you
download and how did you install FPC?
[...] I downloaded fpc-2.0.4.i386-linux.tar from sourceforge.com I am
pretty sure, I went for the .tar file as I am running Ubuntu
which can unpack .tar files.
Should I download another? I have unpacked this file three times
now with the same result.
Check:
- download fpc-2.0.4.i386-linux.tar
- unpack the file
- run on terminal:
sudo sh install.sh

The last step should install the /etc/fpc.cfg.

By the way:

There are packages for ubuntu for fpc. Look for 'debian' on the
fpc download site.

Or download them here:
http://sourceforge.net/project/showfiles.php?group_id=89339&package_id=204004&release_id=447674
You need almost all of them.


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Did all that and it worked hard but at the end I got '/usr/bin/ld: cannot find -lglib
lazarus.pp(113,1) Error: Error while linking

so it looks like it compiled OK, but got into a problem while
linking?
Yes. Your Free Pascal and Lazarus installation is now complete.
Now depending on what you want to do with it you need to install
some packages.
Install
libgdk-pixbuf-dev libgtk1.2-dev

See also
http://wiki.lazarus.freepascal.org/Installing_Lazarus

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

I am still working on it, here is the latest...

Target OS: Linux for i386
Compiling lazarus.pp
Fatal: Can't find unit Interfaces
Fatal: Compilation aborted
make[2]: *** [lazarus] Error 1
make[2]: Leaving directory
`/home/colin/lazarus-0.9.16/usr/lib/lazarus/ide' make[1]: *** [ide]
Error 2 make[1]: Leaving directory
`/home/colin/lazarus-0.9.16/usr/lib/lazarus/ide' make: *** [ide]
Error 2



Mattias, how can you say "Your Free Pascal and Lazarus installation
is now complete." when it failed to link? The last time I used a
'Compile & Link' type interface the linking was critical, if it
didn't link there was nothing to execute....

Sorry, for the misunderstanding. I will try to explain a few things:
A program is first compiled and then linked.

Your first reported error was that unit glib not found. This was
a compiler error. Your fpc was not installed properly.

Your second error was -lglib not found. This is a *linker* error and
this typically means the compilation worked, so your FPC and Lazarus is
completely there. Only some of the external libraries were missing. You
installed the gtk1.2 libs. This should have fixed the linker error.

Now you got a compiler error again (unit interfaces not found), so
something of FPC and/or Lazarus has changed.

Then you need to recompile Lazarus clean: cd path/to/lazarus
make clean all

I have a question about your paths:
/home/colin/lazarus-0.9.16/usr/lib/lazarus/ide

This path looks rather untypical. Did you create
the /home/colin/lazarus-0.9.16/usr/lib/ path manually or was it
created by some installer?


Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Mattius, I had a long session on XChat with Andrew this morning and with his expertise we finally got Lazarus to work. He went off for a sleep and I played with Lazarus. The first project I tried came up with 'Can't find unit Interfaces' and that is where I stalled, I simply cannot find :

Is it looking for the unit interfaces or the Interface unit?
Where are they going to be?
How do I tell Lazarus/fpc where they are when/if I find them?

I am getting heartily sick of typing the path to the lazarus directory, Andrew gave me a shortcut string "sudo ln -sf &(pwd) /lazarus/usr/bin" but that can't find a directory (which one?) either...

Colin

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to