Обсуждение: Re: Just some unfinished stuff.

Поиск
Список
Период
Сортировка

Re: Just some unfinished stuff.

От
Gerald Gryschuk
Дата:
Thomas G. Lockhart wrote:
>
> The configure/makefile builds the sources just fine. But "make install"
> fails when I try installing within the Postgres tree as the postgres su:
>
> golem$ make install
> /usr/bin/install -c -m 444 iodbc.h /usr/local/include/iodbc/iodbc.h
> /usr/bin/install: /usr/local/include/iodbc/iodbc.h: Permission denied
> make: *** [install-headers] Error 1
>
> Shouldn't this be going to somewhere in the Postgres tree? Or not done
> at all if the target isn't writable?

you bet it should be. That's a bug I'll squash the sucker and get back
to you.

(note: this message also CC'd to the list)
--
Gerald Gryschuk
gerald.gryschuk@home.com
MidNightOil Consulting - "We burn the midnight oil so you don't have
to."

Re: [INTERFACES] Re: Just some unfinished stuff.

От
Tom Lane
Дата:
> Thomas G. Lockhart wrote:
>> The configure/makefile builds the sources just fine. But "make install"
>> fails when I try installing within the Postgres tree as the postgres su:
>>
>> golem$ make install
>> /usr/bin/install -c -m 444 iodbc.h /usr/local/include/iodbc/iodbc.h
>> /usr/bin/install: /usr/local/include/iodbc/iodbc.h: Permission denied
>> make: *** [install-headers] Error 1

Could it be that iodbc.h is getting installed twice by two different
makefiles in the distribution?

On my platform, once you've installed something with read-only
permission (and note the "-m 444" above), the local version of the
install script will not overwrite that file.  So the second attempt
to install would fail, with exactly the above-displayed error.

Currently, I have to manually blow away /usr/local/pgsql/bin, .../lib,
and .../include before doing a fresh "make install".  (I've been
intending to submit some kind of improvement to fix that, but it hasn't
yet got to the top of the to-do queue.)

            regards, tom lane