Forum > Linux

Error while linking

(1/3) > >>

ChPr:
Hello everybody,

I have a Raspberry Pi 3B+ with "Buster" on which I had installed Lazarus 2.0.6. It was working fine until my SD card broke. No way to restart it and ... no way to find my backup SD.

So I took a new SD card on which I installed "Buster", then Lazarus according to the same method I had used:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---LAZARUS 2.0.6 INSTALLATION ON A RASPBERRY To install the 3 attached debian packages, you must first make sure you have the libraries: "libgtk2.0-dev libgpm-dev libncurses-dev". If not, install them:   - sudo apt install libgtk2.0-dev libgpm-dev libncurses-dev Then go to the directory where you downloaded the *.deb files and run successively :   - sudo dpkg -i fpc-laz_3.0.4_armhf.deb   - sudo dpkg -i fpc-src_3.0.4_armhf.deb lazarus-project_2.0.6-0_armhf.deb NOTE: If you want to rebuild everything yourself, all explanations are given in this link : - https://wiki.freepascal.org/Build_current_FPC_and_Lazarus_for_Raspbian
Unfortunately, I can't compile, I get a linking error:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---/usr/bin/ld: can't find -lgtk-x11-2.0/usr/bin/ld: can't find -lgobject-2.0/usr/bin/ld: can't find -lglib-2.0/usr/bin/ld: can't find -lgthread-2.0/usr/bin/ld: can't find -lgmodule-2.0/usr/bin/ld: can't find -lpango-1.0/usr/bin/ld: can't find -lcairo/usr/bin/ld: can't find -latk-1.0project1.lpr(23,0)Error Error while linking
I think it comes from the following errors when installing the libraries "libgtk2.0-dev libgpm-dev libncurses-dev" because they generated me the following errors:


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---pi@raspberrypi:~ $ sudo apt install libgtk2.0-dev libgpm-dev libncurses-devReading package lists... DoneBuild dependency treeRead status information... DoneYou can run "*apt --fix-broken install*" to fix these problems.The following packages contain unmet dependencies*:libgtk2.0-dev: Depends: gir1.2-gtk-2.0 (= 2.24.32-3+rpt1) but will not be installedDepends: libglib2.0-dev (>= 2.27.3) but will not be installedDepends: libgdk-pixbuf2.0-dev (>= 2.21.0) but will not be installedDepends: libpango1.0-dev (>= 1.20) but will not be installedDepends: libatk1.0-dev (>= 1.29.2) but will not be installedDepends: libcairo2-dev (>= 1.6.4-6.1) but will not be installedDepends: libxext-dev (>= 1:1.0.1-2) but will not be installedDepends: libxinerama-dev (>= 1:1.0.1-4.1) but will not be installedDepends: libxi-dev (>= 1:1.0.1-4) but will not be installedDepends: libxrandr-dev (>= 2:1.2.99) but will not be installedDepends on: libxcursor-dev but will not be installedDepends: libxfixes-dev (>= 1:3.0.0-3) but will not be installedDepends: libxcomposite-dev (>= 1:0.2.0-3) but will not be installedDepends: libxdamage-dev (>= 1:1.0.1-3) but will not be installedDepends: libxml2-utils but will not be installedRecommended: debhelper but will not be installedE: Dependencies not met. Try "*apt --fix-broken install*" without package(or specify a solution).
Do you have any idea what to do to fix this?

Thanks in advance.

Pierre.

[Edited to fix subject line.]

winni:
Hi

Line 5 tells you the solution:


--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---apt --fix-broken install
Winni

ChPr:
I had done it, unfortunately, it didn't work. It seems that there is an IP problem.


--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---pi@raspberrypi:~ $ sudo apt --fix-broken installLecture des listes de paquets... FaitConstruction de l'arbre des dépendancesLecture des informations d'état... FaitCorrection des dépendances... FaitLes paquets supplémentaires suivants seront installés :  autoconf automake autopoint autotools-dev debhelper dh-autoreconf dh-strip-nondeterminism dwz gettext  gir1.2-gtk-2.0 gir1.2-harfbuzz-0.0 icu-devtools intltool-debian libarchive-cpio-perl libarchive-zip-perl  libatk1.0-dev libblkid-dev libcairo-script-interpreter2 libcairo2-dev libffi-dev  libfile-stripnondeterminism-perl libfontconfig1-dev libfribidi-dev libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-dev  libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0  libicu-dev libltdl-dev liblzo2-2 libmail-sendmail-perl libmount-dev libpango1.0-dev libpcre16-3 libpcre3-dev  libpcre32-3 libpcrecpp0v5 libpixman-1-dev libselinux1-dev libsepol1-dev libsigsegv2  libsys-hostname-long-perl libtool libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev  libxdamage-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-utils libxrandr-dev  libxrender-dev m4 pango1.0-tools po-debconf x11proto-composite-dev x11proto-damage-dev x11proto-fixes-dev  x11proto-input-dev x11proto-randr-dev x11proto-xext-dev x11proto-xinerama-devPaquets suggérés :  autoconf-archive gnu-standards autoconf-doc dh-make gettext-doc libasprintf-dev libgettextpo-dev  libcairo2-doc libglib2.0-doc libgraphite2-utils libgtk2.0-doc icu-doc libtool-doc imagemagick  libpango1.0-doc gfortran | fortran95-compiler gcj-jdk libxext-doc m4-doc libmail-box-perlLes NOUVEAUX paquets suivants seront installés :  autoconf automake autopoint autotools-dev debhelper dh-autoreconf dh-strip-nondeterminism dwz gettext  gir1.2-gtk-2.0 gir1.2-harfbuzz-0.0 icu-devtools intltool-debian libarchive-cpio-perl libarchive-zip-perl  libatk1.0-dev libblkid-dev libcairo-script-interpreter2 libcairo2-dev libffi-dev  libfile-stripnondeterminism-perl libfontconfig1-dev libfribidi-dev libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-dev  libglib2.0-dev libglib2.0-dev-bin libgraphite2-dev libgtk2.0-dev libharfbuzz-dev libharfbuzz-gobject0  libicu-dev libltdl-dev liblzo2-2 libmail-sendmail-perl libmount-dev libpango1.0-dev libpcre16-3 libpcre3-dev  libpcre32-3 libpcrecpp0v5 libpixman-1-dev libselinux1-dev libsepol1-dev libsigsegv2  libsys-hostname-long-perl libtool libxcb-render0-dev libxcb-shm0-dev libxcomposite-dev libxcursor-dev  libxdamage-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml2-utils libxrandr-dev  libxrender-dev m4 pango1.0-tools po-debconf x11proto-composite-dev x11proto-damage-dev x11proto-fixes-dev  x11proto-input-dev x11proto-randr-dev x11proto-xext-dev x11proto-xinerama-dev0 mis à jour, 70 nouvellement installés, 0 à enlever et 0 non mis à jour.1 partiellement installés ou enlevés.Il est nécessaire de prendre 9 292 ko/27,2 Mo dans les archives.Après cette opération, 105 Mo d'espace disque supplémentaires seront utilisés.Souhaitez-vous continuer ? [O/n] oErr :1 http://raspbian.raspberrypi.org/raspbian buster/main armhf icu-devtools armhf 63.1-6  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]Err :2 http://raspbian.raspberrypi.org/raspbian buster/main armhf libicu-dev armhf 63.1-6  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]Err :3 http://raspbian.raspberrypi.org/raspbian buster/main armhf pango1.0-tools armhf 1.42.4-7~deb10u1  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]Err :4 http://raspbian.raspberrypi.org/raspbian buster/main armhf libpango1.0-dev armhf 1.42.4-7~deb10u1  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]Err :5 http://raspbian.raspberrypi.org/raspbian buster/main armhf libxml2-utils armhf 2.9.4+dfsg1-7+b3  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/icu-devtools_63.1-6_armhf.deb  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian/pool/main/i/icu/libicu-dev_63.1-6_armhf.deb  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian/pool/main/p/pango1.0/pango1.0-tools_1.42.4-7~deb10u1_armhf.deb  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian/pool/main/p/pango1.0/libpango1.0-dev_1.42.4-7~deb10u1_armhf.deb  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer http://raspbian.raspberrypi.org/raspbian/pool/main/libx/libxml2/libxml2-utils_2.9.4+dfsg1-7+b3_armhf.deb  404  Not Found [IP : 2a00:1098:0:80:1000:75:0:3 80]E: Impossible de récupérer certaines archives, peut-être devrez-vous lancer apt-get update ou essayer avec --fix-missing ?pi@raspberrypi:~ $
Sincerely.

Pierre

Zvoni:
IPv6?

trev:
Works for me on IPv6 with curl, but the file -- icu-devtools_63.1-6_armhf.deb -- is not found:


--- Quote ---<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<hr>
<address>Apache/2.4.25 (Debian) Server at raspbian.raspberrypi.org Port 80</address>
</body></html>
--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version