Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhZfG-0001wX-Af for pljava-dev@arkaria.postgresql.org; Sat, 06 Jun 2020 14:19:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jhZfE-0006GJ-1u for pljava-dev@arkaria.postgresql.org; Sat, 06 Jun 2020 14:19:12 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhZfD-0006GC-Gf for pljava-dev@lists.postgresql.org; Sat, 06 Jun 2020 14:19:11 +0000 Received: from anastigmatix.net ([68.171.219.55]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jhZfA-0000Xe-Pp for pljava-dev@lists.postgresql.org; Sat, 06 Jun 2020 14:19:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=rpPDHvqRmjAVatXjVpChD+BXqeIDY7Kfn0ypRAR+PuY=; b=GQ5VHlu8tqrtpWqVLkgTkQng33 GjGBtMNnSN9VQp5oCbpGwmFetSmuD0PU4w4XAX5sNROaAKCy+IICvakgELRmUnRPWzCLjFJ7W4Ypn kATOLL5e4NbpzPRqJ6wVYvKXG62/Rt90MATP5wWKzFWAT0Ob6BuJrwMaJxuyy4o+KKozuKL1PUJJz W03G3KWBZUGd4jSg/keAn/UaRGNO9sRfdGOjWusI1R0KjQTQQjSIKj1k8bJTRFHdYPQg+pjLU3PyU lFdZm0E14By13iV5gefZK9SRlhr8fcfprE4MDixSLSClrzskKfbl+CM8447XU2ua5Kri9qe2s1eHv nX89CzQw==; Received: from [184.19.31.139] (port=38730) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1jhZf7-003GKA-QV; Sat, 06 Jun 2020 10:19:07 -0400 Subject: Re: Starting build-system work (Windows/Mac users please speak up) To: Kartik Ohri References: <5EC17E17.7070002@anastigmatix.net> <5ECED046.3000308@anastigmatix.net> <5ED0FCB0.405@anastigmatix.net> <5ED10C6D.2020000@anastigmatix.net> <5ED10F36.7060304@anastigmatix.net> <5ED15825.9060504@anastigmatix.net> <5ED270BA.9010001@anastigmatix.net> <5ED3D488.1010401@anastigmatix.net> <5ED474CA.3000106@anastigmatix.net> <5ED4EA10.4030801@anastigmatix.net> <5ED7E74B.9020800@anastigmatix.net> <5EDA576E.2000204@anastigmatix.net> Cc: pljava-dev@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <5EDBA5D9.8090506@anastigmatix.net> Date: Sat, 6 Jun 2020 10:19:05 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-OutGoing-Spam-Status: No, score=-95.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/06/20 08:40, Kartik Ohri wrote: > The solution is to use *pg_ctl* to start the postgres server from a shell > with appropriate permissions. Earlier, I was trying to start the postgres > server using *net start *in CMD and *Start-Service* in PowerShell. Even > with privileged shells, postgres created using these commands do not have > the necessary rights to some directories (including the Java directory, > hence, the libjvm location error). I was unable to figure out why this > happens. Interesting! There are a bunch of #ifdef WIN32 sections in pg_ctl.c [1], maybe some useful info in there. Regards, -Chap [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob;f=src/bin/pg_ctl/pg_ctl.c;hb=HEAD