1

ubuntu マシンに pygit2 ライブラリをインストールする必要があります。「pip install pygit2」をしようとすると、以下のエラーが発生します。

cffi.ffiplatform.VerificationError: CompileError: コマンド 'x86_64-linux-gnu-gcc' が終了ステータス 1 で失敗しました


クリーンアップ... /tmp/pip_build_root/pygit2 でコマンド python setup.py egg_info がエラー コード 1 で失敗しました /root/.pip/pip.log に失敗のデバッグ ログを保存しています

これに先立って、私はうまくいった次のことをしました(http://www.pygit2.org/install.html#quick-install)。

$ wget https://github.com/libgit2/libgit2/archive/v0.22.0.tar.gz
$ tar xzf v0.22.0.tar.gz
$ cd libgit2-0.22.0/
$ cmake .
$ make
$ sudo make install

私のマシンにはすでに libffi6 があります。

sudo apt-get install libffi6 libffi-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libffi-dev is already the newest version.
libffi6 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
4

1 に答える 1