Cygwin Initdb Error
error while loading shared libraries: ? From: Yaakov (Cygwin/X) To: cygwin at cygwin pg_ctl not found dot com Date: Tue, 8 Jan 2013 23:20:38 -0600 Subject: Re: postgres initdb: initdb command not found mac error while loading shared libraries: ? References: <50ECF59A.2010502@cs.utoronto.ca> On Tue, 08 Jan 2013 20:44:10 -0800, Ryan Johnson wrote: > The error
Initdb Postgres
message is: > > $ initdb -D /usr/share/postgresql/data > > /usr/sbin/initdb.exe: error while loading shared libraries: ?: cannot > > open shared object file: No such file or directory > > Any ideas? I can't reproduce it on my own machine. Running postgres command not found cygcheck on > /usr/sbin/initdb give very normal-looking results, and BLODA checks are > coming up empty. Is there something obviously wrong in my instructions? > Or should I have them send their cygcheck output and let folks on the > list try to diagnose the problem? cygcheck output would be helpful, as always, but my wild guess is that they have the wrong, or more than one, libpq installed. If I'm right, reinstalling libpq5 should fix this. Yaakov -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Follow-Ups: Re: postgres initdb: error while loading shared libraries: ? From: Ryan Johnson References: postgres initdb: error while loading shared libraries: ? From: Ryan Johnson Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext]
error shmat - Win98 Cygwin 1.5.10-3 - PostgreSQL 7.4.3 From: Mos To: cygwin at cygwin dot com Cc: jason at tishler dot net Date: Tue, 03 Aug 2004 21:46:45 -0100 Subject: Re: Initdb FATAL error shmat - Win98 Cygwin 1.5.10-3 - PostgreSQL 7.4.3 I install PostgreSQL 7.4.2 today without changing Cygwin install. Initdb works fine : initialization is good ! Mos ----------------- On Aug 2 20:57, Mos wrote: > Hi there ! > > > I have a problem to work with PostgreSQL with Cygwin. > > My OS is Windows https://cygwin.com/ml/cygwin/2013-01/msg00106.html 98 and I install cygwin full package, following numerous > tutorials available on the Net. > > All is fine except, I can not initialize a database : > All is fine until i try to initialize the database : > > --------------- > creating directory /usr/local/pgsql/data... ok > creating directory /usr/local/pgsql/data/base... ok > creating directory /usr/local/pgsql/data/global... ok > creating directory /usr/local/pgsql/data/pg_xlog... ok https://www.cygwin.com/ml/cygwin/2004-08/msg00110.html > creating directory /usr/local/pgsql/data/pg_clog... ok > selecting default max_connections... 10 > selecting default shared_buffers... 50 > creating configuration files... ok > creating template1 database in /usr/local/pgsql/data/base/1... FATAL: > shmat 1179648> failed: Invalid argument I tried it and it actually only happens on 9x. I found that postgres tries to shmat to an address which I have no idea about where it comes from. The problem with that address is, that it's neither a multiple of SHMLBA, nor does postgres call shmat with the SHM_RND flag. For some reason the address is ok on NT. So, Jason, do you have an idea why that happens? Two questions come to mind: - How does postgres evaluate that address and why does it only fail on 9x? - Why does postgres use a fixed address at all, instead of using NULL to let the system decide which address to use? Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Co-Project Leader mailto:cygwin@cygwin.com Red Hat, Inc. wi -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ Index Nav: [DateIndex] [SubjectIndex] [AuthorIndex] [ThreadIndex] Message Nav: [DatePrev][DateNext] [ThreadPrev][ThreadNext]
Regional lists Associations User groups Project lists Inactive lists pgsql-benchmarks pgsql-chat pgsql-cygwin pgsql-hackers-pitr pgsql-hackers-win32 pgsql-patches pgsql-ports pgsql-testers San Francisco, CA, US IRC Local User Groups Featured Users International Sites Propaganda Resources Weekly News Re: initdb https://www.postgresql.org/message-id/42D66E3B.8010007@voicesignal.com 'no such file or directory' error From: Erik Brunar To: pgsql-cygwin(at)postgresql(dot)org Subject: Re: initdb 'no such file or directory' error Date: 2005-07-14 13:52:59 Message-ID: 42D66E3B.8010007@voicesignal.com (view raw or whole thread) Thread: 2005-07-11 http://postgresql.nabble.com/Can-t-initdb-td2212988.html 12:00:32 from "Ian Oxley" 2005-07-14 13:52:59 from Erik Brunar Lists: pgsql-cygwin I commented this line out in initdb: # cp /dev/null "$PGDATA"/postgresql.conf || exit_nicely and in its stead used: touch not found "$PGDATA"/postgresql.conf || exit_nicely and this worked. However, things went wrong afterwards when trying to start the postmaster with my new install of Cygwin 1.5.18-1, so I re-installed 1.5.17-1, and things have been fine again. Erik Ian Oxley wrote: > Hi > > > > I am having trouble running initdb on Cygwin/Windows XP Pro: the error I am > getting is as follows: > > > command not found > $ initdb -D /home/pgdata > > > > The files belonging to this database system will be owned by user > "postgres". > > This user must also own the server process. > > > > The database cluster will be initialized with locale C. > > > > creating directory /home/pgdata... ok > > creating directory /home/pgdata/base... ok > > creating directory /home/pgdata/global... ok > > creating directory /home/pgdata/pg_xlog... ok > > creating directory /home/pgdata/pg_clog... ok > > cp: cannot stat '/dev/null.exe': no such file or directory > > > > Having searched the lists I cannot seem to find anything relating to this > last line: cp: cannot stat '/dev/null.exe': no such file or directory > > > > Any help that anyone can provide would be much appreciated. > > > > Thanks > > > > Ian > > In response to initdb 'no such file or directory' error at 2005-07-11 12:00:32 from Ian Oxley pgsql-cygwin by date Next:From: Wynn, RobinDate: 2005-07-15 12:59:56 Subject: Sporadic ValidateBinary error Previous:From: SupportDate: 2005-07-13 16:58:41 Subject: Problem with Cygwin 1.5.18 Privacy Policy | About PostgreSQL Copyright © 1996-2016 The PostgreSQL Global Development Group
Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Can't initdb Hello- When following installation instructions for Cygwin, I received the following error: bash-3.00$ initdb -D ~/pgsql/data/ -W -E LATIN1 fgets failure: No such file or directory The program "postgres" is needed by initdb but was not found in the same directory as "/usr/sbin/initdb". Check your installation. Many postings claim victory over this error when changing permissions. It didn't help me: bash-3.00$ ls -l /usr/sbin/post* -rwxrwxrwx+ 1 randy Users 2784256 Nov 7 18:31 /usr/sbin/postgres.exe lrwxrwxrwx 1 randy Users 12 Dec 21 23:17 /usr/sbin/postmaster.exe -> postg res.exe I can run postgres just fine (well without unexpected errors): bash-3.00$ postgres postgres does not know where to find the server configuration file. You must specify the --config-file or -D invocation option or set the PGDATA env ironment variable. What am I doing wrong? What should I be "checking" in my installation? -- Randy Solomonson Contract Programmer [hidden email] website: http://solomonson.com---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [hidden email] so that your message can get through to the mailing list cleanly ‹ Previous Thread Next Thread › « Return to PostgreSQL - cygwin | 1 view|%1 views Loading... Free forum by Nabble Edit this page