From owner-freebsd-questions@FreeBSD.ORG Fri Apr 6 01:00:32 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 0EF73106566C for ; Fri, 6 Apr 2012 01:00:32 +0000 (UTC) (envelope-from freebsd-questions@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) by mx1.freebsd.org (Postfix) with ESMTP id B73758FC08 for ; Fri, 6 Apr 2012 01:00:31 +0000 (UTC) Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.182]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id A22505C22 for ; Fri, 6 Apr 2012 11:14:06 +1000 (EST) Message-ID: <4F7E402E.4080400@herveybayaustralia.com.au> Date: Fri, 06 Apr 2012 11:00:30 +1000 From: Da Rock User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111109 Thunderbird/7.0.1 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: what is the path of kernel build directory? 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: Fri, 06 Apr 2012 01:00:32 -0000 On 04/05/12 17:21, saeedeh motlagh wrote: > hello guys > i want to install the openvswitch 1.4.0 from a linux package. the below > command should be executed: > ./configure --with-linux=/lib/modules/'uname -r '/build > this is a linux command and i should execute the FreeBSD equivalent but i > don't know how to do that. the manual says: > > To build the Linux kernel module, so that you can run the > kernel-based switch, pass the location of the kernel build > directory on --with-linux. > > what is kernel build directory in FreeBSD9 amd64? or how i should execute > this command? This isn't going to work the way you think, as has been pointed out: This is _not_ linux. Its better... :) The good news is that FreeBSD can run linux programs and some other features (such as some modules), so you might want to try the emulation@ list where the linuxulator gurus hang out to get help building this.