PDA

View Full Version : how do I installing ssh2?



flumps
10-20-2008, 10:01 AM
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?

flumps
10-21-2008, 09:22 AM
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.