I got bored, and people at work couldn't get hiphop compiled, so I
made a deb for Ubuntu 64-bit Server (Lucid LTS). I don't know if it
works on 10.10, but give it a shot.
http://dl.dropbox.com/u/513928/panda-hiphop-0.1.deb
If I am missing any dependencies, or it doesn't work for you, please
ping me back with a terminal dump. I tested it against a fresh 10.04
64-bit install in a Virtualbox instance.
Instructions below.
Cheers, M.
1) Install panda-hiphop-0.1.deb
2) Run apt-get -f install to fix all the dependencies.
3) Add this to your env/profile:
export HPHP_HOME=/opt/hiphop/hiphop-php
export PATH=/opt/hiphop/bin:$PATH
export CMAKE_PREFIX_PATH=/opt/hiphop
4) Profit!
Example:
root@ubuntu:~/test# dpkg -i panda-hiphop-0.1.deb
... etc etc ...
root@ubuntu:~/test# apt-get -f install
... etc etc ....
root@ubuntu:~/test# export HPHP_HOME=/opt/hiphop/hiphop-php
root@ubuntu:~/test# export PATH=/opt/hiphop/bin:$PATH
root@ubuntu:~/test# export CMAKE_PREFIX_PATH=/opt/hiphop
root@ubuntu:~/test# cat index.php
<?php
phpinfo();
root@ubuntu:~/test# hphpi index.php
HipHop
root@ubuntu:~/test# hphp --keep-tempdir=1 --log=3 index.php
running hphp...
creating temporary directory /tmp/hphp_cHBO0J ...
parsing inputs...
parsing inputs took 0'00" (4 ms) wall time
pre-optimizing...
pre-optimizing took 0'00" (0 ms) wall time
inferring types...
inferring types took 0'00" (0 ms) wall time
post-optimizing...
post-optimizing took 0'00" (0 ms) wall time
creating CPP files...
creating CPP files took 0'00" (173 ms) wall time
compiling and linking CPP files...
compiling and linking CPP files took 1'33" (93782 ms) wall time
running executable /tmp/hphp_cHBO0J/program --file index.php...
HipHop
all files saved in /tmp/hphp_cHBO0J ...
running hphp took 1'34" (94138 ms) wall time
root@ubuntu:~/test# cd /tmp/hphp_chO0J
bash: cd: /tmp/hphp_chO0J: No such file or directory
root@ubuntu:~/test# cd /tmp/hphp_cHBO0J
root@ubuntu:/tmp/hphp_cHBO0J# ./program
HipHop
root@ubuntu:/tmp/hphp_cHBO0J# ./program -m server -p 8080 &
[1] 12541
root@ubuntu:/tmp/hphp_cHBO0J# mapping self...
mapping self took 0'00" (20 ms) wall time
loading static content...
loading static content took 0'00" (0 ms) wall time
page server started
admin server started
all servers started
root@ubuntu:/tmp/hphp_cHBO0J# curl -i "
http://127.0.0.1:8080/
index.php"
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Date: Fri, 26 Nov 2010 19:27:36 GMT
Content-Length: 7
HipHop
root@ubuntu:/tmp/hphp_cHBO0J# sudo killall program
[1]+ Terminated ./program -m server -p 8080
root@ubuntu:/tmp/hphp_cHBO0J#