Software/tips/nupic
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[labs.beatcraft.com]]
#contents
* Procedure of How to build Numenta NuPIC on MacOS X Mave...
>
This article is basically identical to the original proce...
~
This follows the procedure, which is listed on ?Getting S...
~
How to execute NuPIC is written at the section of ?Runnin...
** Requirements [#f12110c9]
>
- Git (pre-installed in Mac OS X Mavericks)~
- Python (pre-installed in Mac OS X Mavericks)~
- GCC or Clang (pre-installed in Mac OS X Mavericks)~
- CMake (needed to be newly installed in Mac OS X Maveric...
** Build Procedure [#y87b4d97]
>
+OS~
Please update to OS X 10.9 Mavericks if your Mac is not r...
It is very difficult to build NuPIC on earlier version of...
~
+Build Tools~
Install XCode 5 or later.~
Download it from App Store, and install it. Then, at Appl...
Xcode > Open Developer Tool > More Developer Tools
Then, as web pages of ?Downloads for Apple Developers? is...
~
The versions of tools, which are used here are:~
Xcode 5.0.2~
Command Line Tools (OS X Mavericks) for Xcode Late Octobe...
~
+homebrew~
To install other packages, which are required for the bui...
・automake~
・libtool~
・cmake~
~
CMake is available at its web page, and you may download ...
~
In this article, homebrew is employed for installing CMak...
~
To install homeberw, please open up Terminal, type in the...
$ ruby -e ?$(curl -fsSL https://raw.github.com/Homebrew/...
~
As the installation process of homebrew is completed with...
$ brew update
$ brew doctor
~
?$ brew update? is for checking any updates, and ?$brew d...
$ brew install automake libtool cmake
~
+Downloading Source Code~
Checkout by git. A working directory "work" is created, a...
If you wish to contribute to NuPIC, please create own git...
$ cd ~
$ mkdir work
$ cd work
$ git clone https://github.com/numenta/nupic.git
~
+Environment Variable~
~/.profile
Store the environment variables, which are required for t...
$ printenv
If you do not like storing these information variable in ...
# Target source/repo path (where you cloned the repo). D...
export NUPIC=~/dev/nupic
# NTA installation path
export NTA=$NUPIC/nta/eng
# Convenience variable for temporary build file
export BUILDLIR=/tmp/ntabuild
# Number of jobs to run in parallel (Optional)
export MK_JOBS=3
# Set up the rest of the necessary env variables. Must b...
# setting $NTA.
source $NUPIC/env.sh
~
+pip~
pip is a tool that manages Python Packages. Install pip.~
$ sudo easy_install pip
~
+Installing Python Library~
To use pip, install the python library, which is necessar...
$ sudo pip install -r $NUPIC/external/common/requirement...
According to [[Running NuPIC on OS X:https://github.com/n...
$ sudo pip install ―allow-all-external ―allo...
~
+Build NuPIC~
Execute the build script. If the messages shown below app...
$ $NUPIC/build.sh
...
...
...
Stdout redirected to; /Users/otsuka/work/nupic/build_sys...
Build successful.
~
**Tests [#e2532fb5]
>
After the build process is completed, NuPIC is tested for...
-C++ Test
~
$ cd $NTA/bin
~
$ htmtest
...
... Skip
...
― ALL TESTS PASSES ―
~
$ testeverything
...
... Skip
...
********************************************************...
* Numenta Unit Test summary
*
* Total categories = 39
* Total tests = 2252
* Total passed = 2252
* Total disabled = 0
* Total failed = 0
* Total critical failures = 0
* Success rate = 100
********************************************************...
-Python Unit Test~
~
$ cd $NUPIC
~
$ $NUPIC/run_tests.sh
============================= test session starts ======...
platform darwin -- Python 2.7.5 -- pytest-2.4.2 -- /usr/...
plugins: cov, xdist
collected 697 items / 2 skipped
?
? Skip
...
=================== 687 passed, 12 skipped in 150.86 sec...
**Note [#q355cd85]
>
Even though the build process uses CMake, the build prece...
~
**Versions of Tools [#uc08124f]
>
$ python -V
Python 2.7.5
~
$ pip -V
pip 1.5.4 from /Library/Python/2.7/site-packages/pip-1.5...
~
$ clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3...
Target: x86_64-apple-darwin13.1.0
Thread model: posix
~
$ brew ―version
0.9.5
~
$ brew list
autoconf automake cmake libtool
* Revision History [#q253018b]
>
- 2014/04/21 This article is initially published
End:
[[labs.beatcraft.com]]
#contents
* Procedure of How to build Numenta NuPIC on MacOS X Mave...
>
This article is basically identical to the original proce...
~
This follows the procedure, which is listed on ?Getting S...
~
How to execute NuPIC is written at the section of ?Runnin...
** Requirements [#f12110c9]
>
- Git (pre-installed in Mac OS X Mavericks)~
- Python (pre-installed in Mac OS X Mavericks)~
- GCC or Clang (pre-installed in Mac OS X Mavericks)~
- CMake (needed to be newly installed in Mac OS X Maveric...
** Build Procedure [#y87b4d97]
>
+OS~
Please update to OS X 10.9 Mavericks if your Mac is not r...
It is very difficult to build NuPIC on earlier version of...
~
+Build Tools~
Install XCode 5 or later.~
Download it from App Store, and install it. Then, at Appl...
Xcode > Open Developer Tool > More Developer Tools
Then, as web pages of ?Downloads for Apple Developers? is...
~
The versions of tools, which are used here are:~
Xcode 5.0.2~
Command Line Tools (OS X Mavericks) for Xcode Late Octobe...
~
+homebrew~
To install other packages, which are required for the bui...
・automake~
・libtool~
・cmake~
~
CMake is available at its web page, and you may download ...
~
In this article, homebrew is employed for installing CMak...
~
To install homeberw, please open up Terminal, type in the...
$ ruby -e ?$(curl -fsSL https://raw.github.com/Homebrew/...
~
As the installation process of homebrew is completed with...
$ brew update
$ brew doctor
~
?$ brew update? is for checking any updates, and ?$brew d...
$ brew install automake libtool cmake
~
+Downloading Source Code~
Checkout by git. A working directory "work" is created, a...
If you wish to contribute to NuPIC, please create own git...
$ cd ~
$ mkdir work
$ cd work
$ git clone https://github.com/numenta/nupic.git
~
+Environment Variable~
~/.profile
Store the environment variables, which are required for t...
$ printenv
If you do not like storing these information variable in ...
# Target source/repo path (where you cloned the repo). D...
export NUPIC=~/dev/nupic
# NTA installation path
export NTA=$NUPIC/nta/eng
# Convenience variable for temporary build file
export BUILDLIR=/tmp/ntabuild
# Number of jobs to run in parallel (Optional)
export MK_JOBS=3
# Set up the rest of the necessary env variables. Must b...
# setting $NTA.
source $NUPIC/env.sh
~
+pip~
pip is a tool that manages Python Packages. Install pip.~
$ sudo easy_install pip
~
+Installing Python Library~
To use pip, install the python library, which is necessar...
$ sudo pip install -r $NUPIC/external/common/requirement...
According to [[Running NuPIC on OS X:https://github.com/n...
$ sudo pip install ―allow-all-external ―allo...
~
+Build NuPIC~
Execute the build script. If the messages shown below app...
$ $NUPIC/build.sh
...
...
...
Stdout redirected to; /Users/otsuka/work/nupic/build_sys...
Build successful.
~
**Tests [#e2532fb5]
>
After the build process is completed, NuPIC is tested for...
-C++ Test
~
$ cd $NTA/bin
~
$ htmtest
...
... Skip
...
― ALL TESTS PASSES ―
~
$ testeverything
...
... Skip
...
********************************************************...
* Numenta Unit Test summary
*
* Total categories = 39
* Total tests = 2252
* Total passed = 2252
* Total disabled = 0
* Total failed = 0
* Total critical failures = 0
* Success rate = 100
********************************************************...
-Python Unit Test~
~
$ cd $NUPIC
~
$ $NUPIC/run_tests.sh
============================= test session starts ======...
platform darwin -- Python 2.7.5 -- pytest-2.4.2 -- /usr/...
plugins: cov, xdist
collected 697 items / 2 skipped
?
? Skip
...
=================== 687 passed, 12 skipped in 150.86 sec...
**Note [#q355cd85]
>
Even though the build process uses CMake, the build prece...
~
**Versions of Tools [#uc08124f]
>
$ python -V
Python 2.7.5
~
$ pip -V
pip 1.5.4 from /Library/Python/2.7/site-packages/pip-1.5...
~
$ clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3...
Target: x86_64-apple-darwin13.1.0
Thread model: posix
~
$ brew ―version
0.9.5
~
$ brew list
autoconf automake cmake libtool
* Revision History [#q253018b]
>
- 2014/04/21 This article is initially published
Page: