1

Phabricatorのインストールおよび構成ガイドに従いました: http ://www.phabricator.com/docs/phabricator/article/Installation_Guide.html http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html

に移動しhttp://localhostて最終セットアップを実行すると、gitコマンドが見つからないというメッセージが表示されます(「警告pcntlが利用できません!」という警告も表示されます)。

PHABRICATOR SETUP

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This setup mode will guide you through setting up your Phabricator configuration.


>>>  CORE CONFIGURATION  -------------------------------------------------------

 okay  PHP's deprecated 'safe_mode' is disabled.
 okay  'open_basedir' is not set.
[WARN] You have not configured 'security.alternate-file-domain'. This makes your installation vulnerable to attack. Make sure you read the documentation for this parameter and understand the consequences of leaving it unconfigured.
 okay  $PATH is nonempty.
[OKAY] Core configuration OKAY.


>>>  REQUIRED PHP EXTENSIONS  --------------------------------------------------

 okay  Extension 'mysql' installed.
 okay  Extension 'hash' installed.
 okay  Extension 'json' installed.
 okay  Extension 'openssl' installed.
 okay  Extension 'mbstring' installed.
 okay  Extension 'iconv' installed.
 okay  Extension 'curl' installed.
 okay  PHP binary found on the command line.
 okay  PHP is available from the command line.
 okay  'php' is CLI SAPI.
 warn  pcntl is not available!
[WARN] *** WARNING *** pcntl extension not available. You will not be able to run daemons.


>>>  GIT SUBMODULES  -----------------------------------------------------------

EXCEPTION!
exception 'CommandException' with message 'Command '(cd '/Users/piotr/Phabricator/phabricator' && git submodule status)' failed with error #127:
stdout:

stderr:
sh: git: command not found

' in /Users/piotr/Phabricator/libphutil/src/future/exec/ExecFuture.php:334
Stack trace:
#0 /Users/piotr/Phabricator/libphutil/src/future/exec/execx.php(34): ExecFuture->resolvex()
#1 /Users/piotr/Phabricator/phabricator/src/infrastructure/PhabricatorSetup.php(264): execx('(cd %s && git s...', '/Users/piotr/Ph...')
#2 /Users/piotr/Phabricator/phabricator/webroot/index.php(121): PhabricatorSetup::runSetup()
#3 {main}

また、私はgitを持っており、ターミナルから問題なく実行できることにも言及したいと思います。

4

2 に答える 2

1

Webサーバーが実行されているユーザーを見つけ、そのユーザーの環境変数にgit含まれているかどうかを調べます。path

于 2012-10-28T15:00:41.387 に答える
0

私はそれを解決しました。

問題は、PHでpcntl拡張機能が欠落していることでした。ソースからコンパイルする必要がありました(ここで説明されているように:http://blog.lancerushing.com/2011/02/getting-phps-pcntl-working-on-snow.html)。

于 2012-10-29T10:04:37.257 に答える