These logs you guys are posting are extremely useful to me. Thanks so
much! I'll probably come back and ask you to try again next week after
I've tried to correct some of these problems.
---------
Matt Taylor
OS Community Flag-Bearer
Numenta


On Sat, Aug 2, 2014 at 8:01 AM, Hideaki Suzuki <[email protected]> wrote:
> Hi,
>
> Partially replying to myself.
>
> After a bit of debugging and tweaking,
>
> Successfully installed nupic
> Cleaning up...
>
> Now "pip install nupic" succeeded for me.  Fantastic!
>
> I can find the following error in the previous pip.log.
> --------
>     Python 2.6.6
>     -- Swig details:
>     --   Version:
>     -- Swig executable:
>     --   Version: /tmp/pip-build-root/nupic/external/linux64/bin/swig
>     -- Swig dir:
>     --   Version: /tmp/pip-build-root/nupic/external/common/share/swig/1.3.36
>
>    CMake Error at CMakeLists.txt:559 (string):
>
>       string sub-command REGEX, mode REPLACE needs at least 6
> arguments total to command.
> --------
>
> The above error came from this code.
>
> https://github.com/numenta/nupic/blob/master/CMakeLists.txt#L527
> --------
> set(SWIG_EXECUTABLE "${REPOSITORY_DIR}/external/${NTA_PLATFORM_OS}/bin/swig")
> set(SWIG_DIR "${REPOSITORY_DIR}/external/common/share/swig/1.3.36")
> execute_process(COMMAND ${SWIG_EXECUTABLE} -version OUTPUT_VARIABLE
> SWIG_VERSION)
> string(REGEX REPLACE ".*SWIG Version[^0-9.]*\([0-9.]+\).*" "\\1"
> SWIG_VERSION ${SWIG_VERSION})
> include(${CMAKE_ROOT}/Modules/UseSWIG.cmake)
> --------
>
> The cause was the permission.
> --------
> # /tmp/pip-build-root/nupic/external/linux64/bin/swig
> bash: /tmp/pip-build-root/nupic/external/linux64/bin/swig: Permission denied
> # ls -lh /tmp/pip-build-root/nupic/external/linux64/bin/swig
> -rw-r--r-- 1 root root 3.3M Aug  2 21:36
> /tmp/pip-build-root/nupic/external/linux64/bin/swig
> --------
>
> A remedy.
> # chmod +x /tmp/pip-build-root/nupic/external/linux64/bin/swig
>
> Here is the information of my machine.  Mostly the same of the
> pastebin of mine in the last mail.
> --------
> Environment:
>   - VMware CentOS 64bit Guest
>   - 1CPU, 1GB RAM, 20GB SCSI Disk, 1 NIC(One static IP on VMnet8/NAT)
>   - CentOS6.5 x86_64 Basic Server Installation with default parameters
>   - SELinux Disabled
>   - Additional Packages
>     * EPEL Repo: rpm -ivh
> http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
>     * Git: yum install git
>     * Pip(EPEL): yum install python-pip
>     * Cmake: yum install cmake28 && ln -s cmake28 /usr/bin/cmake
>     * Devtoolset-2:
>       cat > /etc/yum.repos.d/DevToolset.repo <<-"EOF"
>       [DevToolset-2]
>       name=RedHat DevToolset v2 $releasever - $basearch
>       
> baseurl=http://puias.princeton.edu/data/puias/DevToolset/$releasever/$basearch/
>       enabled=1
>       gpgcheck=0
>       EOF
>       yum install devtoolset-2-toolchain devtoolset-2-perftools
>     * Python-devel: yum install python-devel
>
> Procedure:
>   Login as root
>   # scl enable devtoolset-2 bash
>   # pip install nupic
> --------
>
> _______________________________________________
> nupic mailing list
> [email protected]
> http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org

_______________________________________________
nupic mailing list
[email protected]
http://lists.numenta.org/mailman/listinfo/nupic_lists.numenta.org

Reply via email to