how do I installing ssh2?

flumps

Verified User
Joined
Dec 29, 2003
Messages
111
im trying to install ssh php extension and I just keep getting a make error 1 message:

make: *** [ssh2.lo] Error 1

and its driving me insane can anyone help me get it working on my VPS

as far as im aware libssh installed ok, didnt see any errors.

openssl is installed etc.

any ideas please?
 
found the solution if anyone else is suffering the same issues here is the answer:

If after running phpize && ./configure --with-ssh2 && make you end up with an error like make: *** [ssh2.lo] Error 1 you will have to do a small hack.

[root@box1 ssh2-0.10]# vi ssh2.c
Search for the line:
#if LIBSSH2_APINO < 200412301450
and edit it to look like:
#if LIBSSH2_VERSION_NUM < 0x001000
Save the file and run phpize && ./configure --with-ssh2 && make again.
 
Back
Top