I decided to focus my efforts on installing latest OVS 1.10 as you pointed out. Hence, I focused to fix /boot.sh errors first
The warnings were not really dangerous as mentioned in http://cygwin.com/ml/cygwin/2004-12/msg00131.html I manually edited /usr/local/share/aclocal/pkg.m4:4 and added the "[" and "]" where needed. Then I went past ./boot.sh without any errors However, ./configure erros persist. I believe this could be an error not related to Ubuntu version but ./configure may have to be fixed. I see the following where the errors are reported KSRC=$KBUILD if test ! -e $KSRC/include/linux/kernel.h; then # Debian kernel build Makefiles tend to include a line of the form: # MAKEARGS := -C /usr/src/linux-headers-3.2.0-1-common O=/usr/src/linux-headers-3.2.0-1-486 ====> I don't see any of these directories on my linux machine. I don't know python..but is the arguments used from this line at all? It appeared to be in comments line # First try to extract the source directory from this line. KSRC=`sed -n 's/.*-C \([^ ]*\).*/\1/p' "$KBUILD"/Makefile` if test ! -e "$KSRC"/include/linux/kernel.h; then # Didn't work. Fall back to name-based heuristics that used to work. case `echo "$KBUILD" | sed 's,/*$,,'` in # ( */build) KSRC=`echo "$KBUILD" | sed 's,/build/*$,/source,'` ;; # ( *) KSRC=`(cd $KBUILD && pwd -P) | sed 's,-[^-]*$,-common,'` ============> This is the place where it failed ;; esac fi fi if test ! -e "$KSRC"/include/linux/kernel.h; then as_fn_error $? "cannot find source directory (please use --with-linux-source)" "$LINENO" 5 fi fi I found that the above fixed sometime last year http://openvswitch.org/pipermail/dev/2012-February/015035.html In my linux, I see the following directories but not the ones claimed above root@labuser-desktop:/usr/src# ls -lart total 72 drwxr-xr-x 24 root root 4096 Oct 7 2011 linux-headers-2.6.32-33 drwxr-xr-x 7 root root 4096 Oct 7 2011 linux-headers-2.6.32-33-generic drwxr-xr-x 24 root root 4096 Oct 7 2011 linux-headers-2.6.32-34 drwxr-xr-x 7 root root 4096 Oct 7 2011 linux-headers-2.6.32-34-generic drwxr-xr-x 24 root root 4096 Nov 8 2011 linux-headers-2.6.32-35 drwxr-xr-x 7 root root 4096 Nov 8 2011 linux-headers-2.6.32-35-generic drwxr-xr-x 24 root root 4096 Dec 15 2011 linux-headers-2.6.32-36 drwxr-xr-x 7 root root 4096 Dec 15 2011 linux-headers-2.6.32-36-generic drwxr-xr-x 24 root root 4096 Feb 10 2012 linux-headers-2.6.32-38 drwxr-xr-x 7 root root 4096 Feb 10 2012 linux-headers-2.6.32-38-generic drwxr-xr-x 7 root root 4096 May 31 19:21 linux-headers-2.6.32-41-generic drwxr-xr-x 24 root root 4096 May 31 21:57 linux-headers-2.6.32-41 drwxr-xr-x 24 root root 4096 May 31 21:57 linux-headers-2.6.32-47 drwxr-xr-x 7 root root 4096 May 31 21:57 linux-headers-2.6.32-47-generic drwxr-xr-x 10 root root 4096 Jun 4 12:46 .. drwxr-xr-x 7 root root 4096 Jun 4 12:54 linux-headers-3.2.0-45-generic drwxrwsr-x 18 root src 4096 Jun 4 16:34 . drwxr-xr-x 24 root root 4096 Jun 4 18:03 linux-headers-3.2.0-45 root@labuser-desktop:/usr/src# From: Gurucharan Shetty [mailto:shet...@nicira.com] Sent: Tuesday, June 04, 2013 5:23 PM To: Nagi Reddy Jonnala Cc: discuss@openvswitch.org Subject: Re: [ovs-discuss] installation on ubuntu On Tue, Jun 4, 2013 at 4:44 PM, Nagi Reddy Jonnala <njonn...@brocade.com<mailto:njonn...@brocade.com>> wrote: It was not precise. I upgrade to the latest hence the delay in reply lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.2 LTS Release: 12.04 Codename: precise apt-get install openvswitch-controller command was successful. It claimed it has installed 1.4 version which is not what I want because it is too old. However, I just wanted to check whether 1.4 was installed correctly - I don't see any OVS components installed. "which ovs-controller" and "which ovs-ofctl" replied no binary files / links to the bin directories. I am primarily looking for the OVS active and passive controllers Hence moved onto the the other installation option ovs-controller should have been installed in /usr/bin/. "dpkg -l | grep openvswitch" should you all the openvswitch packages you have installed. You can always do a "dpkg -c openvswitch-controller*.deb" to see all the files inside that package and their paths. ovs-ofctl needs openvswitch-switch and openvswitch-common packages. You will also need openvswitch-datapath-dkms*.deb for the kernel module. > I suppose your development environment is Ubuntu? yes > For 12.04, I need the following packages (or a smaller subset of it) I installed all of the packages you recommend but didn't help. ./boot.sh should not give any errors. You should be looking at fixing that error before you run ./configure. Read the INSTALL file in the repo to figure out all the packages that you need for it to work. In addition, I ran ./configure and ran into the exactly same issue I am trying to find what am I missing? Were you able to install the latest OVS (dated May-1-2013) on Ubuntu? Yes. Every released OVS version >= 1.4 should work on Ubuntu 12.04 (previous versions probably work too, I do not know). The latest release is OVS 1.10 (git branch branch-1.10). Thanks Nagi From: Gurucharan Shetty [mailto:shet...@nicira.com<mailto:shet...@nicira.com>] Sent: Monday, June 03, 2013 12:48 PM To: Nagi Reddy Jonnala Cc: discuss@openvswitch.org<mailto:discuss@openvswitch.org> Subject: Re: [ovs-discuss] installation on ubuntu On Mon, Jun 3, 2013 at 11:29 AM, Nagi Reddy Jonnala <njonn...@brocade.com<mailto:njonn...@brocade.com>> wrote: I was trying to install latest openvswitch/controller software on Ubuntu but getting into the following issues. Any clues on how to resolve the below? 1) First tried to get only the binary but failed as shown below apt-get install openvswitch-controller Reading package lists... Done Building dependency tree Reading state information... Done E: Couldn't find package openvswitch-controller Ubuntu precise? Else, check whether the package exists for your version. You can download the .deb from here: http://packages.ubuntu.com/precise/amd64/openvswitch-controller/download And then do a "dpkg -i *.deb" 2) Then tried the other way to install 2a) ./boot.sh /usr/local/share/aclocal/pkg.m4:4: warning: underquoted definition of PKG_CHECK_MODULES /usr/local/share/aclocal/pkg.m4:4: run info '(automake)Extending aclocal' /usr/local/share/aclocal/pkg.m4:4: or see http://sources.redhat.com/automake/automake.html#Extending-aclocal I suppose your development environment is Ubuntu? For 12.04, I need the following packages (or a smaller subset of it) sudo apt-get install autoconf libtool sparse openssl pkg-config sudo aptitude install python-qt4 python-qt4-dev pyqt-tools sudo apt-get install git-email libmail-sendmail-perl libmailtools-perl 2b) still tried to proceed because the above is just a warning. As you see below, ./configure has encountered an error as show below. Because of this error, makefile was not generated I believe. ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking whether gcc and cc understand -c and -o together... yes checking how to run the C preprocessor... gcc -E checking for ranlib... ranlib checking for grep that handles long lines and -e... /bin/grep checking for fgrep... /bin/grep -F checking for egrep... /bin/grep -E checking for perl... /usr/bin/perl checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether byte ordering is bigendian... no checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for library containing pow... -lm checking for library containing clock_gettime... -lrt checking for library containing timer_create... none required checking for library containing pcap_open_live... no checking vmware.h usability... no checking vmware.h presence... no checking for vmware.h... no checking for linux/netlink.h... yes ./configure: line 6969: syntax error near unexpected token `(' ./configure: line 6969: ` KSRC=`(cd $KBUILD && pwd -P) | sed 's,-[^-]*$,-common,'`' Thanks Nagi _______________________________________________ discuss mailing list discuss@openvswitch.org<mailto:discuss@openvswitch.org> http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss