LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-27-2011, 11:35 AM   #1
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 220

Rep: Reputation: 30
Can't find package.


Hi all, I'm trying to find a package or program needed in order to finish a manual source install for this site. They have their own program so they have their own dependencies. When I try to build the program I encounter this error..

Quote:
make[1]: Entering directory `/home/user/Desktop/vpnclient'
ranlib libssl.a
ranlib libcrypto.a
ranlib vpnclient.a
gcc vpnclient.a -pthread -lrt -lm -lz libssl.a libcrypto.a -lpthread -ldl -lreadline -lcurses -o vpnclient
/usr/bin/ld: cannot find -lreadline
collect2: ld returned 1 exit status
make[1]: *** [vpnclient] Error 1
make[1]: Leaving directory `/home/user/Desktop/vpnclient'
So I did the following ...

Code:
computer:/home/user/Desktop/vpnclient# aptitude search lreadline
i   tclreadline                     - GNU Readline Extension for Tcl/Tk         
computer:/home/user/Desktop/vpnclient# apt-get install tclreadline
After install i tried to make build again and got the same error. Any suggestions? I really need this program installed so any help is appreciated. Thanks.
 
Old 08-27-2011, 12:43 PM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Do you have the package libreadline-dev installed?
ciao,
jdk
 
Old 08-27-2011, 12:54 PM   #3
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 220

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by jdkaye View Post
Do you have the package libreadline-dev installed?
ciao,
jdk
I've solved this.

Code:
apt-get install libreadline5-dev
 
Old 08-27-2011, 12:55 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Your welcome. Please mark the thread as solved.
jdk
 
Old 08-27-2011, 01:18 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
Quote:
gcc vpnclient.a -pthread -lrt -lm -lz libssl.a libcrypto.a -lpthread -ldl -lreadline -lcurses -o vpnclient
Just a note for future reference: when a compiler uses a specific library with option -l, the actual name of the library is always prefixed by lib followed by the name of the library. So the option -lreadline means the required library is
Code:
libreadline.so.*
where the suffix so means it is a shared object and the asterisk stats for the version number.
 
1 members found this post helpful.
Old 08-27-2011, 01:54 PM   #6
dellthinker
Member
 
Registered: Jan 2007
Distribution: Debian
Posts: 220

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by colucix View Post
Just a note for future reference: when a compiler uses a specific library with option -l, the actual name of the library is always prefixed by lib followed by the name of the library. So the option -lreadline means the required library is
Code:
libreadline.so.*
where the suffix so means it is a shared object and the asterisk stats for the version number.
Thanks for that, I've always been curious what *.so files were. I just knew that there were important to have
My Linux skillz are progressing!
 
  


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
[SOLVED] Find URL in Debian package index via awk/sed (=find a line, then search from there) maddes.b Linux - Software 11 06-28-2013 07:37 AM
linux-headers package on a VPS? (Couldn't find package) FEL Linux - Newbie 8 04-06-2009 11:45 AM
find a package name taurus321 Debian 2 03-22-2007 11:18 PM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM
package find Rum Slackware 1 07-01-2002 06:33 AM

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

All times are GMT -5. The time now is 10:30 AM.

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