Assuming you have already followed the instructions in the NuPIC README,
here is the steps I have taken to build NuPIC. These instructions are
released into the public domain, or under the CC-0 license where the public
domain is not recognised.
These steps seem to have got me most of the way. Here is the result of
nta/bin/testeverything:
*******************************************************************
* Numenta Unit Test summary
*
* Total categories = 40
* Total tests = 2209
* Total passed = 2208
* Total disabled = 0
* Total failed = 1
FAILED: RegionTest
* Total critical failures = 1
FAILED: RegionTest
MSG: Could not get valid spec for Region: py.TestNode
* Success rate = 99.9095
*******************************************************************
1) Apply this patch so that NuPIC doesn't bork with a recent kernel.
diff --git a/build_system/pybuild/arch.py b/build_system/pybuild/arch.py
index f3b1b0b..30dd56a 100644
--- a/build_system/pybuild/arch.py
+++ b/build_system/pybuild/arch.py
@@ -28,7 +28,7 @@ def getArch() :
Return the NuPIC architecture name.
Note that this is redundant with the calculation in configure.ac
"""
- if sys.platform == "linux2":
+ if sys.platform in ("linux2", "linux3"):
#
# platform.processor() vs. platform.machine() is a bit of a mystery
# On linux systems, they ultimately translate to uname -p and uname
-m, respectively.
2) Install pythonbrew (https://github.com/utahta/pythonbrew). This allows
you to easily have multiple Python interpreters installed.
curl -kL http://xrl.us/pythonbrewinstall | bash
echo '[[ -s $HOME/.pythonbrew/etc/bashrc ]] && source
$HOME/.pythonbrew/etc/bashrc' >> ~/.bashrc
3) Add hack to get around a quirk with Python 2.6 not keeping up-to-date
with a change to SVN's output.
echo -e '#!/bin/sh\necho exported' /tmp/svnversion
sudo mv /tmp/svnversion /usr/local/bin/svnversion
sudo chmod +rx /usr/local/bin/svnversion
4) Install python2.6
pythonbrew install python2.6
5) Install the development headers via a PPA (didn't want to touch NuPIC's
Makefiles).
sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python2.6-dev
6) Build!
pythonbrew use python2.6
$NUPIC/build.sh
_______________________________________________
nupic mailing list
[email protected]
http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org