LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-19-2015, 08:19 PM   #1
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Rep: Reputation: 15
libssh2 failed to compile complaining missing libgcrypt


Hi All,

I have been trying to compile libssh2 on my slackware 4.1, but the configure always fails saying:

checking for libgcrypt... no
configure: error: cannot find OpenSSL or Libgcrypt,
try --with-libssl-prefix=PATH or --with-libgcrypt-prefix=PATH

I have installed both the OpenSSL and libgcrypt packages from the installation CD of slackware 4.1. but still I got this problem.
I did some research and found other people got similar problem on other distros (RH and Debian) and the solution is for them to install the devel package of the libgcrypt or openssl.
In Slackware the headers and source codes of the package are already included in the package. So what am I missing here ?

Thanks

Note: I have also tried to use the slackbuild script from the slackbuilds.org but the problem is exactly the same.
 
Old 05-19-2015, 08:29 PM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
libssh2 has no additional requirements beyond a full install of Slackware. Did you do a full install of Slackware? If not, you are missing libraries. libgcrypt is its own package, and from your output, it looks like it isn't installed.

http://mirrors.slackware.com/slackwa...3-x86_64-1.txz (assuming 14.1 x64)

If you already have it installed, try reinstalling it

Code:
upgradepkg --reinstall libgcrypt-1.5.3-x86_64-1.txz
Also, I'm assuming you actually mean 14.1, not 4.1, which was never a version (it went from 4.0 in May 1999 to 7.0 in October 1999).
 
Old 05-19-2015, 09:14 PM   #3
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Hi thanks for the quick reply. yes sorry for the typo. It is actually 14.1 version (don't know why I forget to put the leading 1 twice). And it was the 32 bit version of slackware 14.1. Below is the snippet of my /var/log/packages. The libgcrypt and openssl are clearly there. and no if you mean by full install is I installed everything in the slackware CDs. I only install the packages that I think I need. I use xfce for instance instead of KDE. The question is which packet that is missing for the libssh2 to compile correctly ? Thanks

libfontenc-1.1.2-i486-1
libgcrypt-1.5.3-i486-1
libical-1.0-i486-1
libmad-0.15.1b-i486-3
libmpc-0.8.2-i486-2
libnl3-3.2.21-i486-1
libnotify-0.7.5-i486-1
libogg-1.3.0-i486-1
libpciaccess-0.13.2-i486-1
libpng-1.4.12-i486-1
libpthread-stubs-0.3-noarch-1
libraw1394-2.0.7-i486-1
libsamplerate-0.1.8-i486-1
libssh-0.5.4-i486-1
libtermcap-1.2.3-i486-7
libtool-2.4.2-i486-2
libvorbis-1.3.3-i486-1
libwnck-2.30.7-i486-3
libxcb-1.9.1-i486-1
libxfce4ui-4.10.0-i486-2
libxfce4util-4.10.1-i486-1
libxfcegui4-4.10.0-i486-2
libxkbfile-1.0.8-i486-1
libxklavier-5.3-i486-1
libxml2-2.9.1-i486-1
lilo-24.0-i486-4
logrotate-3.8.6-i486-1
lzo-2.03-i486-1
m4-1.4.17-i486-1
make-3.82-i486-4
man-1.6g-i486-1
man-pages-3.53-noarch-1
mesa-9.1.7-i486-1
mkfontdir-1.0.7-noarch-1
mkfontscale-1.1.1-i486-1
mkinitrd-1.4.8-i486-2
most-5.0.0a-i486-2
mozilla-firefox-24.1.0esr-i486-1
mpfr-3.1.2-i486-1
mtdev-1.1.3-i486-1
ncompress-4.2.4.3-i486-1
ncurses-5.9-i486-2
net-tools-1.60.20120726git-i486-1
nettle-2.7.1-i486-1
network-scripts-14.1-noarch-2
ntfs-3g-2013.1.13-i486-1
openssl-1.0.1e-i486-1
openssl-solibs-1.0.1e-i486-1
openvpn-2.3.6-i486-1_slack14.1
opera-12.16-i686-1_SBo
orage-4.8.4-i486-2
p11-kit-0.16.4-i486-1
 
Old 05-19-2015, 10:04 PM   #4
chris.willing
Member
 
Registered: Jun 2014
Location: Brisbane, Australia
Distribution: Slackware,LFS
Posts: 915

Rep: Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619Reputation: 619
Quote:
Originally Posted by aherrys View Post
Hi thanks for the quick reply. yes sorry for the typo. It is actually 14.1 version (don't know why I forget to put the leading 1 twice). And it was the 32 bit version of slackware 14.1. Below is the snippet of my /var/log/packages. The libgcrypt and openssl are clearly there. and no if you mean by full install is I installed everything in the slackware CDs. I only install the packages that I think I need. I use xfce for instance instead of KDE. The question is which packet that is missing for the libssh2 to compile correctly ? Thanks

libfontenc-1.1.2-i486-1
libgcrypt-1.5.3-i486-1
libical-1.0-i486-1
libmad-0.15.1b-i486-3
libmpc-0.8.2-i486-2
libnl3-3.2.21-i486-1
libnotify-0.7.5-i486-1
[snip]
You need more packages. Looking at /var/log/packages/libgcrypt-1.6.3-x86_64-1, you can see it provides lib64/libgcrypt.so.20.0.3. If you now run 'ldd /lib64/libgcrypt.so.20.0.3', you should see somthing like:
Quote:
chris@d6:~$ ldd /lib64/libgcrypt.so.20.0.3
linux-vdso.so.1 (0x00007ffd5a0c4000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x00007f50f0ec7000)
libc.so.6 => /lib64/libc.so.6 (0x00007f50f0afe000)
/lib64/ld-linux-x86-64.so.2 (0x00007f50f13f5000)
My guess, from your snippet of installed packages, is that your output will say that libgpg-error.so.0 is not found. You should install the libgpg-error-1.18-x86_64-2 package (of coursed 32bit version in your case).

chris
 
Old 05-19-2015, 10:30 PM   #5
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Hi Chris, thanks for the reply. So you are saying that I need to install the 64 bit of libgcypt eventhough my slackware is the 32 bit version ?

Thanks
 
Old 05-19-2015, 10:33 PM   #6
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Chris, Never mind.. I know what you mean.. checkin now...
 
Old 05-19-2015, 10:36 PM   #7
aherrys
Member
 
Registered: Jul 2003
Posts: 85

Original Poster
Rep: Reputation: 15
Chris, ok it works.. thanks a million...
 
Old 05-20-2015, 06:28 AM   #8
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Issues like these are why it is typically recommended to do a full install of Slackware. Since Slackware doesn't come with any sort of dependency resolution, it is hard to know if what you have installed has all required dependencies for it to work, as you obviously saw here. Unless you are severely limited on space, there is no reason to not do a full install. Any programs installed, but not used, will not be started up, so it won't take any more resources than a small chunk of hard drive space. And with how cheap and large hard drives are, it is small enough most wouldn't notice.

But, congrats on getting it working
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
login always fails after first failed attempt, libgcrypt warning flesh75 Linux From Scratch 7 01-17-2015 05:33 PM
libssh2 compile issue PoleStar Linux - Newbie 3 12-17-2012 10:43 AM
Cogl-1.10.4 make check failed and compile Clutter-1.10.8 failed kcynice Linux From Scratch 0 08-09-2012 12:27 AM
kate complaining about KAccel missing (KDE 3.2) Siemen Mandriva 1 02-21-2005 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration