Created
November 29, 2011 03:28
-
-
Save brennanneoh/1403250 to your computer and use it in GitHub Desktop.
setting up libssh2 + php ssh2 for xampp 1.7.3 (osx)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ brew install -i libssh2 | |
/* architecture tags are import. xampp 1.7.3 (osx) is x86. */ | |
$ ./configure --prefix=/usr/local --disable-debug --disable-dependency-tracking --with-openssl --with-libz CFLAGS="-O -arch i386" CPPFLAGS="-O -arch i386" LDFLAGS="-arch i386" | |
$ make install | |
$ exit | |
/* assuming you have wget installed on osx */ | |
$ wget http://pecl.php.net/get/ssh2-0.11.3.tgz | |
$ tar -zxvf ssh2-0.11.3.tgz | |
$ cd ssh2-0.11.3 | |
/* assuming you have XAMMP's bin directory in your environment */ | |
$ phpize-5.3.1 | |
$ ./configure CFLAGS="-O -arch i386" CPPFLAGS="-O -arch i386" LDFLAGS="-arch i386" | |
$ make | |
/* finally, copy the compiled module to the php extensions library */ | |
$ cp modules/ssh2.so /Applications/XAMPP/xamppfiles/lib/php/php-5.3.1/extensions/no-debug-non-zts-20090626 |
@Sorcery I'm stumped, I keep getting an error when I try and configure ssh2
configure: error: libssh2 version >= 1.2 not found
I followed the installation for libssh2, seemed to work, I have libssh2 files in /usr/local/lib
Any ideas? Thanks
Getting a "missing separator" error after running make install
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Sorcery, thanks dude this helps me out as well!