当我运行这些步骤时:
mkdir dev
cd dev
git clone git://github.com/facebook/hhvm.git
cd hhvm
git submodule init
export CMAKE_PREFIX_PATH=`pwd`/..
export HPHP_HOME=`pwd`
cd ..
url:https://github.com/facebook/hhvm/wiki/Building-and-installing-HHVM-on-Ubuntu-12.04
我遇到git submodule init
我遇到错误:Submodule 'hphp/submodules/folly' () registered for path 'hphp/submodules/folly'
我不知道它意味着什么,它看起来不像致命的错误......
更新:
git submodule sync
确实同步了php / submodules / folly但仍然是同样的错误...
答案 0 :(得分:1)
我会尝试:
git submodule update --init --recursive
并确保“Submodule 'xxx' registered for path 'yyy'
”确实是错误消息:它看起来像是git submodule init
命令的标准答案。
来自git submodule
book page:
rack
目录在那里,但是空 您必须运行两个命令:
git submodule init
初始化您的本地配置文件, git submodule update
从该项目中获取所有数据并检查超级项目中列出的相应提交:
$ git submodule init
Submodule 'rack' (git://github.com/chneukirchen/rack.git) registered for path 'rack'
$ git submodule update
Initialized empty Git repository in /opt/myproject/rack/.git/
remote: Counting objects: 3181, done.
remote: Compressing objects: 100% (1534/1534), done.
remote: Total 3181 (delta 1951), reused 2623 (delta 1603)
Receiving objects: 100% (3181/3181), 675.42 KiB | 173 KiB/s, done.
Resolving deltas: 100% (1951/1951), done.
Submodule path 'rack': checked out '08d709f78b8c5b0fbeb7821e37fa53e69afcf433'
我更喜欢只运行一个命令:
git submodule update --init