Solved

RedHat

Posted on 2013-01-23
5
358 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
Comment Utility
Issue command
yum -y install libssh2

Open in new window

0
 

Author Comment

by:Jack_son_
Comment Utility
it says no package is available
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 250 total points
Comment Utility
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
Comment Utility
yum search libssh2
0
 
LVL 3

Accepted Solution

by:
tkuther earned 125 total points
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.

772 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

11 Experts available now in Live!

Get 1:1 Help Now