Solved

RedHat

Posted on 2013-01-23
5
360 Views
Last Modified: 2013-02-14
I need to install libssh2 from the command line.  Can someone let me know the steps?
0
Comment
Question by:Jack_son_
5 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 250 total points
ID: 38810134
Issue command
yum -y install libssh2

Open in new window

0
 

Author Comment

by:Jack_son_
ID: 38810208
it says no package is available
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 250 total points
ID: 38810226
What is your version?

cat /etc/redhat-release

Open in new window


What repositories do you have?
yum repolist all

Open in new window


Can you install it from RedHat DVD or CD?
0
 
LVL 19

Assisted Solution

by:jools
jools earned 125 total points
ID: 38810312
yum search libssh2
0
 
LVL 3

Accepted Solution

by:
tkuther earned 125 total points
ID: 38813553
The libssh2 package is part of the rhel-$(uname -m)-server-6 repo in RHEL6.
You seem to be using RHEL 5 (or older).

So either you compile yourself, or use a 3rd party repo like repoforge.org

To add that one single libssh2 package (might need additional deps):
rpm -Uvh http://pkgs.repoforge.org/libssh2/libssh2-1.2.9-1.el5.rf.$(uname -m).rpm

Open in new window

To add the whole repo and libssh2:
rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.$(uname -m).rpm
yum install libssh2

Open in new window


If you are infact using RHEL6 your box is not registered to RHN correctly.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
This article discusses four methods for overlaying images in a container on a web page
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now