[pgsql-jp: 30208] Re: コンパイルに必要なライブラリ、ヘッダ

ams ams @ smile.ocn.ne.jp
2003年 6月 20日 (金) 11:17:52 JST


Fri, 20 Jun 2003 10:19:56 +0900 の刻
Hirofumi ETO <etoh @ bunroku.cc.saga-u.ac.jp> は書かれました:

> PostgreSQL のライブラリ、ヘッダファイルだけをインストール
> することは可能でしょうか?

Name        : postgresql-devel            
Relocations: (notrelocateable) Version     : 7.2.3          
                 Vendor: (none) Release     : 0vl1          
              Build Date: 2003年05月31日 23時02分0 1秒
Install date: 2003年05月31日 23時07分05秒      
Build Host:localhost Group       : Development/Libraries         
Source RPM: postgresql-7.2.3-0vl1.src.rpm
Size        : 1893632                     License: BSD
URL         : http://www.postgresql.org/
Summary     : PostgreSQL development header files and
libraries. Description :
The postgresql-devel package contains the header files and
libraries needed to compile C or C++ applications which will
directly interact with a PostgreSQL database management
server and the ecpg Embedded C Postgres preprocessor. You
need to install this package if you want to develop
applications which will interact with a PostgreSQL server.
If you're installing postgresql-server, you need to install
this package.

/usr/bin/ecpg
/usr/bin/pg_config
/usr/include/ecpgerrno.h
*** any headers
/usr/lib/libecpg.a
/usr/lib/libecpg.so
/usr/lib/libpgeasy.a
/usr/lib/libpgeasy.so
/usr/lib/libpgtcl.a
/usr/lib/libpq++.a
/usr/lib/libpq++.so
/usr/lib/libpq.a
/usr/lib/libpq.so
/usr/share/man/man1/ecpg.1.gz
/usr/share/man/man1/pg_config.1.gz

だそうですから、
postgresql-libs-7.2.3-0vl1
Release     : 0vl1                          Build Date:
2003年05月31日 23時02分0 1秒
Install date: 2003年05月31日 23時06分53秒      Build Host:
localhost Group       : Applications/Databases        Source
RPM: postgresql-7.2.3-0vl1.src.rpm
Size        : 252050              License: BSD
URL         : http://www.postgresql.org/
Summary     : The shared libraries required for any
PostgreSQL clients. Description :
The postgresql-libs package provides the essential shared
libraries for any PostgreSQL client program or interface.
You will need to install this package to use any other
PostgreSQL package or any clients that need to connect to a
PostgreSQL server./usr/lib/libecpg.so.3
/usr/lib/libecpg.so.3.3.0
/usr/lib/libpgeasy.so.2
/usr/lib/libpgeasy.so.2.2
/usr/lib/libpq++.so.4
/usr/lib/libpq++.so.4.0
/usr/lib/libpq.so.2
/usr/lib/libpq.so.2.0
/usr/lib/libpq.so.2.2

一旦、
postgresql-libs-7.2.3-0vl1
postgresql-odbc-7.2.3-0vl1
postgresql-tcl-7.2.3-0vl1
postgresql-jdbc-7.2.3-0vl1
postgresql-7.2.3-0vl1
postgresql-devel-7.2.3-0vl1
postgresql-perl-7.2.3-0vl1
postgresql-server-7.2.3-0vl1
postgresql-tk-7.2.3-0vl1
postgresql-docs-7.2.3-0vl1
postgresql-contrib-7.2.3-0vl1
postgresql-python-7.2.3-0vl1
などを一気に入れて、
postgresql-devel-7.2.3-0vl1
postgresql-libs-7.2.3-0vl1
以外を依存関係無視で、強制的にアンインストールしてしまえば使
えるかもしれませんね。もっとも、PHP4 でしょうけど、srpm から
ビルドするとなれば、一旦解体して、spec ファイルの必要モジュ
ールを見直さないといけないかもしれないですね。

さすがに、そういった荒業を使って、PHP4 をビルドした経験が無
いので、保証の限りではありませんから、嘘だったら、ご容赦を。

---
ams
mailto:ams @ smile.ocn.ne.jp



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