You are awesome, Rob. I followed your instructions, and I was able to run
make successfully. Thank you.

By the way, I'm curious why in this version 01.0, I don't need to run "git
checkout ...", "./boot.sh", and "./configure" as in v0.4 from "git://
openflowswitch.org/openflow.git. What is the difference? it's a little bit
confusing to me!

Regards,
Humphrey



On Mon, Dec 10, 2012 at 3:40 PM, Rob Sherwood <rob.sherw...@bigswitch.com>wrote:

> Humphrey,
>
> It seems that your problems are much more about your environment and
> your java install than the flowvisor, so perhaps this isn't the best
> place to try to resolve this.
>
> That said, from the errors you're seeing, the problematic command is
> not 'java' which seems to run fine, but the java compiler 'javac'.
>
> Specifically you seem to have installed the java *runtime* environment
> (jre==java runtime environment) but my guess is that you have not
> installed the java *developers* kit (jdk).  Try `sudo apt-get install
> openjdk-6-jdk` and then `make clean ; make` again.
>
> If that doesn't work, then my guess is you have larger problems with
> your system.
>
> - Rob
> .
>
> On Sun, Dec 9, 2012 at 11:34 PM, Humphrey Lee <iramani...@gmail.com>
> wrote:
> > Here is my Java version info:
> > hon@ubuntu:/home/project/flowvisor$ java -version
> > java version "1.6.0_24"
> > OpenJDK Runtime Environment (IcedTea6 1.11.5)
> (6b24-1.11.5-0ubuntu1~12.04.1)
> > OpenJDK Server VM (build 20.0-b12, mixed mode)
> > hon@ubuntu:/home/project/flowvisor$
> >
> >
> > On Mon, Dec 10, 2012 at 3:27 PM, Humphrey Lee <iramani...@gmail.com>
> wrote:
> >>
> >> Hi Ali,
> >>
> >> Here is the log:
> >> hon@ubuntu:/home/project/flowvisor$ make
> >> ant
> >> Unable to locate tools.jar. Expected to find it in
> >> /usr/lib/jvm/java-6-openjdk-i386/lib/tools.jar
> >> Buildfile: /home/project/flowvisor/build.xml
> >>
> >> init:
> >>
> >> compile:
> >>     [javac] /home/project/flowvisor/build.xml:60: warning:
> >> 'includeantruntime' was not set, defaulting to build.sysclasspath=last;
> set
> >> to false for repeatable builds
> >>
> >> BUILD FAILED
> >> /home/project/flowvisor/build.xml:60: Unable to find a javac compiler;
> >> com.sun.tools.javac.Main is not on the classpath.
> >> Perhaps JAVA_HOME does not point to the JDK.
> >> It is currently set to "/usr/lib/jvm/java-6-openjdk-i386/jre"
> >>
> >> Total time: 0 seconds
> >> make: *** [all] Error 1
> >> hon@ubuntu:/home/project/flowvisor$
> >>
> >> I also run "apt-get install openjdk-6-jre" to update my jre and jdk,
> but I
> >> still got the above errors.
> >>
> >> Thanks.
> >> Humphrey
> >>
> >> On Mon, Dec 10, 2012 at 3:16 PM, Ali Al-Shabibi
> >> <ali.al-shab...@stanford.edu> wrote:
> >>>
> >>> Humphrey,
> >>>
> >>> What where the errors you got after installing make?
> >>>
> >>> The instructions here are the only commands you need to run.
> >>>
> https://github.com/OPENNETWORKINGLAB/flowvisor/wiki/Installation-from-Source
> >>>
> >>> --
> >>> Ali Al-Shabibi
> >>>
> >>> On Dec 10, 2012, at 7:55, Humphrey Lee <iramani...@gmail.com> wrote:
> >>>
> >>> I did install ant after I sent out the email. Then I got other make
> >>> errors!
> >>>
> >>> Should I run "git checkout..." first? Then run ./boot.sh and
> ./configure
> >>> before running "make".
> >>>
> >>> Thanks.
> >>> Humphrey
> >>>
> >>> On Mon, Dec 10, 2012 at 2:49 PM, Aaron Rosen <aro...@clemson.edu>
> wrote:
> >>>>
> >>>> sudo apt-get install ant
> >>>>
> >>>>
> >>>> On Mon, Dec 10, 2012 at 1:36 AM, Humphrey Lee <iramani...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>> Hi Ali,
> >>>>>
> >>>>> Here what I did.
> >>>>> 1. Download the flowvisor source.
> >>>>> 2. Run "make" ==> error 127
> >>>>>
> >>>>> Detail log:
> >>>>> hon@ubuntu:/home/project/flowvisor$ ls
> >>>>> AUTHORS    doc            Makefile    README.syslog  src.tests
> >>>>> BUGS       Documentation  README      RELEASE-NOTES  UPGRADING
> >>>>> build.xml  INSTALL        README.dev  scripts        utilities
> >>>>> COPYING    lib            README.md   src
> >>>>> hon@ubuntu:/home/project/flowvisor$ git status
> >>>>> # On branch 0.10-MAINT
> >>>>> nothing to commit (working directory clean)
> >>>>> hon@ubuntu:/home/project/flowvisor$ make
> >>>>> ant
> >>>>> make: ant: Command not found
> >>>>> make: *** [all] Error 127
> >>>>> hon@ubuntu:/home/project/flowvisor$
> >>>>>
> >>>>> I have Ubuntu Server 12.0.4 LTS version.
> >>>>>
> >>>>> Please advise.
> >>>>>
> >>>>> Thanks.
> >>>>> Humphrey
> >>>>>
> >>>>>
> >>>>> On Sun, Dec 9, 2012 at 9:57 PM, Ali Al-Shabibi
> >>>>> <ali.al-shab...@stanford.edu> wrote:
> >>>>>>
> >>>>>> [Please don't drop the list, responses here can be help to someone
> >>>>>> else]
> >>>>>>
> >>>>>> You can find the install from source instructions at
> >>>>>>
> https://github.com/OPENNETWORKINGLAB/flowvisor/wiki/Installation-from-Source
> .
> >>>>>>
> >>>>>> As you will see under 'Download and Build'; you only need to run
> >>>>>> 'make' to build it and then follow the instruction on the rest of
> that page
> >>>>>> to install it.
> >>>>>>
> >>>>>> Hope this helps,
> >>>>>>
> >>>>>> --
> >>>>>> Ali
> >>>>>>
> >>>>>> On Dec 9, 2012, at 2:31 PM, Humphrey Lee <iramani...@gmail.com>
> wrote:
> >>>>>>
> >>>>>> > Thank you for your quick response, Ali.
> >>>>>> >
> >>>>>> > I was trying to build from the source, instead of installing the
> >>>>>> > binary version.
> >>>>>> >
> >>>>>> > I tried to look for instructions to build the source code on the
> URL
> >>>>>> > you sent . I could only found the instruction to download the
> source, but no
> >>>>>> > instructions  to build it.
> >>>>>> >
> >>>>>> > To build code successfully as I did for the older version, I think
> >>>>>> > the "git checkout -b  ..." command must be executed.
> >>>>>> >
> >>>>>> > I appreciate your help.
> >>>>>> >
> >>>>>> > Regards,
> >>>>>> > Humphrey
> >>>>>> >
> >>>>>> > Ali Al-Shabibi 於 2012年12月9日星期日寫道:
> >>>>>> > (Please don't drop the list)
> >>>>>> >
> >>>>>> > To get the latest flowvisor, you should either checkout the master
> >>>>>> > or the 0.10-MAINT branch. Have a look at
> >>>>>> > https://github.com/OPENNETWORKINGLAB/flowvisor/wiki for
> installation
> >>>>>> > instructions.
> >>>>>> >
> >>>>>> > --
> >>>>>> > Ali Al-Shabibi
> >>>>>> >
> >>>>>> > On Dec 9, 2012, at 9:28, Humphrey Lee <iramani...@gmail.com>
> wrote:
> >>>>>> >
> >>>>>> >> Hi Ali,
> >>>>>> >>
> >>>>>> >> I downloaded version 0.10.0 source by "git clone
> >>>>>> >> git://github.com/OPENNETWORKINGLAB/flowvisor.git".
> >>>>>> >>
> >>>>>> >> I wanted to compile it, but I don't know how to specify this
> >>>>>> >> command "git checkout -b fv0.4_of1.0 origin/deprecated/of-0.89",
> as an
> >>>>>> >> example found on a OpenFlow document. What numbers should I use
> to replace
> >>>>>> >> those fv0.4_of_1.0? Please advise.
> >>>>>> >>
> >>>>>> >> Thank you.
> >>>>>> >>
> >>>>>> >> Cheers,
> >>>>>> >> Humphrey
> >>>>>> >>
> >>>>>> >> On Fri, Dec 7, 2012 at 9:10 PM, Ali Al-Shabibi
> >>>>>> >> <ali.al-shab...@stanford.edu> wrote:
> >>>>>> >> Hi Humphrey,
> >>>>>> >>
> >>>>>> >> The latest version of flowvisor can be obtained from
> >>>>>> >> http://www.flowvisor.org. Let me know if you need help with the
> >>>>>> >> installation.
> >>>>>> >>
> >>>>>> >> The FV versions on gitosis are very old and it looks like they
> are
> >>>>>> >> pre-1.0 versions. You'll find the latest FV (0.10.0) at
> flowvisor.org.
> >>>>>> >>
> >>>>>> >>
> >>>>>> >> Cheers.
> >>>>>> >>
> >>>>>> >> --
> >>>>>> >> Ali
> >>>>>> >>
> >>>>>> >> On Dec 7, 2012, at 11:00 AM, Humphrey Lee <iramani...@gmail.com>
> >>>>>> >> wrote:
> >>>>>> >>
> >>>>>> >> > Hello Rob,
> >>>>>> >> >
> >>>>>> >> > What is the latest version of FlowVisor? Is it 0.8.0.
> >>>>>> >> >
> >>>>>> >> > I downloaded and compiled a version from
> >>>>>> >> > git://gitosis.stanford.edu/, and tried to run it on Netgear
> GSM7328S.
> >>>>>> >> > However, I got this error message "tcp:my switch ip-address:
> 35380: version
> >>>>>> >> > negotiation failed: we support version 0x97 to. 0x97 inclusive
> but peer
> >>>>>> >> > supports no later than 0x01".
> >>>>>> >> >
> >>>>>> >> > Does this error message mean my flowvisor version is too old?
> >>>>>> >> > Does 0x97 mean that I need version 0.97?
> >>>>>> >> >
> >>>>>> >> > I appreciate for your help.
> >>>>>> >> >
> >>>>>> >> > Sincerely,
> >>>>>> >> > Humphrey Lee (an OpenFlow developer)
> >>>>>> >> >
> >>>>>> >> >
> >>>>>> >> > _______________________________________________
> >>>>>> >> > openflow-discuss mailing list
> >>>>>> >> > openflow-discuss@lists.stanford.edu
> >>>>>> >> > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
> >>>>>> >>
> >>>>>> >>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> openflow-discuss mailing list
> >>>>> openflow-discuss@lists.stanford.edu
> >>>>> https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
> >>>>>
> >>>>
> >>>
> >>
> >
> >
> > _______________________________________________
> > openflow-discuss mailing list
> > openflow-discuss@lists.stanford.edu
> > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss
> >
>
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to