make: Entering directory '/usr/share/lazarus/1.8.4'
/usr/bin/make -C ide idepkg
make[1]: Entering directory '/usr/share/lazarus/1.8.4/ide'
/usr/bin/make --assume-new=lazarus.pp lazarus OPT=' @/home/handoko/.lazarus/idemake.cfg'
make[2]: Entering directory '/usr/share/lazarus/1.8.4/ide'
/usr/bin/fpc -gl -vbqewnhi -Sci -dlclgtk2 -Fu../designer -Fu../debugger -Fu../debugger/frames -Fu../converter -Fu../packager -Fu../packager/frames -Fu../components/custom -Fuframes -Fu. -Fiinclude -Fiinclude/linux -Fi../images -FE.. -FU../units/x86_64-linux/gtk2 -Cg -Fl/usr/lib/gcc/x86_64-linux-gnu/7 -Flinclude -Fl/etc/ld.so.conf.d/*.conf @/home/handoko/.lazarus/idemake.cfg -dx86_64 lazarus.pp
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Hint: (11030) Start of reading config file /home/handoko/.lazarus/idemake.cfg
Hint: (11031) End of reading config file /home/handoko/.lazarus/idemake.cfg
Free Pascal Compiler version 3.0.4 [2018/05/21] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-64
(3104) Compiling lazarus.pp
(9022) Compiling resource /home/handoko/.lazarus/units/x86_64-linux/gtk2/lazarus.or
(9015) Linking /home/handoko/.lazarus/bin/lazarus
/usr/bin/ld: warning: /home/handoko/.lazarus/bin/link.res contains output sections; did you forget -T?
/usr/bin/ld: cannot find -lGL
/usr/share/lazarus/1.8.4/ide/lazarus.pp(161,1) Error: (9013) Error while linking
/usr/share/lazarus/1.8.4/ide/lazarus.pp(161,1) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
make[2]: *** [lazarus] Error 1
make[1]: *** [idepkg] Error 2
Error: /usr/bin/ppcx64 returned an error exitcode
Makefile:3961: recipe for target 'lazarus' failed
make[2]: Leaving directory '/usr/share/lazarus/1.8.4/ide'
Makefile:4383: recipe for target 'idepkg' failed
make[1]: Leaving directory '/usr/share/lazarus/1.8.4/ide'
make: *** [idepkg] Error 2
Makefile:3276: recipe for target 'idepkg' failed
make: Leaving directory '/usr/share/lazarus/1.8.4'
...
INPUT(
-lpthread
-ldl
-lgdk-x11-2.0
-lX11
-lgdk_pixbuf-2.0
-lgtk-x11-2.0
-lgobject-2.0
-lglib-2.0
-lgthread-2.0
-lgmodule-2.0
-lpango-1.0
-lcairo
-latk-1.0
-lGL
-lpangocairo-1.0
)
...
Could you think this is the cause of the problem?Yes. Maybe you should post a question on the Ubuntu forum and ask the guys if it's possible to install those libraries under 18.4.
sudo dpkg -i *.deb
With a single command I installed the versions informed using the Terminal ...
Linux is sometimes as stupid as Windows, especially when you installing/uninstalling certain libraries. Rare but it is true. For example, you can try:
fresh install Linux with Nvidia VGA, if you don't restart your computer after installing Nvidia driver your Linux computer most likely won't load the driver.
I use Synaptic for inspecting problem. And of course you don't have to do version locking (using Synaptic) and your Lazarus may still work correctly, but after:have you changed the control file to then workaround for ubuntu dfsg-3 suffix on lazarus package?
- You're not using Lazarus provided from your Linux repository
- Your installed Lazarus version > Lazarus version in the Linux repository
- Linux have just updated the FPC version in its repository
- You answered "Yes" when your Linux tell you to update
if all the 4 items above are satisfied, your Lazarus won't start. I've tested this issue many times and I'm sure about it.
cd ~/bin
mkdir -p Lazarus/184
cd Lazarus/184
svn checkout http://svn.freepascal.org/svn/lazarus/tags/lazarus_1_8_4 .
# note, a space and dot at the end of above line
make CPU_TARGET=x86_64
#make CPU_TARGET=i386
#!/bin/bash
cd ~/bin/Lazarus/184
./startlazarus
One more thing while I am sprouting off ! I believe most problems people have installing on Ubuntu relate to the fact that people use dpkg -i to install downloaded debs and dpkg does not resolve dependencies.
Ah, Handoko, just to clarify. dpkg does not claim to resolve dependencies, Its not intended to. Its a low level command intended to be called by smarter tools.dpkg does resolve dependencies when you put all DEB files on the same directory, not internet dependencies.
'apt' of course does resolve dependencies but only gets things from official repos.If you know how to set /etc/apt/sources.list, you can use any repository, including your own site repository.
From memory, gdebi was about 50meg of extra disk space, cli and gui tools. Good value !FPC and Lazarus should not need gdebi, but it is a valuable tool for people that are not linux sys admins.
By the way, there should be no reason to reboot during installs of this nature.Correct.
#! /bin/bash
cd /usr/local/mydebs
dpkg-scanpackages . /dev/null | gzip -9c > Packages.gz
apt-get update
I'm doomed!! I have tried everything I can to get Lazarus to stop breaking due to this damn update outhere that breaks it every time. I thought maybe this apt-mark would work. But as soon as I try to install apt-mark I find it isn't in the repo my distro uses. this whole mess is so frustrating.
I'm doomed!! I have tried everything I can to get Lazarus to stop breaking due to this damn update outhere that breaks it every time. I thought maybe this apt-mark would work. But as soon as I try to install apt-mark I find it isn't in the repo my distro uses. this whole mess is so frustrating.You can talk directly with Debian Ubuntu Pascal Packaging Team:
I'm doomed!!Dump external .debs and you are doomed no more! :)
I'm doomed!! I have tried everything I can to get Lazarus to stop breaking due to this damn update outhere that breaks it every time. I thought maybe this apt-mark would work. But as soon as I try to install apt-mark I find it isn't in the repo my distro uses. this whole mess is so frustrating.
Have you tried my method above (http://forum.lazarus.freepascal.org/index.php/topic,41524.msg295276.html#msg295276)? Ubuntu should not install updates unless they come from the same repository---or from a manual install---and with my method that repository is under your absolute control. No need to lock versions, no nothing but select the lazarus-project package and install.
Edited to add this
NOTE: I though you should know that I've not installed yet on a release higher than 16.04. If anyone does, please tell your results.
I'm doomed!!Dump external .debs and you are doomed no more! :)
You are hard-headed. You bang your head with the Debian package system longer than people in average.
Finally you will end up with the same conclusion though.
For Hartmut at least this worked without problems:
https://forum.lazarus.freepascal.org/index.php/topic,42393.msg295887.html#msg295887
[...] I have an error, but dont know why.
david@david-HP:~$ sudo update-mydebs dpkg-scanpackages: warning: Packages in archive but missing from override file: dpkg-scanpackages: warning: fpc fpc-src lazarus-project dpkg-scanpackages: info: Wrote 3 entries to output Packages file. Get:1 file:/usr/local/mydebs ./ InRelease Ign:1 file:/usr/local/mydebs ./ InRelease Get:2 file:/usr/local/mydebs ./ Release Err:2 file:/usr/local/mydebs ./ Release File not found - /usr/local/mydebs/./Release (2: No such file or directory)
[...]
I do not know what I have done wrong.
lucamar@luna:~/bin$ sudo ./update-mydebs.sh
dpkg-scanpackages: aviso: Paquetes en el archivo pero no presentes en el archivo «override»:
dpkg-scanpackages: aviso: fpc fpc-src lazarus-project
dpkg-scanpackages: información: Se han escrito «3» entradas en el archivo «Packages» de salida.
Ign file: ./ InRelease
Ign file: ./ Release.gpg
Ign file: ./ Release
Ign http://es.archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign file: ./ Translation-es_ES
Ign file: ./ Translation-es
Des:1 http://extras.ubuntu.com trusty Release.gpg [72 B]
Ign file: ./ Translation-en
[... lots of similar lines from "apt-get update" ...]
Ign http://es.archive.ubuntu.com trusty/restricted Translation-es_ES
Ign http://es.archive.ubuntu.com trusty/universe Translation-es_ES
Descargados 17,5 MB en 10min. 12seg. (28,5 kB/s)
Leyendo lista de paquetes... Hecho
As you see, dpkg-scanpackages gives the same warnings/info, which is normal, but "apt-get update" works normally.Well, you quoted my instructions but then started to do something different again. :)...
For Hartmut at least this worked without problems:
https://forum.lazarus.freepascal.org/index.php/topic,42393.msg295887.html#msg295887
Ok, I am giving it a try. I have never done anything quite like this in Linux before. I have an error, but dont know why....
david@david-HP:~$ sudo update-mydebs ...
I do not know what I have done wrong.
I appear to have gotten farther but still have an error. any idea...anyone
[...] E: The repository 'file:/usr/local/mydebs ./ Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
I found this:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=898310
This perfectly fits my problem and it seems that an update to Lazarus fixes the issue. (see last post in thread) I just don't know if that has been released yet, and if it has where I could get it.
I am just trying to get a working Lazarus install. [...] I have NO problems with the deb files, none, zip, nada. they work fine. It is AFTER I install using debs that I have a problem, the OS package manger detects the install and overwrites it with something from the repo, breaking my install.
The post indicates that the fix is in 1.8.4+dfsg-2
The repo install is giving me 1.8.4+dfsg-1
So, what ever repo this distro is pointed to doesn't appear to have the update.
At this point your best bet is probably to follow Juha's advice and install from source.Exactly! This is getting insane.
Remember, by using SVN sources you get the latest bugfixes as an extra bonus by running "svn up" sometimes.
You assume I know how to do that. [...] But I don't know how to install from source or what this "svn-up" is. So, you can suggest I install from source until it rains purple dinosaurs from heaven. It doesn't help me.
And the hyper-extra bugs too!!! :DNo, those are in trunk. I recommended the fixes_1_8 branch for him. It is more stable than the latest release.
Juha left more or less detailed instructions in your previous topic and there's some help in the wiki too. It's not very hard.Exactly. If a person is able to do anything in Linux, he is able to run those commands.
But perhaps fpcupdeluxe is a little more palatable for you: it's a tool which aims to automating (most? all?) tasks that Juha pointed to. Search the wiki (and the forum): it's all there.*Uhhh, why did you bring that extra complication here again! Fpcupdeluxe is not needed for getting and compiling Lazarus sources. Fpcupdeluxe is a complex tool, good for building cross-compilers etc. advanced stuff. It should not be recommended for this simple task!
Thank You, it was going well...then BOOM! I really think that for me I just have to wait till all this gets straightened out. I am just a hobbist and I have now spent over 10 hours trying to get a working Lazarus. I just can't spend more time on it. Hopefully...someday...it will work for me again. If not, oh well. It was fun while it lasted.You are able to do complex configuration for Debian package system and then use fpcupdeluxe, but you are not able to run these commands in console?
svn co https://svn.freepascal.org/svn/lazarus/branches/fixes_1_8/ lazarus_1_8
cd lazarus_1_8
make
./lazarus &
Sorry but I don't believe you. I don't know what is going on. Goodbye.QuoteBut perhaps fpcupdeluxe is a little more palatable for you: it's a tool which aims to automating (most? all?) tasks that Juha pointed to. Search the wiki (and the forum): it's all there.*Uhhh, why did you bring that extra complication here again! Fpcupdeluxe is not needed for getting and compiling Lazarus sources. Fpcupdeluxe is a complex tool, good for building cross-compilers etc. advanced stuff. It should not be recommended for this simple task!
What is wrong with you people? How to stop all the wrong advice given for new users?
Introducing fpcupdeluxe. A GUI tool that is based on fpcup by the late Renier.And why was it created? Because settting up FPC and Lazarus from sources isn't such a "simple" task unless you're lucky and have some experience.It's not a question of "three commands and done" for most mortals. You should know.
[...]
It will ease the install of FPC and Lazarus.*
And, as with fpcup, it is fully self-contained, meaning that you can install it on your system without worries about other installs of FPC and Lazarus.
[...]
---
* Emphasis mine
Try to chill a little; Linux isn't the most forgiving environment and people will keep having problems and asking for help and misinterpreting our instructions. That's life.Ok, I am sorry for my tone.
... and I don't want to take a chance on doing something really wrong and making a mess of my system. Don't say it can't happen, we all know it can.I say it can't happen. :)
My model is to use distro's package manager to install FPC and SRC and then pull down Lazarus source with SVN and compile (make bigide). No problems generally.
Maybe we should consider to remove the deb files if it often causes problems.
I've been using Ubuntu and other Debian-based distros since 2006 and never had any problems with the "official" Lazarus debs.
sudo apt-get -f install
sudo apt-get install libgtk2.0-dev
sudo dpkg -i *.deb
cd /media
sudo mount -t vboxsf PA01 sf_PA01
sudo usermod -aG vboxsf frederick
because they don't really know what they are doing.I'm not sure thats right, I have seen people who plainly do have sufficient understanding get into trouble. I do think previous failed installs are an issue. And Handoko taught us about locking a version in apt, that was new to me and made a big difference.
I also ask that deb files not be removed,Totally agree. Pull down debs from sourceforge is probably second easiest and probably more useful than using all distro's package manager. I want to present users with a set of options so they can make informed choice.
1. Double clicking the deb files but nothing happens
2. Fails to install and it says dependency not satisfied
3. Able to install both FPC and Lazarus but the Lazarus won't run
4. Able to install and run Lazarus but it won't run after Ubuntu update/upgrade
#!/usr/bin/bash
TAG="fixes_2_0"
for i in fpc fpc-src fpc-source subversion git; do
echo "---- Installing $i ------"
sudo apt-get -y install "$i";
done
mkdir -p $HOME/bin/Lazarus
cd $HOME/bin/Lazarus
svn checkout https://svn.freepascal.org/svn/lazarus/branches/"$TAG"
cd "$TAG"
make clean
make bigide
if [ ! -f lazbuild ]; then
echo "Sorry, build failed lazbuild not present, exiting..."
exit 1
fi
echo "------------------------------------"
echo "OK, you can now start Lazarus with -"
echo "$HOME/bin/Lazarus/$TAG/lazarus"
and then you can drag the folder to the terminal to insert the full path).
I need to install libgtk2.0-dev to solve dependencies.
Thanks VTwin,Quoteand then you can drag the folder to the terminal to insert the full path).
?? Over 30 years of using Linux and I did not know that ! Thanks
Quoteand then you can drag the folder to the terminal to insert the full path).
?? Over 30 years of using Linux and I did not know that ! Thanks
Then navigated to the folder in the Terminal (type "cd " and then you can drag the folder to the terminal to insert the full path).
?? Over 30 years of using Linux and I did not know that ! ThanksIt cannot be over 30 years. In 1989, Linux was about 2 years away from making its first appearance on usenet.
Hmm, sorry, careless wording. I should have said "unix" or "*nix". While I started using computers with VMX, I soon progressed to Ultrix, OSF and then True64 on the Dec/Compaq Supercomputers. I used something called Coherent, maybe 1985 or 1986 - that was the first Unix like OS I used running on PC hardware. Maybe we could consider that as one of many fore runners to Linux ??? Over 30 years of using Linux and I did not know that ! ThanksIt cannot be over 30 years. In 1989, Linux was about 2 years away from making its first appearance on usenet.
Hmm, sorry, careless wording.No problem. I'm often guilty of, let's say, casual wording myself. I only pointed it out to ensure no one would be left with the mistaken impression that Linux was actually that old. If the word "over" had not been there, I would not have mentioned it.
Davo
Hmm, sorry, careless wording.I only pointed it out to ensure no one would be left with the mistaken impression that Linux was actually that old.
Davo
Hmm, sorry, careless wording. I should have said "unix" or "*nix". While I started using computers with VMX, I soon progressed to Ultrix, OSF and then True64 on the Dec/Compaq Supercomputers. I used something called Coherent, maybe 1985 or 1986 - that was the first Unix like OS I used running on PC hardware. Maybe we could consider that as one of many fore runners to Linux ?
Over 30 years would legitimately bring you to 1990 or earlier. Given the first release of Linux in 1991, it actually is almost that old. This is apart from the fact that the first distributions came out in 1992, which weren't even useful for a production desktop at the time. Point being, 30 years don't really give a mistaken impression about the age of Linux. It does give a mistaken impression about the GNU/Linux operating systems or distro's that could actually be used in production environments. Even SuSE version 6.4 in 1998 was a pain to install because it required manual selection of dependencies against 'unsatisfied' error messages (don't remind me).
While I started using computers with VMX, I soon progressed to Ultrix, OSF and then True64 on the Dec/Compaq Supercomputers. I used something called Coherent, maybe 1985 or 1986 - that was the first Unix like OS I used running on PC hardware. Maybe we could consider that as one of many fore runners to Linux ?
Davo
I those days every major company wanted to have their own Unix:
AIX (IBM) , Xenix (Microsoft), Sinix (Siemens), HP-UX (HP), .....
...
Noboday needed a desktop in those days but anyway X11 was developed.
...
The first real 32 bit systems where Unix, VMS and Linux. Noboday needed a desktop in those days but anyway X11 was developed.
Atari ST and Amiga. 5 years before Windows 3.1 and even more before OS/2 (OS half).
People have announced his death for decades, that Wayland is the future but X11 is still there and Wayland is still unstable.