From patchwork Wed Mar 30 15:23:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gurucharan Shetty X-Patchwork-Id: 603435 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3qZsJx5sy8z9s5J for ; Thu, 31 Mar 2016 02:39:45 +1100 (AEDT) Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id E2D95105FE; Wed, 30 Mar 2016 08:39:44 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx3v3.cudamail.com (mx3.cudamail.com [64.34.241.5]) by archives.nicira.com (Postfix) with ESMTPS id 383EE105DD for ; Wed, 30 Mar 2016 08:39:44 -0700 (PDT) Received: from bar6.cudamail.com (localhost [127.0.0.1]) by mx3v3.cudamail.com (Postfix) with ESMTPS id BAE9B16257C for ; Wed, 30 Mar 2016 09:39:43 -0600 (MDT) X-ASG-Debug-ID: 1459352382-0b3237699863670001-byXFYA Received: from mx1-pf2.cudamail.com ([192.168.24.2]) by bar6.cudamail.com with ESMTP id Ggde61zbFAbepC24 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 30 Mar 2016 09:39:42 -0600 (MDT) X-Barracuda-Envelope-From: guru.ovn@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.24.2 Received: from unknown (HELO mail-pf0-f171.google.com) (209.85.192.171) by mx1-pf2.cudamail.com with ESMTPS (RC4-SHA encrypted); 30 Mar 2016 15:39:42 -0000 Received-SPF: pass (mx1-pf2.cudamail.com: SPF record at _netblocks.google.com designates 209.85.192.171 as permitted sender) X-Barracuda-RBL-Trusted-Forwarder: 209.85.192.171 Received: by mail-pf0-f171.google.com with SMTP id n5so46007409pfn.2 for ; Wed, 30 Mar 2016 08:39:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=i1I4FkzrlC2lk6JdWkPyAMx23pbA+hzWcUG5o0JxOjc=; b=G5jAaJArWxDqIrtfyHNOe7N3rJdzu51GLH6Ux0hK6SQNYn6J5O5+3nRoaKYzMoimSs SKbN73q1XNgNlmrK6eoM597PdemRqHV94yssVhNBYUBPVZTCCB2JvMFak3ci5GUNYlu+ E5vixFylQ2wWt+c3ZCGc6vzOaIIHilSOyst0mQ0F5lrRphdgTtQgzCBz5jaDLUv1R3ws S7C8W7rswUASd8gj70tnL4uhsfX/jHwTBwXxkgkZyDC2D13MS/R3BWDk8QqzDJjdeq8+ A8CRsA0/Mn0c1OW+v5+Eym365JbPtQUUTlTpNyVuAElL8IzmK5rTthYCyG8dVvUy35JS O1MA== X-Gm-Message-State: AD7BkJKTaJMCZC34rC06W3Bgvhpg+Oitt6JRcTiMkMLoEWSTThWflZ3drZe7EJZoZTTjdw== X-Received: by 10.98.70.27 with SMTP id t27mr14023903pfa.107.1459352381877; Wed, 30 Mar 2016 08:39:41 -0700 (PDT) Received: from ubuntu-test.eng.vmware.com ([208.91.1.34]) by smtp.gmail.com with ESMTPSA id g70sm6882606pfj.13.2016.03.30.08.39.40 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Mar 2016 08:39:40 -0700 (PDT) X-CudaMail-Envelope-Sender: guru.ovn@gmail.com X-Barracuda-Apparent-Source-IP: 208.91.1.34 From: Gurucharan Shetty To: dev@openvswitch.org X-CudaMail-Whitelist-To: dev@openvswitch.org X-CudaMail-MID: CM-E2-329037050 X-CudaMail-DTE: 033016 X-CudaMail-Originating-IP: 209.85.192.171 Date: Wed, 30 Mar 2016 08:23:46 -0700 X-ASG-Orig-Subj: [##CM-E2-329037050##][PATCH] INSTALL.md: Explain the effect of using different configure options. Message-Id: <1459351426-1399-1-git-send-email-guru@ovn.org> X-Mailer: git-send-email 1.7.9.5 X-Barracuda-Connect: UNKNOWN[192.168.24.2] X-Barracuda-Start-Time: 1459352382 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-ASG-Whitelist: Header =?UTF-8?B?eFwtY3VkYW1haWxcLXdoaXRlbGlzdFwtdG8=?= X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 Cc: Gurucharan Shetty Subject: [ovs-dev] [PATCH] INSTALL.md: Explain the effect of using different configure options. X-BeenThere: dev@openvswitch.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dev-bounces@openvswitch.org Sender: "dev" Over the years, I have seen multiple users inadvertantly end up with 2 copies of OVS executables in their filesystem. In all the cases, it was because of using different configure options while installing a new version of Open vSwitch. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- INSTALL.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 761a81b..5b37786 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -171,11 +171,17 @@ usually invoke configure without any arguments. For example: `% ./configure` -By default all files are installed under /usr/local. If you want -to install into, e.g., /usr and /var instead of /usr/local and -/usr/local/var, add options as shown here: +By default all files are installed under /usr/local. Open vSwitch also +expects to find its database in /usr/local/etc/openvswitch by default. +If you want to install all files into, e.g., /usr and /var instead of +/usr/local and /usr/local/var and expect to use /etc/openvswitch as the default +database directory, add options as shown here: - `% ./configure --prefix=/usr --localstatedir=/var` + `% ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc` + +Note that the Open vSwitch installed with packages like .rpm (e.g. via 'yum +install' or 'rpm -ivh') and .deb (e.g. via 'apt-get install' or 'dpkg -i') use +the above configure options. By default, static libraries are built and linked against. If you want to use shared libraries instead: @@ -376,7 +382,10 @@ also upgrade the database schema: % kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid` ``` -2. Install the new Open vSwitch release. +2. Install the new Open vSwitch release by using the same configure options as +was used for installing the previous version. If you do not use the same +configure options, you can end up with two different versions of Open vSwitch +executables installed in different locations. 3. Upgrade the database, in one of the following two ways: