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 1pVbPc-0007Wj-N8 for pgsql-general@arkaria.postgresql.org; Fri, 24 Feb 2023 16:59:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pVbPb-0004CW-5x for pgsql-general@arkaria.postgresql.org; Fri, 24 Feb 2023 16:59:11 +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 1pVbPa-0004CN-1D for pgsql-general@lists.postgresql.org; Fri, 24 Feb 2023 16:59:10 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pVbPW-0004EV-GU for pgsql-general@lists.postgresql.org; Fri, 24 Feb 2023 16:59:09 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id A48253200201; Fri, 24 Feb 2023 11:59:03 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 24 Feb 2023 11:59:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1677257943; x= 1677344343; bh=dl9HEhseU/6u+T20hARXgN1Bd+5HFWoQu/8Dd+6bIB0=; b=M B0ll8EX+74LI357iiy7zZFzY+mOlCE6YJaNivK7nuh3KXTScwxb1LeIP14eqyJJe Jf2zv43eIXiZ6pFykv1CazrzqU0k19h3KG6ulCW7bWyhbbWhcHiW+TpXC4a0Od7L KRWmhUu+JwnwIpc1P11xs1iYOdO53hg/B3ZDr0Vc1YMWE25HrJiovkDL3Wo4pUoS Xwz6lBsWt47cE2X/ShEucYS8mOUBqjUySFaedb8DqsJtN5vBxrSMWgNkNR/iHeGP 2vW10eb5P8HtQgEZsxk6ZBMhitjPAEG0oMgRFJ8+g8BQGl1UCcYE/FVN5u5+sjrX jkVJcmsvX/NIoXlZVXmVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1677257943; x= 1677344343; bh=dl9HEhseU/6u+T20hARXgN1Bd+5HFWoQu/8Dd+6bIB0=; b=J Kn43r+ZZ5xwvNoMLYMz1ZNLg272S4CjB5KsFN7fVvNdsXWnMWdwmb9gtDPhhU1xx sC/vVobDL7DmnU9tfQD7S0Vmp3lEYIU2isCxkFTt9tVjMQ+Q0ayiEHKYXSDOBeb6 +RXCv635qHG4acax67JzaqT12+iiHzLSKMV/i/VVgsMvQrMB1BC/mk/MdUjg4yd2 QN3R4tmsDw9aXprfzPe/KrbXMUyuLk9J9ik6N6m3YGwIa/SemdyhnOkYm3jewlxx 9ZXS5X69V+FQxya1Ft29iFL5sAW11WgIZFFWDLK584Xa1PozYLw//MriqQ0AsyCp HsEGPRDlDvunRuGIZgWDw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudekfedgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfevfhfhjggtgfesth ekredttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdr khhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpefhgeevke efleffvdfgvdefffdtueejheehueeifffhfeeihfdvhffgtefgvdeugfenucffohhmrghi nhepphhoshhtghhrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdr tghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 24 Feb 2023 11:59:02 -0500 (EST) Message-ID: Date: Fri, 24 Feb 2023 08:59:01 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: Debugging postgres on Windows - could not open directory "/lib" To: Cathy Xie Cc: pgsql-general@lists.postgresql.org References: <9042A6D0-93C2-40ED-A6EF-172407531F8C@gmail.com> <727eb4e7-0d62-49ba-3dbb-225816315cea@aklaver.com> <50231f4e-fe00-4ba2-b56c-250f3dbc4d63@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/23/23 17:16, Cathy Xie wrote: > > > On Thu, Feb 23, 2023 at 1:21 AM Adrian Klaver > wrote: > > On 2/21/23 17:18, Cathy Xie wrote: > > > > > > On Wed, Feb 22, 2023 at 6:54 AM Adrian Klaver > > > > > > Hi Adrian, > > > > Thanks for your email! > > > >     1) How did you build it? > > > > > > I installed ActivateState Perl, Bison, and Flex. Then I ran the > command > > ```build Debug``` under directory postgres/src/tools/msvc > > > >     2) Open pgsql.sln in a text editor and report the results here. > > > > Here was the result when I opened pgsql.sln in Visual Studio > 2022, and > > ran the postgres.exe. > > 1) That just repeats the error message from your previous post. > > 2) Please use copy and paste of text instead of screenshots. Those > of us > with old eyes would appreciate it. > > 3) Per previous request: > >         Open pgsql.sln in a text editor and report the results here. > >         It is the contents of pgsql.sln that I am looking for. > > Hi Adrian, > > Thanks for your time and patience!  Sorry for my misunderstanding. > > The following is the contents of pgsql.sln.  I look forward to hearing > back from you. Well I guess I should be careful what I ask for:). That looks like a Registry dump and is incomprehensible to me. More to the point I do not see anywhere that it directly mentions the /lib referenced in the error message: 'FATAL: could not open directory "/lib": No such file or directory.'. I'm guessing that is buried somewhere in all the references in the file. At this point I am running out of ideas due to my limited knowledge building software on Windows. The only thing I can think of now is that in a previous post you said: I installed ActivateState Perl, Bison, and Flex. Then I ran the command ```build Debug``` under directory postgres/src/tools/msvc From here: https://www.postgresql.org/docs/current/install-windows-full.html did you do?: 18.1.4. Cleaning and Installing Most of the time, the automatic dependency tracking in Visual Studio will handle changed files. But if there have been large changes, you may need to clean the installation. To do this, simply run the clean.bat command, which will automatically clean out all generated files. You can also run it with the dist parameter, in which case it will behave like make distclean and remove the flex/bison output files as well. By default, all files are written into a subdirectory of the debug or release directories. To install these files using the standard layout, and also generate the files required to initialize and use the database, run the command: install c:\destination\directory If you want to install only the client applications and interface libraries, then you can use these commands: install c:\destination\directory client > > Thanks, > Cathy > > ``` > Microsoft Visual Studio Solution File, Format Version 12.00 > # Visual Studio 2022 > > > > > > Screenshot_20230222_091621.png > > I look forward to hearing back from you. > > > > Thanks! > > Cathy > > > > > >      > > >      > Best regards, > >      > Cathy > >      > > > > >     -- > >     Adrian Klaver > > adrian.klaver@aklaver.com > > > > > > -- > Adrian Klaver > adrian.klaver@aklaver.com > -- Adrian Klaver adrian.klaver@aklaver.com