You are not logged in.
Hello,
I got this problem while trying to install "uswsusp" from AUR with yaourt, when it comes to compile :
gcc -DS2RAM -D_GNU_SOURCE -march=i686 -mtune=generic -O2 -pipe -static -o resume resume-resume.o libsuspend-common.a -llzo2 -lgcrypt -lgpg-error
/usr/bin/ld: cannot find -lgcrypt
But libgcrypt is already installed and the programs seems to find it :
checking for libgcrypt... found
I didn't managed to find anything across the web... Thanks in advance for any help !
Offline
Hey ya,
i installed arch linux today and found myself standing
in front of the similar problem.
libgcrypt is installed but /usr/bin/ld cannot find it.
Offline
ankan has a solution in the AUR comments: http://aur.archlinux.org/packages.php?ID=14093
ankan wrote:
"-static" disables linkning with dynamic libraries. So you have the package - but not the static libraries.
Try rebuilding libgcrypt from abs and remove "--disable-static".
It looks like you guys are new users, so you might not know how ABS works yet. Take a look here for a quick walkthrough on ABS and makepkg. You'll need to edit libgcrypt's stock PKGBUILD file and take out "--disable-static" before you run makepkg.
Last edited by creslin (2008-10-15 23:09:05)
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline
Thank you, that worked like a charm.
And indeed, i am brand new to arch linux which looks very promising.
Right now i am wondering how packages compile with makepkg
are regularly updated?
Or do i have to recompile them everytime a new version comes
out by myself?
Offline
Perfect ! Thank you very much !
Offline
Or do i have to recompile them everytime a new version comes out by myself?
Yes, if they are in the official repos and you want to keep your custom changes, you'll have to manually compile them again or else they'll be replaced with prepackaged upgrades. If you add them to "IgnorePkg" in /etc/pacman.conf, pacman will skip over those packages during sysupgrades and just give you a warning like "warning: libgcrypt: ignoring package upgrade (1.4.3-2 => 1.4.4-1)" instead of replacing them.
ARCH|awesome3.0 powered by Pentium M 750 | 512MB DDR2-533 | Radeon X300 M
The journey is the reward.
Offline