Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Installing libssh2 and ssh2-0.9

Installing libssh2 and ssh2-0.9
Thread Tools
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Sep 20, 2005, 12:05 PM
 
I'm trying to install the ssh2 PECL extension for PHP, but I'm running into some problems. The ss2 package requires libssh2, so I downloaded that from sourceforge and ran the installation commands './configure && make all install'. That goes through all the configuration and installation and then tells me 'make: `install' is up to date.'.

So then I try to install ssh2 with the 'pear install ssh2-0.9' command. That does it's thing then gives me this error 'configure: error: The required libssh2 library was not found. You can obtain that package from http://sourceforge.net/projects/libssh2/
`/private/tmp/tmpNqUJ7w/ssh2-0.9/configure' failed'.

So it looks like libssh2 is failing to actually install. I've done some google searching and, as usual, found a bunch of people reporting the exact same problem but not a single person explaining how to fix it.

Has anyone here run into this issue or have any idea what I can do to fix it? It really does look like the libssh2 install just isn't working as the prefix in the make file is set to /usr/local, and there's nothing in /usr/local or /usr/local/lib that has anything to do with ssh2.
(Last edited by nonhuman; Sep 21, 2005 at 03:24 PM. )
     
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Sep 20, 2005, 12:57 PM
 
I have never been able to install any PECL extension using PEAR on OS X. You would probably be better off just getting the source and compiling it manually.

I don't think PEAR will install libssh2 for you, but I could be wrong. I think that is what that message is saying. You want to go to that URL, download the source, and compile and install it.

I would also then just install the ssh2 PECL extension manually as well.
The only thing necessary for evil to flourish is for good men to do nothing
- Edmund Burke
     
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Sep 20, 2005, 01:19 PM
 
Yeah, PEAR won't install libssh2, I did download the source and tried installing it in the normal UNIX way (./configure && make [all] install). I'll try installing ssh2 without using PEAR.

Thanks.
     
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Sep 20, 2005, 01:41 PM
 
Still complains that libssh2 isn't installed, so I'm pretty sure the problem is with the libssh2 installation process.
     
Grizzled Veteran
Join Date: Oct 2003
Status: Offline
Reply With Quote
Sep 20, 2005, 02:17 PM
 
How did you attempt to install libssh2? Were there any errors during its install process?

The usual OS X method for installing unix stuff is:
./configure
make
sudo make install

You must run the install part as root, hence the sudo. An admin account is not good enough.
The only thing necessary for evil to flourish is for good men to do nothing
- Edmund Burke
     
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Sep 20, 2005, 03:24 PM
 
I did:
Code:
sudo su - ./configure make all install
'make all install' is what the install instructions for libssh2 say to use. I also tried several variations on the make command including just the usual 'make install' and 'make && make install'.

[edit: and in between the various make commands I put a 'make clean' just to be sure]
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:37 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2