[pgsql-jp: 25327] Re: 7.2 での Pg.pm のインストールエラーについて

Linux @ Lupin.net Linux @ Lupin.net
2002年 3月 18日 (月) 13:08:53 JST


札幌のかずです。
小柳さんのご指摘通り試してみました。

cd postgresql-7.2/src/interfaces/perl5
make clean
export SRCDIR=.
perl Makefile.PL

> make[1]: *** `pm_to_blib' に必要なターゲット `/Pg.pm' を make するルールがありません.  中止
は、パスしましたが、次のエラー発生しました。

> make
> make -C ../../../src/interfaces/libpq all
> make[1]: 入ります ディレクトリ `/usr/local/src/postgres/postgresql-7.2/src/interfaces/libpq'
> make[1]: `all' に対して行うべき事はありません。
> make[1]: 出ます ディレクトリ `/usr/local/src/postgres/postgresql-7.2/src/interfaces/libpq'
> make -f Makefile all VPATH=
> make[1]: 入ります ディレクトリ `/usr/local/src/postgres/postgresql-7.2/src/interfaces/perl5'
> mkdir blib
> mkdir blib/lib
> mkdir blib/arch
> mkdir blib/arch/auto
> mkdir blib/arch/auto/Pg
> mkdir blib/lib/auto
> mkdir blib/lib/auto/Pg
> mkdir blib/man3
> cp ./Pg.pm blib/lib/Pg.pm
> AutoSplitting blib/lib/Pg.pm (blib/lib/auto/Pg)
> /usr/bin/perl -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0 /usr/lib/perl5/5.6.0/ExtUtils/xsubpp  -typemap /u
> sr/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap Pg.xs > Pg.c
> gcc -c  -fno-strict-aliasing -I/usr/local/include -O2 -march=i386 -mcpu=i686     -DVERSION=\"1.9.0\" -DXS_VERSION=\"1.9.
> 0\" -fPIC -I/usr/lib/perl5/5.6.0/i386-linux/CORE  Pg.c
> Pg.xs:17:22: libpq-fe.h: そのようなファイルやディレクトリはありません
> make[1]: *** [Pg.o] エラー 1
> make[1]: 出ます ディレクトリ `/usr/local/src/postgres/postgresql-7.2/src/interfaces/perl5'
> make: *** [all] エラー 2

libpq-fe.h は、postgresql-7.2/src/interfaces/libpq/libpq-fe.h にありましたので、
Pg.xs の libpq-fe.h の箇所を ../libpq/libpq-fe.h に変更し
再度実行してみました。

> In file included from Pg.xs:17:
> ../libpq/libpq-fe.h:29:26: postgres_ext.h: そのようなファイルやディレクトリはありません
> make[1]: *** [Pg.o] エラー 1

再度、postgresql-7.2/src/include/postgres_ext.h を、libpq-fe.h のパスに追加して
実行したところ、make は終了いたしました。

su で make install して、結果を確認してみます。

また、結果をご報告いたします。

-- 
 <Linux @ Lupin.net>




pgsql-jp メーリングリストの案内