简体   繁体   English

尝试在“模式2(在临时目录中编译HipHop并从命令行运行已编译程序)”中运行HipHop时出错

[英]Error while trying to run the HipHop in “Mode 2(Compiling HipHop in a temporary directory and running the compiled program from the command line)”

I have installed the HipHop and all the dependencies in my VM(Ubuntu 12.04 LTS), no issues faced while setting up the environment. 我已经在我的VM(Ubuntu 12.04 LTS)中安装了HipHop和所有依赖项,设置环境时没有遇到任何问题。 But I am not able to run the HipHop in Mode 2 or 3 or 4 or 5 as specified in the wiki document https://github.com/facebook/hiphop-php/wiki/Running-HipHop . 但是我无法按照Wiki文档https://github.com/facebook/hiphop-php/wiki/Running-HipHop中指定的模式2或3或4或5运行HipHop。

I am trying to run the HipHop in Mode 2 then facing some error with a message of "sudo: /tmp/hphp_DF8jr8/program: command not found", can you please help me to fix this issue and start using the HipHop in a correct direction. 我正在尝试在模式2中运行HipHop,然后遇到一些错误,并显示消息“ sudo:/ tmp / hphp_DF8jr8 / program:未找到命令”,请您帮我解决此问题,然后开始正确使用HipHop方向。

Just posting my terminal response for your reference: 只需发布我的终端回复以供您参考:

siva@siva-Parallels-Virtual-Platform:~/dev/hiphop-php$ $HPHP_HOME/src/hphp/hphp /var/www/test.php k 1 --log=3 siva @ siva-Parallels-Virtual-Platform:〜/ dev / hiphop-php $ $ HPHP_HOME / src / hphp / hphp /var/www/test.php k 1 --log = 3
running hphp... 正在运行hphp ...
creating temporary directory /tmp/hphp_DF8jr8 ... 创建临时目录/ tmp / hphp_DF8jr8 ...
parsing inputs... 解析输入...
parsing inputs took 0'00" (3 ms) wall time 解析输入花了0'00“(3 ms)的时间
pre-optimizing... 预优化...
pre-optimizing took 0'00" (0 ms) wall time 预优化花了0'00“(0 ms)的时间
analyze includes... 分析包括...
analyze includes took 0'00" (0 ms) wall time 分析包括耗时0'00“(0毫秒)
inferring types... 推断类型...
inferring types took 0'00" (0 ms) wall time 推断类型花费0'00“(0 ms)的时间
post-optimizing... 后优化...
post-optimizing took 0'00" (1 ms) wall time 后优化耗时0'00“(1毫秒)
creating binary HHBC files... 创建二进制HHBC文件...
creating binary HHBC files took 0'00" (6 ms) wall time 创建二进制HHBC文件花费0'00“(6 ms)的时间
running executable /home/siva/dev/hiphop-php/src/hhvm/hhvm -vRepo.Authoritative=true -vRepo.Commit=false -vRepo.Local.Mode=r -vRepo.Local.Path=/tmp/hphp_DF8jr8/hhvm.hhbc --file /var/www/test.php... 运行可执行文件/ home / siva / dev / hiphop-php / src / hhvm / hhvm -vRepo.Authoritative = true -vRepo.Commit = false -vRepo.Local.Mode = r -vRepo.Local.Path = / tmp / hphp_DF8jr8 / hhvm.hhbc --file /var/www/test.php ...
This is my first php programm...all files saved in /tmp/hphp_DF8jr8 ... 这是我的第一个php程序...所有文件保存在/ tmp / hphp_DF8jr8中...
running hphp took 0'00" (443 ms) wall time 运行hphp花了0'00“(443毫秒)的时间

siva@siva-Parallels-Virtual-Platform:~/dev/hiphop-php$ /tmp/hphp_DF8jr8/program siva @ siva-Parallels-Virtual-Platform:〜/ dev / hiphop-php $ / tmp / hphp_DF8jr8 / program
bash: /tmp/hphp_DF8jr8/program: No such file or directory bash:/ tmp / hphp_DF8jr8 / program:没有这样的文件或目录

siva@siva-Parallels-Virtual-Platform:~/dev/hiphop-php$ sudo /tmp/hphp_DF8jr8/program siva @ siva-Parallels-Virtual-Platform:〜/ dev / hiphop-php $ sudo / tmp / hphp_DF8jr8 / program
sudo: /tmp/hphp_DF8jr8/program: command not found sudo:/ tmp / hphp_DF8jr8 / program:找不到命令

Thanks, 谢谢,
Siva 西瓦

You forgot to to add --keep-tempdir option. 您忘记添加--keep-tempdir选项。 See docs on your link more carefully. 请更仔细地查看链接上的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM