make install fails due to "/bin/mkdir: missing operand"

Поиск
Список
Период
Сортировка
От Kenichiro Tanaka
Тема make install fails due to "/bin/mkdir: missing operand"
Дата
Msg-id 4BE7E8EF.807@ashisuto.co.jp
обсуждение исходный текст
Ответы Re: make install fails due to "/bin/mkdir: missing operand"  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Re: make install fails due to "/bin/mkdir: missing operand"  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Hello.

This is my first mail to "pgsql-hackers@postgresql.org".
When I install PostgreSQL,I get an error.
So I'd like to send a report
.

PostgreSQL version: postgresql-9.0beta1
Operating system: CentOS release 5.4 (Final)

Reproduce case:
#prefix and with-pgport are not important
./configure --enable-nls='UFT_JP' --prefix=/home/p900/posgrehome
--with-pgport=1900
make && make install

make install
log---------------------------------------------------------------
:
:
make[3]: Leaving directory `/home/p900/postgresql-9.0beta1/src/timezone'
/bin/mkdir: missing operand
Try `/bin/mkdir --help' for more information.
make[2]: *** [installdirs-po] Error 1
make[2]: Leaving directory `/home/p900/postgresql-9.0beta1/src/backend'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/p900/postgresql-9.0beta1/src'
make: *** [install] Error 2
--------------------------------------------------------------------------

First of all,I have a mistake.
"enable-nls" allows only 'de es fr ja pt_BR tr'.
I can work around to fix this.

But we can install PostgreSQL with the configure command
in 8.3.10 or before version.


We get an error following line of the Makefile.
--------------------------------------------------------------------------
postgresql-9.0beta1/src/nls-global.mk

74 installdirs-po:
75 $(MKDIR_P) $(foreach lang, $(LANGUAGES),
'$(DESTDIR)$(localedir)'/$(lang)/LC_MESSAGES)
--------------------------------------------------------------------------

In 8.3.10 or before version, we use "mkinstalldirs" and this allow "miss
operand"

--------------------------------------------------------------------------
##mkinstalldirs test
[p8310@postgres01 config]$ ./mkinstalldirs
[p8310@postgres01 config]$ echo $?
0

##MKDIR_P test
[p900@postgres01 src]$ mkdir -p
mkdir: missing operand
[p900@postgres01 src]$ echo $?
1

# I also checked following archives
# http://archives.postgresql.org/pgsql-committers/2009-08/msg00277.php
--------------------------------------------------------------------------
In the first place,I must fix my configure option.
But I also think that configure command have to check wrong config
parameter,
because I could not install postgresql-9.0beta1 for some days.
We can work around to make mkinstalldirs, but I feel it is not good
becasuse it casts away the change of
"pgsql-committers/2009-08/msg00277.php".


Thank you for reading.

================================================
Kenichiro Tanaka
K.K.Ashisuto
http://www.ashisuto.co.jp/english/index.html
================================================


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Florian Pflug
Дата:
Сообщение: Re: max_standby_delay considered harmful
Следующее
От: Aidan Van Dyk
Дата:
Сообщение: Re: max_standby_delay considered harmful