2012-02-28 80 views
0

我試圖使用或者easy_installpip但都嘗試用相同的錯誤端安裝PyTables:無法安裝PyTables

error: Command "gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DNDEBUG=1 -DHAVE_LZO2_LIB=1 -DHAVE_BZ2_LIB=1 -Iblosc -I/usr/lib/pymodules/python2.7/numpy/core/include -I/usr/include/python2.7 -c src/H5ARRAY.c -o build/temp.linux-x86_64-2.7/src/H5ARRAY.o -Isrc -DH5_USE_16_API" failed with exit status 1

我已經安裝了所有的依賴。

  • 找到安裝了numexpr 1.4.2的軟件包。
  • 找到安裝的Cython 0.14.1軟件包。
  • /usr/include處找到HDF5標題,庫位於/usr/lib
  • /usr/include找到LZO 2標題,庫在/usr/lib
  • 由於LZO 2已被找到,所以跳過LZO 1的檢測。
  • 找到bzip2標題/usr/local/include,圖書館/usr/local/lib

但仍然有一個警告:

.. WARNING:: Could not find the bzip2 runtime. The bzip2 shared library was *not* found in the default library paths. In case of runtime problems, please remember to install it.

是否有可能,這個警告阻止成功安裝PyTables?

+0

有沒有比你包括一個其他錯誤消息? 「退出狀態1失敗」只是表示命令失敗,不是原因。在它之前應該有一個錯誤信息,或者一個出現的方法。 – millimoose 2012-02-28 16:13:08

+1

謝謝Inerdial的回覆,我發現這個:從/sr/include/hdf5.h:24:0,包含的文件src/H5ATTR.h:19, 來自src/H5ARRAY.c:1: /usr/include/H5public.h:57:20:致命錯誤:mpi.h:沒有這樣的文件或目錄 編譯終止。 – 2012-02-29 10:20:00

+1

您可能需要安裝http://mvapich.cse.ohio-state.edu/overview/mvapich2/ – synthesizerpatel 2012-02-29 12:27:26

回答

1

嘗試補充一點:

-I/usr/include/mpi