note 72183 deleted from ref.ssh2 by langemeijer
| From: | langemeijer@php.net | Date: | Sat, 10 Nov 2012 14:30:10 +0000 |
| Subject: | note 72183 deleted from ref.ssh2 by langemeijer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191843@lists.php.net to get a copy of this message | ||
Note Submitter: Tim Wood
----
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.