The old quest开发者_StackOverflowion is below. The problem was ftp transfer mode wasn't binary.
But now i have another issue.
Running hiphop compiled file gives following error (The one compiled on another computer).
"error while loading shared libraries: libmemcached.so.7:cannot open shared object file:No such file or directory."
But native compiled one works with no trouble.
How can i link or load such library? Can anybody help me out?
I'm using ubuntu 11.04 on both home and vps server. I followed this (https://github.com/facebook/hiphop-php/wiki/Building-and-Installing-on-Ubuntu-11.04) instruction to set facebook's hiphop up. And i did achived to compile my php sources to executable binary on both server and home pc.
But if i send the binary file to server which s compiled from home pc it doesn't run and prompts as "can not execute binary file".
But server can run the binary file compiled in itself.
Why i just can't run this home compiled file on server. (It runs at home)
Are your desktop and server using the same architecture? Binaries compiled on a 64-bit system will not run on a 32-bit OS, and binaries compiled on a 32-bit OS will require the ia32-libs
package to be installed on a 64-bit system.
I figured it out. I created same user name on my vps as i have on my home computer. Gave it sudoers right. (visudo)
And build hiphop in the same directory as i did on my home computer. Now it runs with the new user.
精彩评论