From owner-freebsd-questions@FreeBSD.ORG Tue May 29 02:55:29 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 536CE1065686 for ; Tue, 29 May 2012 02:55:29 +0000 (UTC) (envelope-from four.troublesome.heads@gmail.com) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id C97618FC19 for ; Tue, 29 May 2012 02:55:28 +0000 (UTC) Received: by lbon10 with SMTP id n10so3020897lbo.13 for ; Mon, 28 May 2012 19:55:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=I4PdCZUjJYxGzhOb/FD1smqccJbUN9Gb6VH+fq389DQ=; b=sAfxMoJxBNiWdw14rvD9McVE6Nl0Xsi3fbItwYqDRAy8XYWtB3CetpZckgWQteHIV8 /SlLuTxCpvlY3+nucR+nQIpoAvQE9SWNjJChZU4t6LXT9AoHBFnkZcPMtIR9OabYXKM+ sYTK92Zhdxptjn3yKYWLFprlDoAb3XlWIIDjDIZE1H1GehgJ8y2aDa20znIQreKw0aSj +q5D78H/QwatvhpZtuIqjk2PcDMG1MyKzb1y5RilIaXy8azF3U3KL53u9O0d3D9uF8ua UV/0gp8P1h7uqys19RO9eqq3PCBdrF0ACAVrgQzz/QxSKMJzEY6a+UNzhIHlv7awsgGG 31mQ== MIME-Version: 1.0 Received: by 10.152.105.235 with SMTP id gp11mr10342495lab.44.1338260127482; Mon, 28 May 2012 19:55:27 -0700 (PDT) Received: by 10.112.22.68 with HTTP; Mon, 28 May 2012 19:55:27 -0700 (PDT) In-Reply-To: <4FC3A05A.5040800@martinlaabs.de> References: <4FC3A05A.5040800@martinlaabs.de> Date: Tue, 29 May 2012 11:55:27 +0900 Message-ID: From: fake fake To: Martin Laabs Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Tue, 29 May 2012 02:55:29 -0000 Thank you. "./configure --prefix=3D$HOME CFLAGS=3D"-L $HOME/lib" " worked perfectly. further info: I should have set LD_LIBRARY_PATH to absolute path. tmux didn't work with libevent 2.* but did with libevent 1.4.* On 29 May 2012 00:57, Martin Laabs wrote: > 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=3D$HOME" in src/tmux returns "configure: > > > With --prefix=3D... 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=3D"-I $HOME/include -L $HOME/lib" > > Best regards, > =A0Martin Laabs >