###前提・実現したいこと
raspberrypi3のpython3で気象情報を取得するためにlxmlのモジュールをインストールしようとしています。
###発生している問題・エラーメッセージ
ターミナルを使って、pip3でlxmlというモジュールをインストールしようとしてるのですが、以下のようなエラーメッセージが、、、
文字数の関係で前半は省いています。
###該当のソースコード
building 'lxml.etree' extension
creating build/temp.linux-armv7l-3.4
creating build/temp.linux-armv7l-3.4/src
creating build/temp.linux-armv7l-3.4/src/lxml
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fPIC -Isrc/lxml/includes -I/usr/include/python3.4m -c src/lxml/lxml.etree.c -o build/temp.linux-armv7l-3.4/src/lxml/lxml.etree.o -w
In file included from src/lxml/lxml.etree.c:515:0:
src/lxml/includes/etree_defs.h:14:31: fatal error: libxml/xmlversion.h: そのようなファイルやディレクトリはありません
#include "libxml/xmlversion.h"
^
compilation terminated.
Compile failed: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
creating tmp
cc -I/usr/include/libxml2 -c /tmp/xmlXPathInitw2e7gtjx.c -o tmp/xmlXPathInitw2e7gtjx.o
/tmp/xmlXPathInitw2e7gtjx.c:1:26: fatal error: libxml/xpath.h: そのようなファイルやディレクトリはありません
#include "libxml/xpath.h"
^
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Cleaning up...
Command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-7xuy5smn/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-viir9bwr-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-7xuy5smn/lxml
Storing debug log for failure in /home/pi/.pip/pip.log
###試したこと
Is libxml2 installed? と、聞かれているため、libxml2をapt-getでインストールしたのですが、すでに最新版ですと表示され、お手上げ状態です、、、初心者ですいません、ご教示願います。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/07/06 18:48
2017/07/06 18:54