--> Working on DBD::Pg Fetching http://www.cpan.org/authors/id/T/TU/TURNSTEP/DBD-Pg-3.5.1.tar +.gz -> OK Unpacking DBD-Pg-3.5.1.tar.gz Entering DBD-Pg-3.5.1 Checking configure dependencies from META.yml Checking if you have DBI 1.614 ... Yes (1.632) Checking if you have version 0 ... Yes (0.9902) Configuring DBD-Pg-3.5.1 Running Makefile.PL Configuring DBD::Pg 3.5.1 You need to install postgresql-server-dev-X.Y for building a server-si +de extension or libpq-dev for building a client-side application. Enter a valid PostgreSQL postgres major version number Enter a valid PostgreSQL postgres minor version number Enter a valid PostgreSQL postgres patch version number You need to install postgresql-server-dev-X.Y for building a server-si +de extension or libpq-dev for building a client-side application. You need to install postgresql-server-dev-X.Y for building a server-si +de extension or libpq-dev for building a client-side application. Enter a valid PostgreSQL postgres bin dir You need to install postgresql-server-dev-X.Y for building a server-si +de extension or libpq-dev for building a client-side application. Enter a valid PostgreSQL postgres include dir No POSTGRES_HOME defined, cannot find automatically -> N/A -> FAIL Configure failed for DBD-Pg-3.5.1. See /home/hengaini/.cpanm/w +ork/1430800299.6291/build.log for details.
I don't know how to define $POSTGRES_HOME.
I install postgresql 9.4, and /usr/lib/postgresq have two directory 9.3 and 9.4.
/usr/lib/postgresql/9.4/lib have some *.so files, such as utf8_and_ascii.so.
I set $POSTGRES_HOME in ~/.bashrc as follow:
# add by hengaini 20150113 POSTGRES_HOME='/usr/lib/postgresql/9.4'
What is the problem ?
In reply to Can't cpanm install DBD::Pg by Thai Heng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |