Bug #12727 Updated: Bad subdirs assumed in configure and in make
| From: | sniper@php.net | Date: | Tue, 14 Aug 2001 13:25:43 +0000 |
| Subject: | Bug #12727 Updated: Bad subdirs assumed in configure and in make | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-63160@lists.php.net to get a copy of this message | ||
ID: 12727
Updated by: sniper
Reported By: php-bug@chaosmt.net
Old Status: Feedback
Status: Bogus
Bug Type: PostgreSQL related
Operating System: Solaris 7
PHP Version: 4.0.6
New Comment:
User error.
Previous Comments:
------------------------------------------------------------------------
[2001-08-14 04:59:45] sniper@php.net
So PostgreSQL was configured with:
--prefix=/usr/local/pgsql/7.1.2/
And PHP was configured with:
--with-pgsql=/usr/local/pgsql/7.1.2/
Right?
Where do you have this file: libpq-fe.h ??
Where do you have this file: libpq.a (or .so) ??
And what exactly were those errors you got??
--Jani (irc@efnet: _sniper_ )
------------------------------------------------------------------------
[2001-08-13 18:17:23] php-bug@chaosmt.net
reproduceable - probably an easy fix
during ./configure and later (after I thought I fixed things) in the make, the php install kept
having trouble finding my install. postgresql was installed --prefix=/usr/local/pgsql/7.1.2/, and
that path was supplied to the program ($i). However, it looked like that it assumed that libraries
and such were not immediately in that path. For example, it looks in $i/lib/pgsql and
$i/lib/postgresql, where my path was (I though predictable) $i/lib. I did a "ln -s
/usr/local/pgsql/7.1.2/lib /usr/local/lib/pgsql" and other but that didn't work. I mucked
around with the (impressive) config files adding paths and that only gave limited progress. I
eventually did "ln -s . pgsql" in lib and other relevant places and got much further.
Then, in make, failure again, as the header file couldn't find the include. I added a hard
path to the build/rules_common.mk (I believe the variable was DEFS).
I hope this helps. Personal note, I hopped on IRC (efnet) to try and get some advice. Even
though I asked an informed and intelligent (IMHO) question, I still got the condesending knee-jerk
responses. I have now been conditioned to a) never ever hope for any help from irc (especially the
ef) and b) never research an issue fully before asking a question. If you've done your
research, you've spent TONS of times getting caught up, just to find out you know more than who
you're asking for help. However [James] was friendly and helpful, more so than anyone. He
deserves a free beer!
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12727&edit=1