note 72183 added to ref.ssh2

From: Date: Sat, 06 Jan 2007 06:11:58 +0000
Subject: note 72183 added to ref.ssh2
Groups: php.notes 
Request: Send a blank email to php-notes+get-121348@lists.php.net to get a copy of this message
For those trying to use this under an x86_64 version of an rpm-based distribution (e.g. CentOS, RHEL or Fedora Core) who don't have an rpm for libssh2, here's a work around. Locate the source rpm for an i386 version (for instance from dag or dries) and rebuild it: rpmbuild --rebuild --target x86_64 libssh2-*.src.rpm If the rebuild complains about not being able to find something and references a path beginning /var/tmp or /tmp, it may very well have built the files but failed due to a minor error in the spec file. I was too lazy to fix the spec file, so I just manually copied the files into place. In my case, the path in the error included /var/tmp/libssh2-0.12-root/usr/lib/... Note that libssh2 part? That's the area where all the files are dumped during the rpmbuild process. if you move everything in there to the comparable place on your drive, you're golden. In this case libssh2.so was in /var/tmp/libssh2-0.12-root/usr/lib/ Strip off the /var/tmp/libssh2* part and you find out the libssh2.so file goes in /usr/lib/ Enjoy. ---- Server IP: 64.71.164.2 Probable Submitter: 71.39.48.81 ---- Manual Page -- http://www.php.net/manual/en/ref.ssh2.php Edit -- https://master.php.net/note/edit/72183 Del: integrated -- https://master.php.net/note/delete/72183/integrated Del: useless -- https://master.php.net/note/delete/72183/useless Del: bad code -- https://master.php.net/note/delete/72183/bad+code Del: spam -- https://master.php.net/note/delete/72183/spam Del: non-english -- https://master.php.net/note/delete/72183/non-english Del: in docs -- https://master.php.net/note/delete/72183/in+docs Del: other reasons-- https://master.php.net/note/delete/72183 Reject -- https://master.php.net/note/reject/72183 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#121348) next »