OS X / NuPIC
[
Front page
] [
New
|
List of pages
|
Search
|
Recent changes
]
Start:
[[labs.beatcraft.com]]~
[[OS X]]~
#contents
*Installing NuPIC on OS X Mavericks [#u488f455]
** Overview [#t24bb3b1]
>
This article briefly explains what NuPIC is and shows how...
~
NuPIC is an algorithm for machine learning, based upon CL...
~
More information and a copy of NuPIC are available at [[N...
~
For details of how to install and how to execute NuPIC on...
** Requirements [#w7ac60e7]
>
- Python 2.7.5 (for this article)
-- pip 1.5.4
~
- OS X 10.9 Mavericks or later~
This a must-requirement. If you use older version of OS X...
~
- Xcode 5 or later (including its Command Line Tools)
Please download Command Line Tools from Xcode. Command Li...
-- clang
-- Git (This is a part of Xcode)
-- Python (This is installed with Xcode, Xcode's Command ...
-- GCC or Clang (This is a part of Xcode, Xcode's Command...
~
- homebrew 0.95
To use homebrew 0.95, please install the software package...
-- CMake (Needed to be installed separately as well as in...
-- autoconf
-- automake
-- libtool
* Instructions for building NuPIC [#a6e903fa]
>
1. Checking OS~
The minimum version of OS X is 10.9. If you are using old...
>
2 Setting up Build Tools~
Install Xcode from App Store. Then, install Command Line ...
Xcode > Open Developer Tool > More Developer Tools
Or, opening up Terminal, apply the command below~
xcode-select ?install
>
3. Installing homebrew~
homebrew is a package installer. To use homebrew, install...
- automake
- libtool
- cmake
>
Cmake can be installed from the dmg file, which can be do...
To install homebrew, open up Terminal, apply the command ...
$ ruby -e ?$(curl -fsSL https://raw.github.com/Homebrew/...
~
To check whether homebrew is installed correctly or not, ...
$ brew update
$ brew doctor
~
If there are no problems on the installation of homebrew,...
$ brew install automake libtool cmake
~
>
4. Downloading source code of NuPIC~
Check out source code from git. If you wish to contribute...
$ cd ~
$ mkdir work
$ cd work
$ git clone https://github.com/numenta/nupic.git
>
5. Configuring environment variable~
To set up the environment variable, which is required for...
Usually this file is set to be invisible. Please use Term...
~/.profile
~
Configure environment variables, which are needed for bui...
# The directory of source repository where it is git ch...
export NUPIC=~/work/nupic
# Installation PATH of NTA
export NTA=$NUPIC/nta/eng
# Temporary Build file PATH
export BUILDDIR=/tmp/ntabuild
# Number of concurrent jobs for building (i.e. number of...
export MK_JOBS=3
# Configuration for other required environment variables
source $NUPIC/env.sh
~
Then, go back to Terminal, open up .profile file, and mak...
$ printenv
>
6. Installing pip~
Installing pip, which is a package manager for Python.~
$ sudo easy_install pip
>
7. Installing Python libraries~
Using pip, install Python libraries, which are required f...
$ sudo pip install -r $NUPIC/external/common/requirement...
If you use pip 1.5 or later, you may apply the command li...
$ sudo pip install --allow-all-external --allow-unverifi...
~
If you encounter a permission denied error when you use p...
>
8. Building and Installing NuPIC~
Move to the NuPIC installation directory and execute the...
Python setup.py install
If you can see the message listed below, the installation...
$ $NUPIC/build.sh
...
...
...
Stdout redirected to; /Users/otsuka/work/nupic/build_sys...
Build successful.
~
If you face a permission denied error when you use NuPIC,...
* Test [#md9192d3]
>
Please test that NuPIC can be executed properly when it i...
** C++ Test [#j60baad1]
>
$ cd $NTA/bin
~
$ htmtest
...
... Skipping
...
-- ALL TESTS PASSES --
~
$ testeverything
...
... Skipping
...
********************************************************...
* 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 [#c3f82012]
>
$ 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
?
? Skipping
...
=================== 687 passed, 12 skipped in 150.86 sec...
** Caution [#uad9ceb5]
>
You cannot build application with GUI of Xcode, even thou...
*** Versions of Command Tools [#g07bcf5b]
>
$ 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 [#dc669f0c]
>
- 2015/01/05 This article is initially uploaded
End:
[[labs.beatcraft.com]]~
[[OS X]]~
#contents
*Installing NuPIC on OS X Mavericks [#u488f455]
** Overview [#t24bb3b1]
>
This article briefly explains what NuPIC is and shows how...
~
NuPIC is an algorithm for machine learning, based upon CL...
~
More information and a copy of NuPIC are available at [[N...
~
For details of how to install and how to execute NuPIC on...
** Requirements [#w7ac60e7]
>
- Python 2.7.5 (for this article)
-- pip 1.5.4
~
- OS X 10.9 Mavericks or later~
This a must-requirement. If you use older version of OS X...
~
- Xcode 5 or later (including its Command Line Tools)
Please download Command Line Tools from Xcode. Command Li...
-- clang
-- Git (This is a part of Xcode)
-- Python (This is installed with Xcode, Xcode's Command ...
-- GCC or Clang (This is a part of Xcode, Xcode's Command...
~
- homebrew 0.95
To use homebrew 0.95, please install the software package...
-- CMake (Needed to be installed separately as well as in...
-- autoconf
-- automake
-- libtool
* Instructions for building NuPIC [#a6e903fa]
>
1. Checking OS~
The minimum version of OS X is 10.9. If you are using old...
>
2 Setting up Build Tools~
Install Xcode from App Store. Then, install Command Line ...
Xcode > Open Developer Tool > More Developer Tools
Or, opening up Terminal, apply the command below~
xcode-select ?install
>
3. Installing homebrew~
homebrew is a package installer. To use homebrew, install...
- automake
- libtool
- cmake
>
Cmake can be installed from the dmg file, which can be do...
To install homebrew, open up Terminal, apply the command ...
$ ruby -e ?$(curl -fsSL https://raw.github.com/Homebrew/...
~
To check whether homebrew is installed correctly or not, ...
$ brew update
$ brew doctor
~
If there are no problems on the installation of homebrew,...
$ brew install automake libtool cmake
~
>
4. Downloading source code of NuPIC~
Check out source code from git. If you wish to contribute...
$ cd ~
$ mkdir work
$ cd work
$ git clone https://github.com/numenta/nupic.git
>
5. Configuring environment variable~
To set up the environment variable, which is required for...
Usually this file is set to be invisible. Please use Term...
~/.profile
~
Configure environment variables, which are needed for bui...
# The directory of source repository where it is git ch...
export NUPIC=~/work/nupic
# Installation PATH of NTA
export NTA=$NUPIC/nta/eng
# Temporary Build file PATH
export BUILDDIR=/tmp/ntabuild
# Number of concurrent jobs for building (i.e. number of...
export MK_JOBS=3
# Configuration for other required environment variables
source $NUPIC/env.sh
~
Then, go back to Terminal, open up .profile file, and mak...
$ printenv
>
6. Installing pip~
Installing pip, which is a package manager for Python.~
$ sudo easy_install pip
>
7. Installing Python libraries~
Using pip, install Python libraries, which are required f...
$ sudo pip install -r $NUPIC/external/common/requirement...
If you use pip 1.5 or later, you may apply the command li...
$ sudo pip install --allow-all-external --allow-unverifi...
~
If you encounter a permission denied error when you use p...
>
8. Building and Installing NuPIC~
Move to the NuPIC installation directory and execute the...
Python setup.py install
If you can see the message listed below, the installation...
$ $NUPIC/build.sh
...
...
...
Stdout redirected to; /Users/otsuka/work/nupic/build_sys...
Build successful.
~
If you face a permission denied error when you use NuPIC,...
* Test [#md9192d3]
>
Please test that NuPIC can be executed properly when it i...
** C++ Test [#j60baad1]
>
$ cd $NTA/bin
~
$ htmtest
...
... Skipping
...
-- ALL TESTS PASSES --
~
$ testeverything
...
... Skipping
...
********************************************************...
* 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 [#c3f82012]
>
$ 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
?
? Skipping
...
=================== 687 passed, 12 skipped in 150.86 sec...
** Caution [#uad9ceb5]
>
You cannot build application with GUI of Xcode, even thou...
*** Versions of Command Tools [#g07bcf5b]
>
$ 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 [#dc669f0c]
>
- 2015/01/05 This article is initially uploaded
Page: