Ubuntu VMにTORQUEポータブルバッチシステム(PBS)をインストールすると、次のエラーが発生します。
checking for lseek64... yes ./configure: line 17951: ac_fn_c_check_member: command not found checking for struct stat64.st_mode... yes checking if largefile compiles (looking at you, OSX)... checking for pthread_create in -lpthread... yes checking for xmlGetProp in -lxml2 -lz -llzma -lpthread -lm -ldl... no configure: error: TORQUE needs libxml2-devel in order to build
解決策:
libxml2-dev
をインストールする必要があります 以下に示すようにapt-getを使用したパッケージ:
#sudo apt-get install libxml2-dev
libxml2-devをインストールした後でも、同じエラーが表示されます。 --with-libxml2
を使用してconfigureコマンドを実行する必要があります 以下に示すように、xml2-configバイナリを指すオプション:
#./configure --prefix=/usr/local/torque --with-libxml2=/usr/bin/xml2-config
xml2-configバイナリを見つける方法
libxml2-devをインストールした後、xml2-configバイナリを見つけるには、次のコマンドに従います。
#whereis xml2-config xml2-config: /usr/bin/xml2-config /usr/share/man/man1/xml2-config.1.gz
ハッピーインストール!