2017-06-05 7 views
0

ソースからNinjaをビルドしようとしました。私がやった:subprocess.pyエラー:忍者がWindows 8のソースからビルドしていません

$ C:\Python27\python.exe configure.py --bootstrap 

しかし、ここで私は次のエラーを取得する:

$ git clone git://github.com/martine/ninja.git && cd ninja 
$ git checkout release 

はその後のVisual Studioコマンドラインで私は、Pythonと configure.py走っ

C:\ninja>C:\Python27\python.exe configure.py --bootstrap 
bootstrapping ninja... 
Traceback (most recent call last): 
    File "configure.py", line 320, in <module> 
    if platform.msvc_needs_fs(): 
    File "configure.py", line 84, in msvc_needs_fs 
    stderr=subprocess.PIPE) 
    File "C:\Python27\Lib\subprocess.py", line 390, in __init__ 
    errread, errwrite) 
    File "C:\Python27\Lib\subprocess.py", line 640, in _execute_chi 
    startupinfo) 
WindowsError: [Error 2] The system cannot find the file specified 

this答えを読んだ後に、すべてcall()shell=Trueを追加し、configure.pycheck_call()という出現を追加しました。しかし、それはまだ助けになりません。

何をすべきか?

答えて

1

code in questionを見ると、Microsoft Visual C++の一部であるclを実行しようとしています。

MSVCがインストールされていて、PATHにはありますか?私。コマンドラインでclを実行するだけですか?

+1

Microsoft Visual C++がインストールされていても、コマンドラインで 'cl'を実行しても機能しません。 –

+1

これはおそらく、PATHにないことを意味します。 – AKX

+1

私はC:\ドライブ全体を調べましたが、Microsoft Visual C++へのパスが見つかりませんでした。ただし、インストールされているアプリケーションの一覧(コントロールパネルの[プログラムと機能])に表示されています。 –

関連する問題