From owner-freebsd-questions Fri Jun 15 16:27:28 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 88E2E37B403 for ; Fri, 15 Jun 2001 16:27:25 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 32128 invoked by uid 100); 15 Jun 2001 23:27:24 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15146.39388.594210.473582@guru.mired.org> Date: Fri, 15 Jun 2001 18:27:24 -0500 To: Larry Coleman Cc: questions@freebsd.org Subject: Re: ldconfig fubared In-Reply-To: <112023384@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Larry Coleman types: > I messed up my ldconfig while installing postgresql, and now I can't get > into vim unless I'm logged in as root. Here's the error message: > > /usr/libexec/ld-elf.so.1: Shared object "libgtk2.so.2" not found. > > Can anyone tell me how to fix this? Depends on how you messed it up. If you were just fooling around with ldconfig and managed to mangle the settings, you can recreate the boot-time config by - in an sh-like shell - sourceing /etc/defaults/rc.conf and then /etc/rc.conf, and doing: ldconfig -elf $ldconfig_paths ldconfig -aout $ldconfig_paths_aout http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message