Recent

Author Topic: Lazarus 0.9.29 error compiling (ubuntu 10.04)  (Read 12153 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Lazarus 0.9.29 error compiling (ubuntu 10.04)
« on: July 19, 2010, 12:54:13 pm »
I've downloaded from the following page

http://www.hu.freepascal.org/lazarus/

Linux AMD64 debs file Lazarus lazarus-0.9.29.26103-20100621.amd64.deb.tar

I install everything correctly but when I go to add lazreport and recompile, I returned the following errors. It happens on any new component that I go to install. Why?


make: Entering directory `/usr/lib/lazarus/0.9.29'
/usr/bin/make -C ide all
make[1]: Entering directory `/usr/lib/lazarus/0.9.29/ide'
../tools/svn2revisioninc .. revision.inc
/usr/bin/make --assume-new=lazarus.pp lazarus
make[2]: Entering directory `/usr/lib/lazarus/0.9.29/ide'
/usr/bin/fpc -gl -dlclgtk2 -Fu../lcl/units/x86_64-linux -Fu../lcl/units/x86_64-linux/gtk2 -Fu../components/codetools/units/x86_64-linux -Fu../components/synedit/units/x86_64-linux -Fu../components/custom -Fu../components/mpaslex -Fu../ideintf/units/x86_64-linux -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../packager/units/x86_64-linux -Fu../units/x86_64-linux -Fuframes -Fu. -Fu/usr/lib/fpc/2.4.0/units/x86_64-linux/rtl -Fu/usr/lib/fpc/2.4.0/units/x86_64-linux/regexpr -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/4.4.3 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/home/francesco/.lazarus/idemake.cfg -dx86_64 lazarus.pp
Free Pascal Compiler version 2.4.0-2 [2010/03/06] for x86_64
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling lazarus.pp
Compiling resource ../units/x86_64-linux/lazarus.or
/usr/lib/lazarus/0.9.29/ide/lazarus.pp(127,1) Error: Error while compiling resources
/usr/lib/lazarus/0.9.29/ide/lazarus.pp(127,1) Fatal: There were 1 errors compiling module, stopping
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #1 on: July 20, 2010, 08:15:12 am »
Help please  :o
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #2 on: July 20, 2010, 12:04:06 pm »
Permission problem? Make sure you have write access to /usr/lib/lazarus (and folders below)

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #3 on: July 20, 2010, 12:48:18 pm »
For security, I went into /usr/lib/

and typed the following command

sudo chmod 777 -R lazarus

This would solve the second what you say. Instead, the issue is still there.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #4 on: July 21, 2010, 03:19:17 pm »
No idea on that?
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4709
  • I like bugs.
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #5 on: July 21, 2010, 11:34:54 pm »
No idea on that?

The rights must be enough for /usr/lib/ directory. You should either install as root or install to your home directory as normal user.

Juha
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #6 on: July 22, 2010, 05:21:04 am »
Well since he's been able to compile ide units, I don't think permission is the problem then. Anyone know what resource compiler is used on Unix platforms?

@xinyman:
Please right-click messages window and choose "copy all and hidden messages", paste the result here (just 10 lines around the linker error message).

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #7 on: July 22, 2010, 07:58:12 am »
Well since he's been able to compile ide units, I don't think permission is the problem then. Anyone know what resource compiler is used on Unix platforms?

@xinyman:
Please right-click messages window and choose "copy all and hidden messages", paste the result here (just 10 lines around the linker error message).


is what I did in the first post
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Leledumbo

  • Hero Member
  • *****
  • Posts: 8836
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #8 on: July 22, 2010, 09:24:10 am »
Hmm...very unclear. I used to get this too, but I forgot how to solve it. Sorry, this is the best I can think of right now.

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #9 on: July 22, 2010, 09:43:19 am »
Ok thank you. If you should come to mind let me know. To clarify, I have a 64-bit architecture.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

xinyiman

  • Hero Member
  • *****
  • Posts: 2261
    • Lazarus and Free Pascal italian community
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #10 on: July 23, 2010, 07:56:21 am »
Solved: I uninstalled the old version, deleted the /usr/lib/lazarus and /home/$user/.lazarus

and so I reinstalled

svn co http://svn.freepascal.org/svn/lazarus/trunk lazarus

make

Now everything works! I avoided using the Daily Snapshots.
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

chrgra

  • Jr. Member
  • **
  • Posts: 69
Re: Lazarus 0.9.29 error compiling (ubuntu 10.04)
« Reply #11 on: October 01, 2010, 09:10:50 pm »
Had today the same problem.

For mine the install was sparring with a former installation (the default deb for ubuntu /usr/lib/lazarus/092....) while the install from the sources installs in usr/local/share/lazarus.

So the simplest solution is to remove /usr/lib/lazarus and ~/.lazarus. and reinstall. Than at first startup lazarus complains that /usr/lib/lazarus/09... does not exist. Let it complain.
I hope this helps

Regards Chris

 

TinyPortal © 2005-2018