From: | Kenichiro Tanaka <ketanaka(at)ashisuto(dot)co(dot)jp> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | make install fails due to "/bin/mkdir: missing operand" |
Date: | 2010-05-10 11:07:27 |
Message-ID: | 4BE7E8EF.807@ashisuto.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hello.
This is my first mail to "pgsql-hackers(at)postgresql(dot)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(at)postgres01 config]$ ./mkinstalldirs
[p8310(at)postgres01 config]$ echo $?
0
##MKDIR_P test
[p900(at)postgres01 src]$ mkdir -p
mkdir: missing operand
[p900(at)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
================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Aidan Van Dyk | 2010-05-10 11:51:47 | Re: max_standby_delay considered harmful |
Previous Message | Florian Pflug | 2010-05-10 10:13:48 | Re: max_standby_delay considered harmful |