2012年1月19日木曜日

Python でお気楽並列コンピューティング:openmpi-1.2.8 のインストール



今、MYMPIを使おうと四苦八苦していますが、
その覚え書きを書いていく。

まず、openmpi-1.2.8の導入で躓いた。
libtool のバージョンが違うというエラー。
コンピュータのlibtoolのバージョンは1.5.8。
2.1aを要求されているようなので、libtoolのサイトに探しに行ったが、
無い。
仕方なく2.4.2なるものを入れてみたがやっぱりこけた。
2.2.2にしてもこける。

make distclean でフォルダーを初期化(make maintainer-clean)。

make distclean
autoreconf --force --install
./configure --enable-shared --prefix=/home/openmpi/
make
make install

make のところでやっぱりこける。

../../libtool: line 463: CDPATH: command not found
../../libtool: line 1266: func_opt_split: command not found
libtool: Version mismatch error.  This is libtool 2.1a, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.1a
libtool: and run autoconf again.

なんやねん!

[追記]
さらにググってみる。
m4のバージョンが1.4.11だけどこれがだめなのか????
http://blog.k-tai-douga.com/article/26604536.html

libtoolまわりを疑ったがどうやら
tarballからの展開してインストールするのにauto tools は必要ないらしい。
(openmpi Q&Aより。)

そこでもう一度tarballの展開からはじめて見た。

tar jxf openmpi-1.2.8.tar.bz2
cd openmpi-1.2.8
./configure --enable-shared --prefix=/home/openmpi/
make all install
なんと通った。

考察
make all install が有効だった?(make  make installではなく)
結局なんで最初うまくいかず、今回うまくいったのかよくわからないけど。。。。

良かったー ;-)

[自分用メモ書き]
tar jxf openmpi-1.2.8.tar.bz2


参考サイト
http://www.fireproject.jp/feature/automake/basic/intro.html





このエントリーをはてなブックマークに追加



0 件のコメント :

コメントを投稿