Sign in Join

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

Mailing lists / lazarus / 2012-02

Newb alert: problem rebuilding Lazarus snapshot 0.9.31.35140-20120206 Linux

9 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Hi all,

Trying to port my fpcup FPC/Lazarus installer to Linux.

Tried a Debian unstable x64 VM with xfce.
Installed fpc (got FPC 2.6, ok).
Tried lazarus => got old 0.9.30 version that didn't seem to have lazutils package. Ok, I'll get the snapshot
cd ~
wget
ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.35140-20120206.amd64.deb.tar tar xvf lazarus-0.9.31.35140-20120206.amd64.deb.tar rm *qt*.deb #we're using gtk here, this will error out dpkg -i *.deb
(fiddled some with removing all traces of 0.9.30, rebooting etc)

Worked.
However ran startlazarus, got complaints about instantfpc missing etc.

Tools/build lazarus=>error
../lcl/lclproc.pas(39,2) Fatal: Can't find unit AvgLvlTree used by LCLProc

Lazarus source directory and FPC source directory seem ok in Lazarus options.

Realized I probably had to run this as root; did so; same problem.

What am I doing wrong?

Thanks,
Reinier

Reply by email

Mattias Gaertner
to Reinier Olislagers
Show quoted text 15 lines
Hi all, Trying to port my fpcup FPC/Lazarus installer to Linux. Tried a Debian unstable x64 VM with xfce. Installed fpc (got FPC 2.6, ok). Tried lazarus => got old 0.9.30 version that didn't seem to have lazutils package. Ok, I'll get the snapshot cd ~ wget ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.35140-20120206.amd64.deb.tar tar xvf lazarus-0.9.31.35140-20120206.amd64.deb.tar rm *qt*.deb #we're using gtk here, this will error out dpkg -i *.deb (fiddled some with removing all traces of 0.9.30, rebooting etc)

Reboot is not needed.

Worked. However ran startlazarus, got complaints about instantfpc missing etc.

It probably means you have some 0.9.30.
Check your /etc/lazarus directory.

Tools/build lazarus=>error ../lcl/lclproc.pas(39,2) Fatal: Can't find unit AvgLvlTree used by LCLProc

When updating from 0.9.30 to 0.9.31 you have to do a "make clean all".

Show quoted text 6 lines
Lazarus source directory and FPC source directory seem ok in Lazarus options. Realized I probably had to run this as root; did so; same problem. What am I doing wrong?

Mattias

Reply by email

Mark Morgan Lloyd
to Mattias Gaertner
Mattias Gaertner wrote 5 lines
> Worked. > However ran startlazarus, got complaints about instantfpc missing etc. It probably means you have some 0.9.30. Check your /etc/lazarus directory.

Possibly also something incompatible in ~/.lazarus, although it's normally more of a problem when moving from a newer to an older version.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Reinier Olislagers
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 11 lines
Mattias Gaertner wrote: >> Worked. >> However ran startlazarus, got complaints about instantfpc missing etc. > > It probably means you have some 0.9.30. > Check your /etc/lazarus directory. Possibly also something incompatible in ~/.lazarus, although it's normally more of a problem when moving from a newer to an older version.

Thanks you 2,

I know rebooting is not needed as much in Linux, but sometimes old habits die hard ;)

/etc/lazarus/environmentoptions.xml showed
LazarusDirectory Value="/usr/lib/lazarus/0.9.31/"
which seems ok. Is it? (The directory shows the Lazarus tree, including components, lcl, lazarus, startlazarus...)

When updating from 0.9.30 to 0.9.31 you have to do a "make clean all".

Mmm, I installed & updated using Debian packages (Debian-supplied and those from the snapshot server)... would I still have to do make clean all...?

Some more over the top cleaning:
aptitude purge lazarus lazarus-0.9.31 lazarus-doc lazarus-doc-0.9.31 lazarus-ide lazarus-ide-0.9.31 lazarus-ide-gtk2 lazarus-ide-gtk2-0.9.31 lazarus-ide-qt-0.9.30.2 lazarus-src lazarus-src-0.9.31

rm -rf /etc/lazarus
rm -rf /usr/lib/lazarus
rm -rf /root/.lazarus
rm -rf /home/pascaldev/.lazarus
ls -al /etc/alternatives | grep "0.9.30" => shows nothing (there's only links to 0.9.31)...
cd /root
dpkg -i *.deb

Starting startlazarus gives same errors about instantfpc; compiling my project gives same error "Can't find unit AvgLvlTree used by LCLProc"

I think I should go back to my first snapshot of the VM (with just fpc 2.6 installed) and start over....

Thanks,
Reinier

Reply by email

Mattias Gaertner
to Reinier Olislagers

Reinier Olislagers hat am 6. Februar 2012 um
10:39 geschrieben:

Show quoted text 5 lines
On 6-2-2012 10:05, Mark Morgan Lloyd wrote: > Mattias Gaertner wrote: > >>> Worked. >>> However ran startlazarus, got complaints about instantfpc missing

etc.

Show quoted text 6 lines
>> >> It probably means you have some 0.9.30. >> Check your /etc/lazarus directory. > > Possibly also something incompatible in ~/.lazarus, although it's > normally more of a problem when moving from a newer to an older

version.

Show quoted text 16 lines
> Thanks you 2, I know rebooting is not needed as much in Linux, but sometimes old habits die hard ;) /etc/lazarus/environmentoptions.xml showed LazarusDirectory Value="/usr/lib/lazarus/0.9.31/" which seems ok. Is it? (The directory shows the Lazarus tree, including components, lcl, lazarus, startlazarus...) >When updating from 0.9.30 to 0.9.31 you have to do a "make clean all". Mmm, I installed & updated using Debian packages (Debian-supplied and those from the snapshot server)... would I still have to do make clean all...?

No. I didn't know that debian has packages for 0.9.31 - that's a development version.

Show quoted text 17 lines
Some more over the top cleaning: aptitude purge lazarus lazarus-0.9.31 lazarus-doc lazarus-doc-0.9.31 lazarus-ide lazarus-ide-0.9.31 lazarus-ide-gtk2 lazarus-ide-gtk2-0.9.31 lazarus-ide-qt-0.9.30.2 lazarus-src lazarus-src-0.9.31 rm -rf /etc/lazarus rm -rf /usr/lib/lazarus rm -rf /root/.lazarus rm -rf /home/pascaldev/.lazarus ls -al /etc/alternatives | grep "0.9.30" => shows nothing (there's only links to 0.9.31)... cd /root dpkg -i *.deb Starting startlazarus gives same errors about instantfpc;

What error?

compiling my project gives same error "Can't find unit AvgLvlTree used by

LCLProc"

Compile with compiler options -vut to find out why.

I think I should go back to my first snapshot of the VM (with just fpc 2.6 installed) and start over....

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120206/90d006d9/attachment.html>

Reply by email

Reinier Olislagers
to Mattias Gaertner

Thanks for the help, Mattias...

Mattias Gaertner wrote 9 lines
Reinier Olislagers hat am 6. Februar 2012 um 10:39 geschrieben: > > >When updating from 0.9.30 to 0.9.31 you have to do a "make clean all". > Mmm, I installed & updated using Debian packages (Debian-supplied and > those from the snapshot server)... would I still have to do make clean > all...? No. I didn't know that debian has packages for 0.9.31 - that's a development version.

That's what I'm trying to say: I got the old version from Debian (unstable), the new version from
ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.35140-20120206.amd64.deb.tar

> Starting startlazarus gives same errors about instantfpc; What error?

Meanwhile, restarted from clean VM+Debian supplied FPC 2.6 Installed Lazarus from snapshot debs as before.
Running startlazarus, I get this:
TMainIDE.ParseCmdLineOptions:
PrimaryConfigPath="/home/pascaldev/.lazarus"
SecondaryConfigPath="/etc/lazarus"
NOTE: codetools config file not found - using defaults invalid Package Link: file
"/usr/lib/lazarus/0.9.31/components/lazutils/lazutils.lpk" does not exist. invalid Package Link: file
"/usr/lib/lazarus/0.9.31/lcl/interfaces/lcl.lpk" does not exist. invalid Package Link: file
"/usr/lib/lazarus/0.9.31/components/instantfpc/instantfpclaz.lpk" does not exist.
TLazPackageGraph.OpenInstalledDependency InstantFPCLaz 0.0 0 invalid Package Link: file
"/usr/lib/lazarus/0.9.31/components/externhelp/externhelp.lpk" does not exist.
TLazPackageGraph.OpenInstalledDependency ExternHelp 0.0 0 TMainIDE.DoNewProject A

> compiling my project gives same error "Can't find unit AvgLvlTree used by LCLProc" Compile with compiler options -vut to find out why.

...
Load from FORMS (interface) unit AVGLVLTREE
(AVGLVLTREE) Loading unit AVGLVLTREE
Unitsearch: AvgLvlTree.ppu
Searching file AvgLvlTree.ppu... not found
....
/usr/lib/lazarus/0.9.31/lcl/forms.pp(43,9) Fatal: Can't find unit AvgLvlTree used by Forms
(avglvltree.pas is in
/usr/lib/lazarus/0.9.31/components/lazutils/avglvltree.pas)

Could the snapshot perhaps be broken? I can try an SVN checkout as well...

Thanks,
Reinier

Reply by email

Mattias Gaertner
to Reinier Olislagers

Reinier Olislagers hat am 6. Februar 2012 um
12:10 geschrieben:

Show quoted text 7 lines
Thanks for the help, Mattias... On 6-2-2012 11:19, Mattias Gaertner wrote: > Reinier Olislagers hat am 6. Februar 2012 > um 10:39 geschrieben: >> >> >When updating from 0.9.30 to 0.9.31 you have to do a "make clean

all".

Show quoted text 8 lines
>> Mmm, I installed & updated using Debian packages (Debian-supplied and >> those from the snapshot server)... would I still have to do make clean >> all...? > No. I didn't know that debian has packages for 0.9.31 - that's a > development version. That's what I'm trying to say: I got the old version from Debian (unstable), the new version from

ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.35140-20120206.amd64.deb.tar

Show quoted text 13 lines
>> Starting startlazarus gives same errors about instantfpc; > What error? Meanwhile, restarted from clean VM+Debian supplied FPC 2.6 Installed Lazarus from snapshot debs as before. Running startlazarus, I get this: TMainIDE.ParseCmdLineOptions: PrimaryConfigPath="/home/pascaldev/.lazarus" SecondaryConfigPath="/etc/lazarus" NOTE: codetools config file not found - using defaults invalid Package Link: file "/usr/lib/lazarus/0.9.31/components/lazutils/lazutils.lpk" does not

exist.

Show quoted text 5 lines
invalid Package Link: file "/usr/lib/lazarus/0.9.31/lcl/interfaces/lcl.lpk" does not exist. invalid Package Link: file "/usr/lib/lazarus/0.9.31/components/instantfpc/instantfpclaz.lpk" does not exist.

It seems the debs do not install all files or install them in the wrong place.

[...] Could the snapshot perhaps be broken? I can try an SVN checkout as

well...

Yes, the snapshot needs to be checked.

Mattias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120206/26155be9/attachment.html>

Reply by email

zeljko
to Reinier Olislagers: Thanks for the help, Mattias... That's what I'm trying to say: I got the old version from…
Reinier Olislagers wrote 62 lines
Thanks for the help, Mattias... On 6-2-2012 11:19, Mattias Gaertner wrote: > Reinier Olislagers hat am 6. Februar 2012 > > um 10:39 geschrieben: >> >When updating from 0.9.30 to 0.9.31 you have to do a "make clean all". >> >> Mmm, I installed & updated using Debian packages (Debian-supplied and >> those from the snapshot server)... would I still have to do make clean >> all...? > > No. I didn't know that debian has packages for 0.9.31 - that's a > development version. That's what I'm trying to say: I got the old version from Debian (unstable), the new version from ftp://ftp.hu.freepascal.org/pub/lazarus/snapshots/lazarus-0.9.31.35140-2012 0206.amd64.deb.tar >> Starting startlazarus gives same errors about instantfpc; > > What error? Meanwhile, restarted from clean VM+Debian supplied FPC 2.6 Installed Lazarus from snapshot debs as before. Running startlazarus, I get this: TMainIDE.ParseCmdLineOptions: PrimaryConfigPath="/home/pascaldev/.lazarus" SecondaryConfigPath="/etc/lazarus" NOTE: codetools config file not found - using defaults invalid Package Link: file "/usr/lib/lazarus/0.9.31/components/lazutils/lazutils.lpk" does not exist. invalid Package Link: file "/usr/lib/lazarus/0.9.31/lcl/interfaces/lcl.lpk" does not exist. invalid Package Link: file "/usr/lib/lazarus/0.9.31/components/instantfpc/instantfpclaz.lpk" does not exist. TLazPackageGraph.OpenInstalledDependency InstantFPCLaz 0.0 0 invalid Package Link: file "/usr/lib/lazarus/0.9.31/components/externhelp/externhelp.lpk" does not exist. TLazPackageGraph.OpenInstalledDependency ExternHelp 0.0 0 TMainIDE.DoNewProject A >> compiling my project gives same error "Can't find unit AvgLvlTree used > > by LCLProc" > Compile with compiler options -vut to find out why. ... Load from FORMS (interface) unit AVGLVLTREE (AVGLVLTREE) Loading unit AVGLVLTREE Unitsearch: AvgLvlTree.ppu Searching file AvgLvlTree.ppu... not found .... /usr/lib/lazarus/0.9.31/lcl/forms.pp(43,9) Fatal: Can't find unit AvgLvlTree used by Forms (avglvltree.pas is in /usr/lib/lazarus/0.9.31/components/lazutils/avglvltree.pas) Could the snapshot perhaps be broken? I can try an SVN checkout as well...

I have such errors when searching for bugs in past revisions, make bigideclean fixes things and then make bigide LCL_PLATFORM=YOURPLATFORM

zeljko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120206/9969d1d8/attachment-0001.html>

Reply by email

Reinier Olislagers
to zeljko
zeljko wrote 20 lines
On Monday 06 of February 2012 12:10:33 Reinier Olislagers wrote: > Load from FORMS (interface) unit AVGLVLTREE > (AVGLVLTREE) Loading unit AVGLVLTREE > Unitsearch: AvgLvlTree.ppu > Searching file AvgLvlTree.ppu... not found > .... > /usr/lib/lazarus/0.9.31/lcl/forms.pp(43,9) Fatal: Can't find unit > AvgLvlTree used by Forms > (avglvltree.pas is in > /usr/lib/lazarus/0.9.31/components/lazutils/avglvltree.pas) > Could the snapshot perhaps be broken? I can try an SVN checkout as well... I have such errors when searching for bugs in past revisions, make bigideclean fixes things and then make bigide LCL_PLATFORM=YOURPLATFORM zeljko

Thanks zeljko, in the mean time I was able to get an SVN version compiled and I'm now happily debugging all the Windows-centric errors I made and hoping to come up with a Linux version (and then an OSX version) so I will hopefully never have to do this again ;)

Regards,
Reinier

Reply by email