Open jnule1a opened 11 years ago
Thanks for the report! There are really three issues here:
Some NetCore dependences rely on the Happy Haskell parser generator. This needs to be installed before you can build NetCore:
cabal install happy
NB: This should be pre-installed as part of the VM image, but it's not. Hopefully it will be in the future.
At this point, we rely on the Cabal build system rather than make (the Makefile was added at some point as a convenience, but it's not supported or recommended and should probably be removed). From the netcore directory, the command to build NetCore is:
cabal install --enable-tests
or:
cabal-dev install --enable-tests
to install in a sandbox in the current directory.
However, you may also want to build a controller instead of just the library. To build the example controller, navigate to netcore/examples directory and run the command:
cabal-dev install . ..
This will build a single controller binary that includes most of the examples. The executable will be located in netcore/examples/cabal-dev/bin/frenetic-example-suite. Running
frenetic-example-suite --repeater
will start a controller with a policy as stated in netcore/examples/Repeater.hs. You can run
frenetic-example-suite --help
for a list of all the available flags, and the file netcore/examples/Main.hs shows which module each flag invokes.
As for demo.py, it seems to have broken. I'll add a new report on that.
Cheers, Cole
I had difficulties to install netcore. Could you tell me what is wrong ? Thank you in advance. Here is what happened:
I also tried unsuccessfully to use the stable version: