LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-27-2004, 05:10 PM   #1
Killbot_5000
LQ Newbie
 
Registered: Aug 2004
Location: Southern IL
Distribution: OpenSuSE 10.1
Posts: 24

Rep: Reputation: 15
Linking Libraries, Dependencies


I am running RedHat 6.0. I am trying to install openssh. The rpm of openssh that I have requires a newer version of RPM. RPM4 requires popt and some C libraries. I installed the C libraries required by popt, which are

ld-linux.so.2
libc.so.6
libc.so.6(GLIBC_2.0)

but when I try to rpm -ivh popt*.rpm, it says I need these libraries. I've really only used newer RedHat distros, like Fedora, which autolink. So, does anyone know of a FAQ or tutorial that covers linking, or can anyone tell me how to link?

These are the packages I have been using:

glibc-2.1.3-22.i386.rpm
popt-1.7-6x.i386.rpm
rpm-4.1-6x.i386.rpm
openssh-2.9p1-2.i386.rpm
openssh-2.9p2-2.i386.rpm

Got them off of rpm.pbone.com cept for openssh, which was from
www.openssh.org

I appreciate any help in the matter.
 
Old 09-27-2004, 06:26 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
If you're using rpm then in essense you are using a 'red hat like distro' and I'm not sure what you mean by autolink or needing a linking tutorial....you don't have to link by hand! It looks to me like some of your system was installed by RPM and some by some other means, which is why the RPMs can't find basic essentials (like libc - probably the single most important thing after the kernel).

My advice (to anyone still using the abomination that is RPM) is to compile it from source. As long as you installed the development tools when you installed your system then you'll find it a lot easier.
 
Old 09-28-2004, 09:28 AM   #3
Killbot_5000
LQ Newbie
 
Registered: Aug 2004
Location: Southern IL
Distribution: OpenSuSE 10.1
Posts: 24

Original Poster
Rep: Reputation: 15
If I compile it from source, can I make a working RPM from that? Ultimately, I need to install these programs onto a RedHat 6.0 machine that has NO dev tools or libs.

Do you think that this is even a possibility?
 
Old 09-28-2004, 09:56 AM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 54
Hmmmm, I think it must be a possibility because there are people out there who create RPM files of useful applications once they've compiled them from source themselves.

How to do it is a different matter, but it must have been asked before on these boards, or a google search for a tutorial in creating RPM's must yield something.
 
Old 09-28-2004, 09:59 AM   #5
lappen
Member
 
Registered: Aug 2003
Location: Sweden
Posts: 83

Rep: Reputation: 15
try ldconfig?

Code:
NAME
       /sbin/ldconfig - configure dynamic linker run time bindings

DESCRIPTION
       ldconfig creates the necessary links  and  cache  to  the  most  recent
       shared  libraries  found  in  the  directories specified on the command
       line, in the file /etc/ld.so.conf, and in the trusted directories (/lib
       and  /usr/lib).  The cache is used by the run-time linker, ld.so or ld-
       linux.so.  ldconfig checks the header and file names of  the  libraries
       it  encounters  when determining which versions should have their links
       updated.
also check ld.so and ld.so.conf [man pages]
 
  


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
Linking old libraries to new one? winterhunter Linux - Software 7 10-24-2005 05:37 AM
Linking program with .a libraries rudy2 Programming 2 04-22-2005 06:36 AM
Shared libraries and linking., devin Programming 3 04-08-2003 04:18 PM
Linking to shared libraries? Griffon26 Programming 1 10-20-2001 06:29 PM
linking with shared libraries kobilevi Programming 0 03-01-2001 11:09 AM


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