Skip site navigation (1) Skip section navigation (2)

RE: [PORTS] Syntax error in initdb on NT

From: Horák Daniel <horak(at)sit(dot)plzen-city(dot)cz>
To: pgsql-ports(at)postgreSQL(dot)org
Subject: RE: [PORTS] Syntax error in initdb on NT
Date: 2000-02-07 11:33:28
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-ports
> However, I would like to be logged in as myself and be able to run it
> directly. So, I removed the installation and reinstalled it 
> and now I get a
> weird error in initdb:
> bash-2.02$ initdb --username=jskakkebaek
> : not found
> : not found
> : not found
> /usr/local/pgsql/bin/initdb: 74: Syntax error: expecting "in"
> The error apparently concerns line 74:
> 	case "$1" in
> I've tried for quite a while to understand the problem but 
> have failed.

Please check the style of line ends - LF vs. CR+LF. On drives mounted with
-b you should have only LF, on drivers without -b (it's standard) there
should be CR+LF.

To delete the CR character you can use this command: "tr -d "\r" < initdb
>; mv initdb".


pgsql-ports by date

Next:From: Sebastian SetzerDate: 2000-02-07 13:05:13
Subject: RE: DLLMain
Previous:From: luca78Date: 2000-02-06 18:25:50
Subject: I use PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group