2008年02月26日 13:33
MacPortsでApache2のインストールにこける理由
下記のエラーでインストールに失敗する。
/opt/local/include/uuid.h:94: error: conflicting types for 'uuid_t'
/usr/include/unistd.h:133: error: previous declaration of 'uuid_t' was here
make[1]: *** [misc/unix/rand.lo] Error 1
make: *** [all-recursive] Error 1
どうやら、インストールの順番が悪いらしい。
順番の悪さを指摘しているのは、macosforgeの次の投稿。
http://lists.macosforge.org/pipermail/macports-users/2008-February/008780.html
ここからフォローアップを読んでいくと、/opt/local/include/uuid.hというのが悪さをしているらしい。
このuuid.hファイルの出所を調べてみる。
port provides /opt/local/include/uuid.h
/opt/local/include/uuid.h is provided by: ossp-uuid
フォローアップの人はどうやら、postgresql83を入れたときに入ったらしい。
うちは、postgresql83を入れて削除して。
さらに、postgresql82を入れている。
どちらのファイルが残っているのか分からないが、とにかくpostgresql82を削除して、もう一度やってみよう。



