note 80617 added to ref.ssh2
| From: | XmisterIS at osu1 dot php dot net | Date: | Fri, 25 Jan 2008 11:01:33 +0000 |
| Subject: | note 80617 added to ref.ssh2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135397@lists.php.net to get a copy of this message | ||
When installing SSH2 on Debian Etch using gcc 4.1.2, compilation of ssh2.c failed with a whole load
of errors (too many to show here).
A lot of people seem to have had this problem with a variety of flavours of Linux and gcc. The
solution that worked for me is as follows:
Presuming you've downloaded, and extracted the pecl lib you can patch it manually by opening up
ssh2.c and reading down the script untill you get to the line that reads:
#if LIBSSH2_APINO < 200412301450
Change it to read
#if LIBSSH2_VERSION_NUM < 0x001000
Save the file and run
phpize && ./configure --with-ssh2 && make
Then carry on from there.
Incidentally, if you run "make install" rather than just "make" as the root user
then the make process *should* automatically copy ssh2.so into your php.ini extension_dir, provided
your environment is correct.
----
Server IP: 87.124.64.96
Probable Submitter: 86.133.25.170
----
Manual Page -- http://www.php.net/manual/en/ref.ssh2.php
Edit -- https://master.php.net/note/edit/80617
Del: integrated -- https://master.php.net/note/delete/80617/integrated
Del: useless -- https://master.php.net/note/delete/80617/useless
Del: bad code -- https://master.php.net/note/delete/80617/bad+code
Del: spam -- https://master.php.net/note/delete/80617/spam
Del: non-english -- https://master.php.net/note/delete/80617/non-english
Del: in docs -- https://master.php.net/note/delete/80617/in+docs
Del: other reasons-- https://master.php.net/note/delete/80617
Reject -- https://master.php.net/note/reject/80617
Search -- https://master.php.net/manage/user-notes.php