Watchman のインストール中に「Python.h」ファイルが見つかりません 質問する

Watchman のインストール中に「Python.h」ファイルが見つかりません 質問する

私は Linux Mint 17 'Quiana' を使用しており、後で Ember.js を使用するために Watchman をインストールしたいと考えています。手順は次のとおりです。

$ git clone https://github.com/facebook/watchman.git

それから

$ cd watchman
$ ./autogen.sh
$ ./configure.sh

ファイルをコンパイルするために実行するとmake、次のエラーが返されました。

pywatchman/bser.c:31:20: fatal error: Python.h: no such file or directory
#include <Python.h>
                ^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
make[1]: *** [py-build] Error 1
make[1]: Leaving the directory `/home/alex/watchman'
make: *** [all] Error 2

走ろうとした

$ sudo apt-get install python3-dev

しかし、すでにシステム内にあるようです。何を間違えたのでしょうか?

ベストアンサー1

通常、python-devライブラリが不足しています。configure で python 2 ではなく python 3 が使用されていることを確認していますか? その場合は、python-devではなくをインストールする必要がありますpython3-dev

おすすめ記事