38

CMake を使用して GitHub から取得したコードをビルドしようとしていますが、次のエラーが発生し続けます。

CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file:/golang/project/src/github.com/devsisters/goquic/libquic/build/debug/CMakeFiles/2.8.11/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file:/golang/project/src/github.com/devsisters/goquic/libquic/build/debug/CMakeFiles/2.8.11/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occurred!

これらの変数を正しく設定するにはどうすればよいですか?

./build_libs.shこれをビルドするために、GitHub コードに付属のファイルを使用しました。

4

5 に答える 5

50

実行しているスクリプトは、CMake Ninja ジェネレーターを使用します。それが機能するには、パスに忍者が必要です。ほとんどの Linux ディストリビューションでは、パッケージからインストールできます。

Ubuntu: 忍者ビルド

openSUSE : 忍者

ディストリビューションで見つからない場合は、ダウンロードして、その場所をpath環境変数に追加する必要があります。

于 2016-07-29T14:20:31.827 に答える