Closed oxtopus closed 8 years ago
gcc is out of date (at 4.4.7), too. nupic readme says gcc 4.6 or 4.8 (or clang). Ideally, the image would come with a recent install of clang.
readme says gcc 4.6 or 4.8 (or clang).
just a nit, 4.6 - 4.8
This more or less captures what I had to do on top of the vagrant image (assuming numenta/nupic#716 is merged)
sudo yum install cmake28.x86_64 clang
echo "# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# This is a minimal .bashrc setup for running NuPIC, Hadoop and the Grok engine.
# IMPORTANT: make sure you have .profile and .bash_profile read in your .bashrc
################################################################
#
# Required for basic NuPIC usage
#
export NTA=$HOME/nta/eng
export PATH=.:$NTA/bin:$PATH:/home/vagrant/python/bin:/bin:/usr/bin:/usr/sbin:/sbin:$HOME/bin:$HOME/jython
export LD_LIBRARY_PATH=/home/vagrant/python/lib
export PYTHONPATH=/home/vagrant/python/lib/python2.7/site-packages
export NUPIC=$HOME/nupic
export CC=clang
export CXX=clang++
source $HOME/nupic-linux64/bin/activate > /dev/null
" > ~/.bashrc"
Log out/log in
wget http://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
tar xzvf Python-2.7.6.tgz
cd Python-2.7.6
./configure --enable-shared --prefix=/usr/local
make
make altinstall
git clone https://github.com/numenta/nupic.git
git clone https://github.com/numenta/nupic-linux64.git
cd nupic-linux64
git checkout python-2.7-with-pillow
pip install --install-option="--prefix=${NUPIC_ENV}" --ignore-installed --upgrade --build="${NUPIC_ENV}/pip-build" -r ${NUPIC}/external/common/requirements.txt
mkdir cd $NUPIC/build_system
cd $NUPIC/build_system
cmake ..
make -j3 VERBOSE
This issue has been closed because it is obsolete because Docker.
Following instructions at https://github.com/numenta/nupic/wiki/Running-NuPIC-in-a-Virtual-Machine will no longer yield a workable nupic installation.
Of note:
git submodule
dependency on nupic.coreyum install cmake
installs cmake 2.6, which is not compatible with nupicsudo yum install cmake28.x86_64
)cmake28 ..
insidebuild_system/
fails (possibly because of numpy, see below).To be current with nupic status quo, image needs to be updated to include the right version of cmake, python dependencies, and an updated default python 2.7 installation. Instructions need to be revised, too.