CentOSにPythonモジュールpyexiv2をインストールしますか?

CentOSにPythonモジュールpyexiv2をインストールしますか?

最新のpyexiv2ファイルpyexiv2-0.3.2.tar.bz2をダウンロードしてREADMEファイルを確認しました。

To build and install the library, while in the top-level directory
(e.g. '~/dev/pyexiv2', which should contain a file named 'SConstruct'),
run the following commands:

 $ scons
 $ scons install # as administrator, e.g. `sudo scons install`

The result of the build is a dynamic library, libexiv2python.so, in the build/
directory. This is the low-level binding. It is in turn used in a higher level
module, pyexiv2.
The install command installs the two modules in your site-specific directory for
Python modules (e.g. '/usr/lib/python2.7/dist-packages/' on Linux).

これが私がしたことですsu(現在のルートとして実行しています)。

cp -r 'pyexiv2-0.3.2' ~

次に、次を実行します。scons

それは言う:

scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
o build/exiv2wrapper.os -c -fPIC -I/usr/include/python2.6 src/exiv2wrapper.cpp
sh: o: command not found
o build/exiv2wrapper_python.os -c -fPIC -I/usr/include/python2.6 src/exiv2wrapper_python.cpp
sh: o: command not found
o build/libexiv2python.so -shared build/exiv2wrapper.os build/exiv2wrapper_python.os -lboost_python -lexiv2
sh: o: command not found
scons: done building targets.

ここでどこに行くべきアイデアがありますか?

ベストアンサー1

sconsのインストールに問題があるか、g ++がインストールされていません。 scons レポートは同じソースから提供されます。

g++ -o build/exiv2wrapper.os -c -fPIC -I/usr/include/python2.7 src/exiv2wrapper.cpp

私のため。一度見たり/usr/lib/scons/SCons/Tool/g++.py試してみましょう。

$ g++ --version

エラーがどこにあるかを確認してください。 g++がインストールされていない場合はインストールしてください。 sconsサポートファイルが破損している場合は、デバッグよりも再インストールする方が簡単です。

おすすめ記事