Sign in Join

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

Mailing lists / lazarus / 2002-10

I can't compile Lazarus in Mandrake 9 (stupid questionI'm sure)

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Marco van de Voort
to Tony Maro: I didn't run into this in my last distro, but I just put in a fresh install of Mandrake 9…
Show quoted text 16 lines
I didn't run into this in my last distro, but I just put in a fresh install of Mandrake 9 and I'm not sure what's causing this. When I go to make Lazarus, after a bit of compiling scrollby, I get: Free Pascal Compiler version 1.0.7 [2002/10/29] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling lazarus.pp gdkpixbuf.pp(48,13) Fatal: Can't find unit GLIB make[1]: *** [lazarus] Error 1 make[1]: Leaving directory `/home/tonym/lazarus' make: *** [ide] Error 2 I'm not quite sure what it's looking for. I've installed ALL of the linux packs for FPC from the daily snapshot. And I checked my package manager and everything GLIB and pixbuf related is installed.

1) This glib is the interface unit only.

2) The problem is probably a stale .ppu file somewhere that is searching for the old RTL. Adding OPT="-va" (pipe to file!), and examining the output often helps in these cases.

Reply by email

Mattias Gaertner
to Tony Maro: I didn't run into this in my last distro, but I just put in a fresh install of Mandrake 9…
Show quoted text 22 lines
> I didn't run into this in my last distro, but I just put in a fresh > install of Mandrake 9 and I'm not sure what's causing this. When I > go to make Lazarus, after a bit of compiling scrollby, I get: > > Free Pascal Compiler version 1.0.7 [2002/10/29] for i386 > Copyright (c) 1993-2002 by Florian Klaempfl > Target OS: Linux for i386 > Compiling lazarus.pp > gdkpixbuf.pp(48,13) Fatal: Can't find unit GLIB > make[1]: *** [lazarus] Error 1 > make[1]: Leaving directory `/home/tonym/lazarus' > make: *** [ide] Error 2 > > I'm not quite sure what it's looking for. I've installed ALL of the > linux packs for FPC from the daily snapshot. And I checked my > package manager and everything GLIB and pixbuf related is installed. 1) This glib is the interface unit only. 2) The problem is probably a stale .ppu file somewhere that is searching for the old RTL. Adding OPT="-va" (pipe to file!), and examining the output often helps in these cases.

Also make sure that the unitpaths in /etc/fpc.cfg points to your fpc lib directory.

Mattias

Reply by email

Mattias Gaertner
to Mattias Gaertner
Show quoted text 8 lines
Mattias Gaertner said: > > Also make sure that the unitpaths in /etc/fpc.cfg points to your fpc > lib directory. > Aha! Thanks. It seems the samplecfg script included with FPC has changed somewhat.

Right. The samplecfg script is ok, but it is sometimes called with the wrong parameters. For example 'make install' under debian installs under /usr/local/lib and calls samplecfg with /usr/lib. Perhaps this is work for the fpc-team.
OTOH you should have been able to fix this on your own with the lazarus FAQ. We can add a further hint. What do you think, I should add?

Mattias

Show quoted text 18 lines
Where before you would give it /usr/local as the path to FPC, now you must give it /usr/local/lib/fpc/fpc-1.0.7 as the path. Either it changed or I've had it wrong all this time which would make me wonder why my install ever worked to begin with... I've updated my Lazarus install HOWTO to reflect this. Anyway, it works now. Thanks, Tony _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives

Reply by email

Tony Maro
to Mattias Gaertner: On Tue, 29 Oct 2002 17:40:39 +0100 (CET) Also make sure that the unitpaths in…

Mattias Gaertner said:

Also make sure that the unitpaths in /etc/fpc.cfg points to your fpc lib directory.

Aha! Thanks. It seems the samplecfg script included with FPC has changed somewhat. Where before you would give it /usr/local as the path to FPC, now you must give it /usr/local/lib/fpc/fpc-1.0.7 as the path. Either it changed or I've had it wrong all this time which would make me wonder why my install ever worked to begin with...

I've updated my Lazarus install HOWTO to reflect this.

Anyway, it works now.

Thanks,

Tony

Reply by email

Tony Maro
to Mattias Gaertner: On Tue, 29 Oct 2002 17:40:39 +0100 (CET) Also make sure that the unitpaths in…
Mattias Gaertner wrote 10 lines
> > Aha! Thanks. It seems the samplecfg script included with FPC has > changed somewhat. Right. The samplecfg script is ok, but it is sometimes called with the wrong parameters. For example 'make install' under debian installs under /usr/local/lib and calls samplecfg with /usr/lib. Perhaps this is work for the fpc-team. OTOH you should have been able to fix this on your own with the lazarus FAQ. We can add a further hint. What do you think, I should add?

Probably should be in there. I ran the samplecfg by hand last install and this install and got different results. On the older version it added the /fpc/... path stuff to what I gave it (/usr/local), on the recent version it doesn't.

So, FAQ should go something like "I get "can't find unit GLIB" [or other basic library] when compiling Lazarus for the first time" A: "Your fpc.conf file for FPC is either missing or has incorrect paths to the unit files installed with FPC. Check your FPC paths or regenerate it with the samplecfg script included with FPC."

Can anyone cram a few more "FPC"'s in the above for me? I ran out of breath... :-}

To be honest, though, the above Q/A wouldn't have helped me much the first time I tried to run FPC / Lazarus, but I'm not sure how you can be more specific and still apply to all installs of FPC. But for complete newbie's, we do have the HOWTO, and I updated it to take into account this change in samplecfg.

-Tony

Reply by email

Tony Maro

I didn't run into this in my last distro, but I just put in a fresh install of Mandrake 9 and I'm not sure what's causing this. When I go to make Lazarus, after a bit of compiling scrollby, I get:

Free Pascal Compiler version 1.0.7 [2002/10/29] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling lazarus.pp
gdkpixbuf.pp(48,13) Fatal: Can't find unit GLIB
make[1]: *** [lazarus] Error 1
make[1]: Leaving directory `/home/tonym/lazarus'
make: *** [ide] Error 2

I'm not quite sure what it's looking for. I've installed ALL of the linux packs for FPC from the daily snapshot. And I checked my package manager and everything GLIB and pixbuf related is installed.

Thanks,

Reply by email