From owner-freebsd-questions@FreeBSD.ORG Mon May 28 15:57:34 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E0DF1065673 for ; Mon, 28 May 2012 15:57:34 +0000 (UTC) (envelope-from info@martinlaabs.de) Received: from relay02.alfahosting-server.de (relay02.alfahosting-server.de [80.86.191.77]) by mx1.freebsd.org (Postfix) with ESMTP id 168168FC23 for ; Mon, 28 May 2012 15:57:34 +0000 (UTC) Received: by relay02.alfahosting-server.de (Postfix, from userid 1001) id 4AB4232C0007; Mon, 28 May 2012 17:57:26 +0200 (CEST) X-Spam-DCC: : X-Spam-Level: X-Spam-Status: No, score=0.0 required=7.0 tests=BAYES_50 autolearn=disabled version=3.2.5 Received: from alfa3018.alfahosting-server.de (alfa3018.alfahosting-server.de [109.237.140.30]) by relay02.alfahosting-server.de (Postfix) with ESMTP id DD14F32C0044; Mon, 28 May 2012 17:57:24 +0200 (CEST) Received: from pc.martinlaabs.de (p54B355F7.dip.t-dialin.net [84.179.85.247]) by alfa3018.alfahosting-server.de (Postfix) with ESMTPSA id 9D7A8515D56F; Mon, 28 May 2012 17:57:24 +0200 (CEST) Message-ID: <4FC3A05A.5040800@martinlaabs.de> Date: Mon, 28 May 2012 17:57:14 +0200 From: Martin Laabs User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120329 Thunderbird/10.0.3 MIME-Version: 1.0 To: fake fake References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with ClamAV 0.97.3/14972/Mon May 28 14:33:49 2012 Cc: freebsd-questions@freebsd.org Subject: Re: library search path X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 May 2012 15:57:34 -0000 Hello, just a guess: On 28.05.2012 16:11, fake fake wrote: > To install tmux under $HOME/bin, I have installed libevent library > under $HOME/lib (I do not have root privilege). > Then set the variable LD_LIBRARY_PATH to $HOME/lib in .cshrc. LD_LIBRARY_PATH only affects the dynamic linker and its search path when executing a program. You will need this when you execude tmux afterwards. > But "./configure --prefix=$HOME" in src/tmux returns "configure: With --prefix=... you tell the configure script where you wanna install the files. Now you have to tell the gcc where to search for the library/includes. So try to set CFLAGS="-I $HOME/include -L $HOME/lib" Best regards, Martin Laabs