Lazarus fails to install correctly

This forum is a new user friendly zone. If you're new and have questions, this is the place to get started.
abtaylr
Posts: 5
Joined: Thu Sep 10, 2015 1:49 am

Lazarus fails to install correctly

Postby abtaylr » Mon Nov 16, 2015 7:25 pm

I am getting the following errors:

/usr/local/lib/libpangocairo-1.0.so.0: undefined reference to `pango_renderer_get_alpha'
make[3]: *** [lazarus] Error 1
make[2]: *** [idepkg] Error 2
make[1]: *** [idepkg] Error 2
/home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Error: (9013) Error while linking
/home/arlen/Development/FreePascal/lazarus/ide/lazarus.pp(167,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Makefile:4004: recipe for target 'lazarus' failed
make[3]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide'
Makefile:4430: recipe for target 'idepkg' failed
make[2]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/ide'
Makefile:3074: recipe for target 'idepkg' failed
make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus'
Error: (lazarus) Build IDE: stopped with exit code 512
Error: (lazarus) Building IDE: Building IDE failed.
Makefile:3076: recipe for target 'useride' failed
make: *** [useride] Error 2
strip: 'lazarus': No such file
strip: 'startlazarus': No such file

Free Pascal and Lazarus install complete

setup.sh: 292: setup.sh: ./lazarus: not found
arlen@Dumbledore:~/Development$ Reusing existing ksycoca
Recreating ksycoca file ("/home/arlen/.cache/ksycoca5_en_oVS3ngZDraS4znFEzPH6EMx6IwM=", version 303)
Still in the time dict (i.e. deleted files) ("apps")
modified: "/home/arlen/.local/share/applications/lazarus.desktop"

I am using the setup.sh routine. I am on a Kubuntu 15.10 64bit computer. I have examined the Makefile, but references to Makefile: 4430 and Makefile:4004 don't make sense. The Makefile only goes to line 3263.

abtaylr
Posts: 5
Joined: Thu Sep 10, 2015 1:49 am

Re: Lazarus fails to install correctly

Postby abtaylr » Mon Nov 16, 2015 9:59 pm

The reference to /home/arlen/.local/share/applications/lazarus.desktop refers to a file containing:

[Desktop Entry]

Name=Lazarus Nightly Build
Comment=A free pascal development environment
Exec=/home/arlen/Development/FreePascal/lazarus/lazarus.sh
Icon=/home/arlen/Development/FreePascal/lazarus/images/icons/lazarus_orange.ico
Terminal=false
Type=Application
Categories=Development;IDE;
X-Desktop-File-Install-Version=0.22

abtaylr
Posts: 5
Joined: Thu Sep 10, 2015 1:49 am

Re: Lazarus fails to install correctly

Postby abtaylr » Tue Nov 17, 2015 3:57 am

This error message is from the most recent attempt to install Lazarus:

Everything is Ok

Folders: 772
Files: 8938
Size: 147601468
Compressed: 19385109
make: execvp: ./tools/install/get_lazarus_version.sh: Permission denied
make -C packager/registration
make[1]: Entering directory '/home/arlen/Development/FreePascal/lazarus/packager/registration'
/bin/rm -f ../units/x86_64-linux/fcllaz.ppu
/bin/mkdir -p ../units/x86_64-linux
/home/arlen/Development/FreePascal/fpc/bin/ppcx64 -MObjFPC -Scghi -O1 -g -gl -l -vewnhibq -Fu. -FE. -FU../units/x86_64-linux -Cg -dx86_64 fcllaz.pas
Hint: (11030) Start of reading config file /home/arlen/.fpc.cfg
Hint: (11031) End of reading config file /home/arlen/.fpc.cfg
Free Pascal Compiler version 3.1.1 [2015/11/16] for x86_64
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling fcllaz.pas
Fatal: (10022) Can't find unit system used by fcllaz
Fatal: (1018) Compilation aborted
Makefile:2702: recipe for target 'fcllaz.ppu' failed
make[1]: *** [fcllaz.ppu] Error 1
make[1]: Leaving directory '/home/arlen/Development/FreePascal/lazarus/packager/registration'
Makefile:3050: recipe for target 'registration' failed
make: *** [registration] Error 2
setup.sh: 260: setup.sh: ./lazbuild: not found
make: execvp: ./tools/install/get_lazarus_version.sh: Permission denied
./lazbuild --lazarusdir=. --build-ide=
make: ./lazbuild: Command not found
Makefile:3076: recipe for target 'useride' failed
make: *** [useride] Error 127
strip: 'lazarus': No such file
strip: 'lazbuild': No such file
strip: 'startlazarus': No such file

Free Pascal and Lazarus install complete

setup.sh: 292: setup.sh: ./lazarus: not found
arlen@Dumbledore:~/Development$ Reusing existing ksycoca
Recreating ksycoca file ("/home/arlen/.cache/ksycoca5_en_oVS3ngZDraS4znFEzPH6EMx6IwM=", version 303)
Still in the time dict (i.e. deleted files) ("apps")
modified: "/home/arlen/.local/share/applications/lazarus.desktop"
kf5.kservice.sycoca: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.
kf5.kservice.sycoca: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.
Saving

abtaylr
Posts: 5
Joined: Thu Sep 10, 2015 1:49 am

[SOLVED]Re: Lazarus fails to install correctly

Postby abtaylr » Tue Jun 28, 2016 5:09 pm

For the same of posterity this was how I fixed the problem:

1. I looked in my home directory to find the '.fpc.cfg' file. It was missing, so using fpmkcfg I generated a new one. I removed the '#' in front of -Mobjpas because that is my default, then examined the the '-Fu' paths. Only the default paths were shown so I changed them:

# searchpath for units and other system dependent things
-Fu/home/abtaylr/FreePascal/fpc-3.0.0/lib/fpc/3.0.0
-Fu/home/abtaylr/FreePascal/fpc-3.0.0/lib/fpc/3.0.0/*
-Fu/home/abtaylr/FreePascal/fpc-3.0.0/lib/fpc/3.0.0/units/*
-Fu/home/abtaylr/FreePascal/fpc-3.0.0/lib/fpc/3.0.0/units/x86_64-linux/*
-Fu/home/abtaylr/FreePascal/fpc-3.0.0/rtl

2. I was still getting errors, so after some research, I ran 'fppkg list'. No packages where shown as installed. I then ran 'fppkg listsettings' and found that the fppkg config file was pointing to /usr/local/ instead of my actual install address. I changed the fppkg config file which resides in /home/abtaylr/.fppkg/config/default.

One these changes where made fpc was working and I was able to compile lazarus.


Return to “Getting Started”

Who is online

Users browsing this forum: No registered users and 0 guests

cron