LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2014, 11:50 AM   #1
chansanle
LQ Newbie
 
Registered: May 2011
Posts: 22

Rep: Reputation: Disabled
Question Not able to build "wget" from source file :(


Not able to build "wget" from source file whereas it is installed successfully through "apt-get install wget" command.

when giving the "configure" command, got the following error message.

checking for compress in -lz... yes
checking for libgnutls... no
configure: error: --with-ssl=gnutls was given, but GNUTLS is not available.
root@chandrasekar-Calpella:/home/chandrasekar/wget-1.15#

I have openssl package installed in my system, so gave the following options in the "configure" command. But again i got the following error message.
"Which" command shows the location of openssl location.

root@chandrasekar-Calpella:/home/chandrasekar/wget-1.15# ./configure --with-ssl=openssl --with-libssl-prefix=/usr/bin/openssl

checking for libssl... no
configure: error: --with-ssl=openssl was given, but SSL is not available.
root@chandrasekar-Calpella:/home/chandrasekar/wget-1.15# which openssl
/usr/bin/openssl
root@chandrasekar-Calpella:/home/chandrasekar/wget-1.15# openssl
OpenSSL> ^C
root@chandrasekar-Calpella:/home/chandrasekar/wget-1.15#

I have installed the gnutls-bin package with "apt-get install gnutls-bin" command. But still the issue persist, so can anyone point out what i am missing ?

Thanks in advance,
Chandrasekar P
 
Old 06-11-2014, 12:00 PM   #2
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 702
Blog Entries: 3

Rep: Reputation: 211Reputation: 211Reputation: 211
I think you might need libgnutls-dev

PS; you can always do:
Code:
apt-get build-dep wget
That will pull in all build dependencies for wget.

Last edited by coralfang; 06-11-2014 at 12:02 PM.
 
Old 06-13-2014, 03:45 PM   #3
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 517
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
You have to install the "devel" package, which contains headers and libraries against which the application you are building will be linked. Depending on your distro the package you have to install would be named something like "openssl-devel" or similar
 
Old 06-13-2014, 05:07 PM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
As already noted, you need -dev packages .. ( contains headers and such )

I would like to add that you would be best to use dpkg-buildpackage
This will then create .deb(s) which makes life easier since you will have less trouble with the package manager being 'in the dark'
 
Old 06-13-2014, 05:21 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
Ugly bash function I use to get build deps.


Code:
CheckBuildDeps(){
    echo "Checking BuildDeps"
    BuildDeps="$(dpkg-checkbuilddeps 2>&1 | awk 'BEGIN{RS=")"};{sub(/dpkg.*Unmet build dependencies:/,"",$0);gsub(/ \(>=.*$/,"",$0);printf $0}')"
[[ "${BuildDeps}" == "" ]] || sudo /usr/bin/apt-get install -y --force-yes ${BuildDeps}
return $?
}
 
Old 06-19-2014, 10:47 AM   #6
chansanle
LQ Newbie
 
Registered: May 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
thanks guys for the support finally it has been successfully built. Installing the libcurl4-gnutls-dev package did the trick.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Wget "cannot write to"/ "filename too long" problem sybrenkooistra Linux - Newbie 6 09-03-2012 09:53 PM
unpredictable "delete" "move to trash" or "cut" file menu option dorianrenato Linux - General 3 11-28-2011 06:41 PM
NSLU2 setup- UpSlug2 source build terminal problem- "No such file or directory" RockandRoll24 Linux - Newbie 0 03-22-2010 09:58 AM
Installed kernel-devel and source for i686; didn't create directory "build" itsonlyme Linux - Kernel 3 04-05-2007 09:08 AM
Pre-Build Executable "No Such File or Directory" problem Archeress Linux - General 2 08-17-2002 08:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration