Skip to content

Instantly share code, notes, and snippets.

@csbond007
Created June 24, 2016 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csbond007/ced7722efeebd0b4d38685e2ccb0e258 to your computer and use it in GitHub Desktop.
Save csbond007/ced7722efeebd0b4d38685e2ccb0e258 to your computer and use it in GitHub Desktop.
I am running on a AWS free tier Ubuntu box. OS version is Ubuntu 14.04.4 LTS
Default python version was 2.7.6.
Failed building wheel for pycapnp
---------------------------------------------------------------
sudo apt-get update -y
sudo apt-get install git g++ cmake python-dev -y
git clone https://github.com/numenta/nupic.core.git
git clone https://github.com/numenta/nupic.git
export NUPIC=$HOME/nupic
export NUPIC_CORE=$HOME/nupic.core
curl https://bootstrap.pypa.io/get-pip.py | sudo python
cd $NUPIC_CORE
pip install -r bindings/py/requirements.txt --user
pip install pycapnp --user
--------------------------------------------------------
ubuntu@ip-172-31-58-164:~$ python --version
Python 2.7.6
ubuntu@ip-172-31-58-164:~$ sudo apt-get update -y
Ign http://us-east-1.ec2.archive.ubuntu.com trusty InRelease
Get:1 http://us-east-1.ec2.archive.ubuntu.com trusty-updates InRelease [65.9 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com trusty-backports InRelease [65.9 k B]
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release.gpg
Hit http://us-east-1.ec2.archive.ubuntu.com trusty Release
Get:3 http://security.ubuntu.com trusty-security InRelease [65.9 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Sources [277 k B]
Get:5 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/restricted Sources [5,352 B]
Get:6 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Sources [1 57 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/multiverse Sources [5,936 B]
Get:8 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main amd64 Packages [781 kB]
Get:9 http://security.ubuntu.com trusty-security/main Sources [116 kB]
Get:10 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/restricted amd64 P ackages [15.9 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe amd64 Pac kages [362 kB]
Get:12 http://security.ubuntu.com trusty-security/universe Sources [37.3 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/multiverse amd64 P ackages [13.2 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/main Translation-e n [391 kB]
Get:15 http://security.ubuntu.com trusty-security/main amd64 Packages [493 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/multiverse Transla tion-en [7,227 B]
Get:17 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/restricted Transla tion-en [3,699 B]
Get:18 http://us-east-1.ec2.archive.ubuntu.com trusty-updates/universe Translati on-en [189 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/main Sources [9, 551 B]
Get:20 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/restricted Sourc es [28 B]
Get:21 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/universe Sources [35.2 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/multiverse Sourc es [1,898 B]
Get:23 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/main amd64 Packa ges [13.3 kB]
Get:24 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/restricted amd64 Packages [28 B]
Get:25 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/universe amd64 P ackages [43.2 kB]
Get:26 http://security.ubuntu.com trusty-security/universe amd64 Packages [130 k B]
Get:27 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/multiverse amd64 Packages [1,571 B]
Get:28 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/main Translation -en [7,505 B]
Get:29 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/multiverse Trans lation-en [1,215 B]
Get:30 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/restricted Trans lation-en [28 B]
Get:31 http://us-east-1.ec2.archive.ubuntu.com trusty-backports/universe Transla tion-en [36.8 kB]
Get:32 http://us-east-1.ec2.archive.ubuntu.com trusty/main Sources [1,064 kB]
Get:33 http://security.ubuntu.com trusty-security/main Translation-en [271 kB]
Get:34 http://us-east-1.ec2.archive.ubuntu.com trusty/restricted Sources [5,433 B]
Get:35 http://us-east-1.ec2.archive.ubuntu.com trusty/universe Sources [6,399 kB ]
Get:36 http://security.ubuntu.com trusty-security/universe Translation-en [76.6 kB]
Get:37 http://us-east-1.ec2.archive.ubuntu.com trusty/multiverse Sources [174 kB ]
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/restricted Translation-en
Hit http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/main Translation-en_US
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://us-east-1.ec2.archive.ubuntu.com trusty/universe Translation-en_US
Fetched 11.3 MB in 4s (2,586 kB/s)
Reading package lists... Done
ubuntu@ip-172-31-58-164:~$ sudo apt-get install git g++ cmake python-dev -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
binutils cmake-data cpp cpp-4.8 g++-4.8 gcc gcc-4.8 gcc-4.8-base git-man
libarchive13 libasan0 libatomic1 libc-dev-bin libc6 libc6-dev libcloog-isl4
liberror-perl libexpat1 libexpat1-dev libgcc-4.8-dev libgmp10 libgomp1
libisl10 libitm1 liblzo2-2 libmpc3 libmpfr4 libnettle4 libpython-dev
libpython2.7-dev libquadmath0 libstdc++-4.8-dev libstdc++6 libtsan0
linux-libc-dev make manpages-dev python2.7-dev
Suggested packages:
binutils-doc codeblocks eclipse cpp-doc gcc-4.8-locales g++-multilib
g++-4.8-multilib gcc-4.8-doc libstdc++6-4.8-dbg gcc-multilib autoconf
automake1.9 libtool flex bison gdb gcc-doc gcc-4.8-multilib libgcc1-dbg
libgomp1-dbg libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg
libquadmath0-dbg git-daemon-run git-daemon-sysvinit git-doc git-el git-email
git-gui gitk gitweb git-arch git-bzr git-cvs git-mediawiki git-svn lrzip
glibc-doc libstdc++-4.8-doc make-doc
The following NEW packages will be installed:
binutils cmake cmake-data cpp cpp-4.8 g++ g++-4.8 gcc gcc-4.8 git git-man
libarchive13 libasan0 libatomic1 libc-dev-bin libc6-dev libcloog-isl4
liberror-perl libexpat1-dev libgcc-4.8-dev libgmp10 libgomp1 libisl10
libitm1 liblzo2-2 libmpc3 libmpfr4 libnettle4 libpython-dev libpython2.7-dev
libquadmath0 libstdc++-4.8-dev libtsan0 linux-libc-dev make manpages-dev
python-dev python2.7-dev
The following packages will be upgraded:
gcc-4.8-base libc6 libexpat1 libstdc++6
4 upgraded, 38 newly installed, 0 to remove and 85 not upgraded.
Need to get 73.1 MB of archives.
After this operation, 186 MB of additional disk space will be used.
Get:1 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4. 8-base amd64 4.8.4-2ubuntu1~14.04.3 [16.2 kB]
Get:2 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libstd c++6 amd64 4.8.4-2ubuntu1~14.04.3 [259 kB]
Get:3 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libc6 amd64 2.19-0ubuntu6.9 [4,717 kB]
Get:4 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libexp at1 amd64 2.1.0-4ubuntu1.3 [71.1 kB]
Get:5 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main liblzo 2-2 amd64 2.06-1.2ubuntu1.1 [46.1 kB]
Get:6 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libnet tle4 amd64 2.7.1-1ubuntu0.1 [102 kB]
Get:7 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libarc hive13 amd64 3.1.2-7ubuntu2.2 [259 kB]
Get:8 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libasa n0 amd64 4.8.4-2ubuntu1~14.04.3 [63.1 kB]
Get:9 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libato mic1 amd64 4.8.4-2ubuntu1~14.04.3 [8,636 B]
Get:10 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libgmp10 amd6 4 2:5.1.3+dfsg-1ubuntu1 [218 kB]
Get:11 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libisl10 amd6 4 0.12.2-1 [419 kB]
Get:12 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libcloog-isl4 amd64 0.18.2-1 [57.5 kB]
Get:13 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libgo mp1 amd64 4.8.4-2ubuntu1~14.04.3 [23.1 kB]
Get:14 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libit m1 amd64 4.8.4-2ubuntu1~14.04.3 [28.5 kB]
Get:15 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libmpfr4 amd6 4 3.1.2-1 [203 kB]
Get:16 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libc- dev-bin amd64 2.19-0ubuntu6.9 [69.0 kB]
Get:17 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main linux -libc-dev amd64 3.13.0-88.135 [772 kB]
Get:18 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libc6 -dev amd64 2.19-0ubuntu6.9 [1,910 kB]
Get:19 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libex pat1-dev amd64 2.1.0-4ubuntu1.3 [115 kB]
Get:20 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libpy thon2.7-dev amd64 2.7.6-8ubuntu0.2 [22.0 MB]
Get:21 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libqu admath0 amd64 4.8.4-2ubuntu1~14.04.3 [126 kB]
Get:22 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libts an0 amd64 4.8.4-2ubuntu1~14.04.3 [94.9 kB]
Get:23 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libmpc3 amd64 1.0.1-1ubuntu1 [38.4 kB]
Get:24 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main binut ils amd64 2.24-5ubuntu14.1 [2,081 kB]
Get:25 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main cmake-data al l 2.8.12.2-0ubuntu3 [676 kB]
Get:26 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main cmake amd64 2 .8.12.2-0ubuntu3 [2,618 kB]
Get:27 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main cpp-4 .8 amd64 4.8.4-2ubuntu1~14.04.3 [4,595 kB]
Get:28 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main cpp amd64 4:4 .8.2-1ubuntu6 [27.5 kB]
Get:29 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libgc c-4.8-dev amd64 4.8.4-2ubuntu1~14.04.3 [1,688 kB]
Get:30 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main gcc-4 .8 amd64 4.8.4-2ubuntu1~14.04.3 [5,047 kB]
Get:31 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main gcc amd64 4:4 .8.2-1ubuntu6 [5,098 B]
Get:32 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main libst dc++-4.8-dev amd64 4.8.4-2ubuntu1~14.04.3 [1,053 kB]
Get:33 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main g++-4 .8 amd64 4.8.4-2ubuntu1~14.04.3 [18.1 MB]
Get:34 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main g++ amd64 4:4 .8.2-1ubuntu6 [1,490 B]
Get:35 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main liberror-perl all 0.17-1.1 [21.1 kB]
Get:36 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main git-m an all 1:1.9.1-1ubuntu0.3 [699 kB]
Get:37 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main git a md64 1:1.9.1-1ubuntu0.3 [2,586 kB]
Get:38 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main libpython-dev amd64 2.7.5-5ubuntu3 [7,078 B]
Get:39 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main make amd64 3. 81-8.2ubuntu3 [119 kB]
Get:40 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main manpages-dev all 3.54-1ubuntu1 [1,820 kB]
Get:41 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main pytho n2.7-dev amd64 2.7.6-8ubuntu0.2 [269 kB]
Get:42 http://us-east-1.ec2.archive.ubuntu.com/ubuntu/ trusty/main python-dev am d64 2.7.5-5ubuntu3 [1,166 B]
Fetched 73.1 MB in 5s (14.5 MB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 51150 files and directories currently installed.)
Preparing to unpack .../gcc-4.8-base_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04 ) ...
Setting up gcc-4.8-base:amd64 (4.8.4-2ubuntu1~14.04.3) ...
(Reading database ... 51150 files and directories currently installed.)
Preparing to unpack .../libstdc++6_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3) over (4.8.4-2ubuntu1~14.04) ...
Preparing to unpack .../libc6_2.19-0ubuntu6.9_amd64.deb ...
Unpacking libc6:amd64 (2.19-0ubuntu6.9) over (2.19-0ubuntu6.6) ...
Setting up libc6:amd64 (2.19-0ubuntu6.9) ...
Setting up libstdc++6:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
(Reading database ... 51150 files and directories currently installed.)
Preparing to unpack .../libexpat1_2.1.0-4ubuntu1.3_amd64.deb ...
Unpacking libexpat1:amd64 (2.1.0-4ubuntu1.3) over (2.1.0-4ubuntu1.1) ...
Selecting previously unselected package liblzo2-2:amd64.
Preparing to unpack .../liblzo2-2_2.06-1.2ubuntu1.1_amd64.deb ...
Unpacking liblzo2-2:amd64 (2.06-1.2ubuntu1.1) ...
Selecting previously unselected package libnettle4:amd64.
Preparing to unpack .../libnettle4_2.7.1-1ubuntu0.1_amd64.deb ...
Unpacking libnettle4:amd64 (2.7.1-1ubuntu0.1) ...
Selecting previously unselected package libarchive13:amd64.
Preparing to unpack .../libarchive13_3.1.2-7ubuntu2.2_amd64.deb ...
Unpacking libarchive13:amd64 (3.1.2-7ubuntu2.2) ...
Selecting previously unselected package libasan0:amd64.
Preparing to unpack .../libasan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../libatomic1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libgmp10:amd64.
Preparing to unpack .../libgmp10_2%3a5.1.3+dfsg-1ubuntu1_amd64.deb ...
Unpacking libgmp10:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Selecting previously unselected package libisl10:amd64.
Preparing to unpack .../libisl10_0.12.2-1_amd64.deb ...
Unpacking libisl10:amd64 (0.12.2-1) ...
Selecting previously unselected package libcloog-isl4:amd64.
Preparing to unpack .../libcloog-isl4_0.18.2-1_amd64.deb ...
Unpacking libcloog-isl4:amd64 (0.18.2-1) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../libgomp1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../libitm1_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libmpfr4:amd64.
Preparing to unpack .../libmpfr4_3.1.2-1_amd64.deb ...
Unpacking libmpfr4:amd64 (3.1.2-1) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../libc-dev-bin_2.19-0ubuntu6.9_amd64.deb ...
Unpacking libc-dev-bin (2.19-0ubuntu6.9) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../linux-libc-dev_3.13.0-88.135_amd64.deb ...
Unpacking linux-libc-dev:amd64 (3.13.0-88.135) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../libc6-dev_2.19-0ubuntu6.9_amd64.deb ...
Unpacking libc6-dev:amd64 (2.19-0ubuntu6.9) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../libexpat1-dev_2.1.0-4ubuntu1.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-4ubuntu1.3) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.6-8ubuntu0.2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../libquadmath0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../libtsan0_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../libmpc3_1.0.1-1ubuntu1_amd64.deb ...
Unpacking libmpc3:amd64 (1.0.1-1ubuntu1) ...
Selecting previously unselected package binutils.
Preparing to unpack .../binutils_2.24-5ubuntu14.1_amd64.deb ...
Unpacking binutils (2.24-5ubuntu14.1) ...
Selecting previously unselected package cmake-data.
Preparing to unpack .../cmake-data_2.8.12.2-0ubuntu3_all.deb ...
Unpacking cmake-data (2.8.12.2-0ubuntu3) ...
Selecting previously unselected package cmake.
Preparing to unpack .../cmake_2.8.12.2-0ubuntu3_amd64.deb ...
Unpacking cmake (2.8.12.2-0ubuntu3) ...
Selecting previously unselected package cpp-4.8.
Preparing to unpack .../cpp-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking cpp-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package cpp.
Preparing to unpack .../cpp_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking cpp (4:4.8.2-1ubuntu6) ...
Selecting previously unselected package libgcc-4.8-dev:amd64.
Preparing to unpack .../libgcc-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package gcc-4.8.
Preparing to unpack .../gcc-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking gcc-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package gcc.
Preparing to unpack .../gcc_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking gcc (4:4.8.2-1ubuntu6) ...
Selecting previously unselected package libstdc++-4.8-dev:amd64.
Preparing to unpack .../libstdc++-4.8-dev_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package g++-4.8.
Preparing to unpack .../g++-4.8_4.8.4-2ubuntu1~14.04.3_amd64.deb ...
Unpacking g++-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Selecting previously unselected package g++.
Preparing to unpack .../g++_4%3a4.8.2-1ubuntu6_amd64.deb ...
Unpacking g++ (4:4.8.2-1ubuntu6) ...
Selecting previously unselected package liberror-perl.
Preparing to unpack .../liberror-perl_0.17-1.1_all.deb ...
Unpacking liberror-perl (0.17-1.1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a1.9.1-1ubuntu0.3_all.deb ...
Unpacking git-man (1:1.9.1-1ubuntu0.3) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a1.9.1-1ubuntu0.3_amd64.deb ...
Unpacking git (1:1.9.1-1ubuntu0.3) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.5-5ubuntu3_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.5-5ubuntu3) ...
Selecting previously unselected package make.
Preparing to unpack .../make_3.81-8.2ubuntu3_amd64.deb ...
Unpacking make (3.81-8.2ubuntu3) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../manpages-dev_3.54-1ubuntu1_all.deb ...
Unpacking manpages-dev (3.54-1ubuntu1) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../python2.7-dev_2.7.6-8ubuntu0.2_amd64.deb ...
Unpacking python2.7-dev (2.7.6-8ubuntu0.2) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../python-dev_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python-dev (2.7.5-5ubuntu3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up libexpat1:amd64 (2.1.0-4ubuntu1.3) ...
Setting up liblzo2-2:amd64 (2.06-1.2ubuntu1.1) ...
Setting up libnettle4:amd64 (2.7.1-1ubuntu0.1) ...
Setting up libarchive13:amd64 (3.1.2-7ubuntu2.2) ...
Setting up libasan0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libatomic1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libgmp10:amd64 (2:5.1.3+dfsg-1ubuntu1) ...
Setting up libisl10:amd64 (0.12.2-1) ...
Setting up libcloog-isl4:amd64 (0.18.2-1) ...
Setting up libgomp1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libitm1:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libmpfr4:amd64 (3.1.2-1) ...
Setting up libc-dev-bin (2.19-0ubuntu6.9) ...
Setting up linux-libc-dev:amd64 (3.13.0-88.135) ...
Setting up libc6-dev:amd64 (2.19-0ubuntu6.9) ...
Setting up libexpat1-dev:amd64 (2.1.0-4ubuntu1.3) ...
Setting up libpython2.7-dev:amd64 (2.7.6-8ubuntu0.2) ...
Setting up libquadmath0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libtsan0:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up libmpc3:amd64 (1.0.1-1ubuntu1) ...
Setting up binutils (2.24-5ubuntu14.1) ...
Setting up cmake-data (2.8.12.2-0ubuntu3) ...
Setting up cmake (2.8.12.2-0ubuntu3) ...
Setting up cpp-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up cpp (4:4.8.2-1ubuntu6) ...
Setting up libgcc-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up gcc-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up gcc (4:4.8.2-1ubuntu6) ...
Setting up libstdc++-4.8-dev:amd64 (4.8.4-2ubuntu1~14.04.3) ...
Setting up g++-4.8 (4.8.4-2ubuntu1~14.04.3) ...
Setting up g++ (4:4.8.2-1ubuntu6) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up liberror-perl (0.17-1.1) ...
Setting up git-man (1:1.9.1-1ubuntu0.3) ...
Setting up git (1:1.9.1-1ubuntu0.3) ...
Setting up libpython-dev:amd64 (2.7.5-5ubuntu3) ...
Setting up make (3.81-8.2ubuntu3) ...
Setting up manpages-dev (3.54-1ubuntu1) ...
Setting up python2.7-dev (2.7.6-8ubuntu0.2) ...
Setting up python-dev (2.7.5-5ubuntu3) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
ubuntu@ip-172-31-58-164:~$ git clone https://github.com/numenta/nupic.core.git
Cloning into 'nupic.core'...
remote: Counting objects: 27667, done.
remote: Compressing objects: 100% (42/42), done.
Receiving objects: 100% (27667/27667), 181.46 MiB | 17.85 MiB/s, done.
remote: Total 27667 (delta 20), reused 0 (delta 0), pack-reused 27624
Resolving deltas: 100% (14361/14361), done.
Checking connectivity... done.
ubuntu@ip-172-31-58-164:~$ git clone https://github.com/numenta/nupic.git
Cloning into 'nupic'...
remote: Counting objects: 65779, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 65779 (delta 13), reused 0 (delta 0), pack-reused 65744
Receiving objects: 100% (65779/65779), 136.80 MiB | 17.16 MiB/s, done.
Resolving deltas: 100% (39839/39839), done.
Checking connectivity... done.
ubuntu@ip-172-31-58-164:~$ export NUPIC=$HOME/nupic
ubuntu@ip-172-31-58-164:~$ export NUPIC_CORE=$HOME/nupic.core
ubuntu@ip-172-31-58-164:~$ curl https://bootstrap.pypa.io/get-pip.py | sudo python
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1488k 100 1488k 0 0 7965k 0 --:--:-- --:--:-- --:--:-- 8005k
The directory '/home/ubuntu/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/ubuntu/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pip
/tmp/tmplASzPz/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
/tmp/tmplASzPz/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Downloading pip-8.1.2-py2.py3-none-any.whl (1.2MB)
100% |████████████████████████████████| 1.2MB 1.1MB/s
Collecting setuptools
Downloading setuptools-23.1.0-py2.py3-none-any.whl (435kB)
100% |████████████████████████████████| 440kB 2.8MB/s
Collecting wheel
Downloading wheel-0.29.0-py2.py3-none-any.whl (66kB)
100% |████████████████████████████████| 71kB 9.5MB/s
Installing collected packages: pip, setuptools, wheel
Successfully installed pip-8.1.2 setuptools-23.1.0 wheel-0.29.0
/tmp/tmplASzPz/pip.zip/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
ubuntu@ip-172-31-58-164:~$ cd $NUPIC_CORE
ubuntu@ip-172-31-58-164:~/nupic.core$ pip install -r bindings/py/requirements.txt --user
Collecting pytest==2.5.1 (from -r bindings/py/requirements.txt (line 2))
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading pytest-2.5.1.tar.gz (577kB)
100% |████████████████████████████████| 583kB 2.1MB/s
Collecting pytest-cov==1.6 (from -r bindings/py/requirements.txt (line 3))
Downloading pytest-cov-1.6.tar.gz
Collecting pytest-xdist==1.8 (from -r bindings/py/requirements.txt (line 4))
Downloading pytest-xdist-1.8.zip
Collecting numpy==1.9.2 (from -r bindings/py/requirements.txt (line 5))
Downloading numpy-1.9.2-cp27-cp27mu-manylinux1_x86_64.whl (14.7MB)
100% |████████████████████████████████| 14.7MB 85kB/s
Collecting py>=1.4.19 (from pytest==2.5.1->-r bindings/py/requirements.txt (line 2))
Downloading py-1.4.31-py2.py3-none-any.whl (81kB)
100% |████████████████████████████████| 92kB 9.0MB/s
Collecting cov-core>=1.6 (from pytest-cov==1.6->-r bindings/py/requirements.txt (line 3))
Downloading cov-core-1.15.0.tar.gz
Collecting execnet>=1.0.8 (from pytest-xdist==1.8->-r bindings/py/requirements.txt (line 4))
Downloading execnet-1.4.1-py2.py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 9.1MB/s
Collecting coverage>=3.6 (from cov-core>=1.6->pytest-cov==1.6->-r bindings/py/requirements.txt (line 3))
Downloading coverage-4.1.tar.gz (370kB)
100% |████████████████████████████████| 378kB 2.8MB/s
Collecting apipkg>=1.4 (from execnet>=1.0.8->pytest-xdist==1.8->-r bindings/py/requirements.txt (line 4))
Downloading apipkg-1.4-py2.py3-none-any.whl
Building wheels for collected packages: pytest, pytest-cov, pytest-xdist, cov-core, coverage
Running setup.py bdist_wheel for pytest ... done
Stored in directory: /home/ubuntu/.cache/pip/wheels/db/7b/b3/f09a3d728515ca0596ec34ca861b7173f4041bbdd727ae82e0
Running setup.py bdist_wheel for pytest-cov ... done
Stored in directory: /home/ubuntu/.cache/pip/wheels/ce/a2/86/d088622a6f80a62ba264541433d0ea947bcf22ebd5afd0a948
Running setup.py bdist_wheel for pytest-xdist ... done
Stored in directory: /home/ubuntu/.cache/pip/wheels/d3/57/59/04728767f6127f76e933943b54234204bea3ddcf7f0785b6de
Running setup.py bdist_wheel for cov-core ... done
Stored in directory: /home/ubuntu/.cache/pip/wheels/86/e1/c2/9ff8cfe9773ce07003f2c2be096e169af4614c2f634671d49b
Running setup.py bdist_wheel for coverage ... done
Stored in directory: /home/ubuntu/.cache/pip/wheels/1f/e3/62/698ea59b941f33c9c936c4fd12c27b94bc157fa071d00e5773
Successfully built pytest pytest-cov pytest-xdist cov-core coverage
Installing collected packages: py, pytest, coverage, cov-core, pytest-cov, apipkg, execnet, pytest-xdist, numpy
Successfully installed apipkg cov-core coverage execnet numpy py pytest pytest-cov pytest-xdist
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
ubuntu@ip-172-31-58-164:~/nupic.core$ pip install pycapnp --user
Collecting pycapnp
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading pycapnp-0.5.8.tar.gz (449kB)
100% |████████████████████████████████| 450kB 2.5MB/s
Building wheels for collected packages: pycapnp
Running setup.py bdist_wheel for pycapnp ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-C_Nb1R/pycapnp/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpdLfzdOpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/capnp
copying capnp/version.py -> build/lib.linux-x86_64-2.7/capnp
copying capnp/_gen.py -> build/lib.linux-x86_64-2.7/capnp
copying capnp/__init__.py -> build/lib.linux-x86_64-2.7/capnp
copying capnp/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp
copying capnp/c++.capnp -> build/lib.linux-x86_64-2.7/capnp
copying capnp/schema.capnp -> build/lib.linux-x86_64-2.7/capnp
creating build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/non_circular.pxd -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/helpers.pxd -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/serialize.h -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/checkCompiler.h -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/fixMaybe.h -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/asyncHelper.h -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/rpcHelper.h -> build/lib.linux-x86_64-2.7/capnp/helpers
copying capnp/helpers/capabilityHelper.h -> build/lib.linux-x86_64-2.7/capnp/helpers
creating build/lib.linux-x86_64-2.7/capnp/includes
copying capnp/includes/types.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
copying capnp/includes/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
copying capnp/includes/capnp_cpp.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
copying capnp/includes/schema_cpp.pxd -> build/lib.linux-x86_64-2.7/capnp/includes
creating build/lib.linux-x86_64-2.7/capnp/lib
copying capnp/lib/__init__.pxd -> build/lib.linux-x86_64-2.7/capnp/lib
copying capnp/lib/capnp.pxd -> build/lib.linux-x86_64-2.7/capnp/lib
copying capnp/lib/__init__.py -> build/lib.linux-x86_64-2.7/capnp/lib
copying capnp/lib/pickle_helper.py -> build/lib.linux-x86_64-2.7/capnp/lib
copying capnp/lib/capnp.pyx -> build/lib.linux-x86_64-2.7/capnp/lib
creating build/lib.linux-x86_64-2.7/capnp/templates
copying capnp/templates/setup.py.tmpl -> build/lib.linux-x86_64-2.7/capnp/templates
copying capnp/templates/module.pyx -> build/lib.linux-x86_64-2.7/capnp/templates
running build_ext
creating /tmp/tmpOJFI8Y/tmp
cc -c /tmp/timer_create8lhh29.c -o /tmp/tmpOJFI8Y/tmp/timer_create8lhh29.o
cc /tmp/tmpOJFI8Y/tmp/timer_create8lhh29.o -o /tmp/tmpOJFI8Y/a.out
/tmp/tmpOJFI8Y/tmp/timer_create8lhh29.o: In function `main':
timer_create8lhh29.c:(.text+0x15): undefined reference to `timer_create'
collect2: error: ld returned 1 exit status
creating tmp
creating tmp/tmpOJFI8Y
cc -c /tmp/tmpOJFI8Y/vers.cpp -o tmp/tmpOJFI8Y/vers.o --std=c++11
/tmp/tmpOJFI8Y/vers.cpp:4:26: fatal error: capnp/common.h: No such file or directory
#include "capnp/common.h"
^
compilation terminated.
*WARNING* no libcapnp detected. Will download and build it from source now. If you have C++ Cap'n Proto installed, it may be out of date or is not being detected. Downloading and building libcapnp may take a while.
fetching https://capnproto.org/capnproto-c++-0.5.2.tar.gz into /tmp/pip-build-C_Nb1R/pycapnp/bundled
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
make: *** [src/capnp/compiler/capnpc-c++.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [src/capnp/compiler/capnp.o] Error 1
make: *** [src/capnp/compiler/lexer.lo] Error 1
make: *** [src/capnp/compiler/parser.lo] Error 1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-C_Nb1R/pycapnp/setup.py", line 176, in <module>
'Topic :: Communications'],
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/local/lib/python2.7/dist-packages/wheel/bdist_wheel.py", line 179, in run
self.run_command('build')
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
self.run_command(cmd_name)
File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-build-C_Nb1R/pycapnp/setup.py", line 120, in run
build_libcapnp(bundle_dir, build_dir)
File "buildutils/build.py", line 30, in build_libcapnp
raise RuntimeError('Make failed')
RuntimeError: Make failed
----------------------------------------
Failed building wheel for pycapnp
Running setup.py clean for pycapnp
Failed to build pycapnp
Installing collected packages: pycapnp
Running setup.py install for pycapnp ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-C_Nb1R/pycapnp/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-0hmroc-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-C_Nb1R/pycapnp/setup.py", line 92, in <module>
from Cython.Distutils import build_ext as build_ext_c
ImportError: No module named Cython.Distutils
----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-C_Nb1R/pycapnp/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-0hmroc-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-C_Nb1R/pycapnp/
ubuntu@ip-172-31-58-164:~/nupic.core$
Copy link

ghost commented Jun 24, 2016

See line 468 ff: virtual memory exhausted: Cannot allocate memory

Seems your VM doesn't have enough memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment