►
From YouTube: Compiling NuPIC on Ubuntu 14 LTS
Description
A video guide to getting NuPIC compiled and installed on Ubuntu.
A
Olympic
this
is
Matt
Taylor.
This
tutorial
is
going
to
be
compiling
and
building
new
pic
on
a
blue
to
from
source
code
entirely,
as
opposed
to
the
previous
installation,
video,
which
was
just
installing
from
binary
file,
and
this
one
will
show
you
everything
that
you
need
to
compile
it
all
yourself.
So
that's
the
plan
I'm
going
to
start
out
by
going
to
our
get
up
page
and
we've
got
new
pic
here,
but
that's
not
all
that
we
need.
A
We
will
also
need
new,
pic
or
so
I'll
search
for
new
pic
or
get
up
to,
and
that's
actually
where
we
are
going
to
start
right.
Blue
there
we
go
start,
make
a
big
star
break
and
see
so.
The
first
thing
we
want
to
do
is
grab
the
source
code.
You
can
download
tarball
if
you
want,
which
may
be
the
easiest
way
to
go,
or
you
can
just
clone
and
get
I'm
going
to
clone
and
get
if
you're
going
to
develop
this
code
at
all.
A
A
This
is
our
source
control
management
system
at
any
point
where
I
run
a
command,
that's
going
to
take
a
while
I
will
just
speed
through
it
in
the
post,
editing
process.
So
you
don't
have
to
watch
me
staring
at
screen
so
now
up
front
and
also
I'm,
not
really
following
the
readme.
There
I
will
fall
apart
of
the
region,
but
in
some
cases
like
where
dependencies
are
involved,
like
these
I'm
just
going
to
skip
this
and
we're
going
to
run
into
the
errors
that
you
would
run
into,
can
you
forgot
to
install
the
dependency
yourself?
A
A
A
There
we
go.
We
have
a
cloned
now
we're
going
to
go
into
that
new,
pic
or
directory
new
pic
or
make
this
really
obscenely
big,
so
everyone
can
see
it
and
here's
all
the
source
code.
All
the
sea
is
in
SRC
and
they
read
the
instructions
on
compiling
are
in
the
reading
I'm
going
to
be
reading
them
off
the
screen
here.
A
A
New
pic
bindings
is
a
python
application
that
is
a
swig
binding
from
all
from
the
C++
interface,
making
it
available
in
Python.
That's
sort
of
a
different,
build
step.
This
pip
install
is
something
that
needs
to
be
installed
before
you
build
the
source.
It
installs
all
of
the
Python
modules
necessary
for
the
project
to
run
the
Dybbuk
bindings,
specifically,
so
we'll
try
and
run
that
first,
so
I'm
pasting
that
command
pip
install
dash
are.
A
A
You
can
try
your
luck
at
updating
it.
If
you
wish
so
now
we're
going
to
compile
some
seed,
so
here's
the
steps
we
need
to
take
next.
First
of
all,
you
might
notice
that
this
script
expects
us
to
have
an
environment
variable
computer
core
set.
So
let's
do
that,
I'm
going
to
edit
my
bash
RC
and
add
an
export
statement
at
the
bottom
I'm,
just
at
a
section
here
called
my
stuff
export
new
pic
or
equals
home,
my
home
directory,
/
4.
A
Ok,
let
the
source
nap
or
the
shell
to
pick
it
up
and
I
should
be
able
to
see
the
new
pic
core
and
be
in
the
same
directory.
Im
then
so
so
the
first
thing
we're
going
to
do
is
create
a
build
scripts
directory
and
then
we're
going
to
go
into
the
build
scripts
directory
and
then
we're
going
to
make
a
policy
McMahon.
Ok,
so
let's
make
build
/
scripts,
let's
go
in
to
build
/
scripts
and,
let's
run
see
me
hey,
but
I
don't
have
seen
by
Iran.
A
A
Actually
didn't
take
very
long
e,
so
again
we're
in
the
build
scripts
directory,
we're
going
to
run
a
see
me
a
command
and
we
need
to
point
to
the
source
directory
which
is
in
our
near
the
corridor.
/
SRC
this
source
directory
has
AC
make
lists
txt
file
in
it.
That
is
all
of
the
seeming
constructions.
You
have
to
worry
about
that.
That
just
is
where
it
needs
to
be
and
as
well.
A
The
source
code
is
and
we're
going
to
pass
this
loan
option
into
it,
which
I'm
just
going
to
copy
DC,
make
install
prefix
dash.
Excuse
me
equals
dot,
dot,
slash
police,
so
the
sea
make
install
prefix
is
telling
see,
make
where
to
install
we're
going
to
put
it
into
a
folder
called
release.
That's
one
level
up
from
this
one.
So
it's
going
to
be
a
new
pic
or
build
release,
and
what's
emic
does
at
this
point?
Is
it
sets
up
to
make
sets
up
to
make
okay?
A
So
we
have
problem,
see
what
it
was:
no
module
named
numpy.
Oh,
you
know
what
we
never
did.
I
think
I
installed
a
bit,
not
yeah,
so
so
I
never
did
run
this
pip
install
command
here
I
uninstalled
pip
and
then
moved
on
to
the
next
step.
So
what
I
really
need
to
do?
That's
why
we
got
that
error
that
number
was
installed
is
because
we
need
to
run
this
pic
command
but
I'm
the
wrong
directory.
Now
to
do
it.
I
need
to
go
down.
A
It's
neat,
the
core
right
so
I'm
in
New
Cornell,
and
now
I'm
going
to
run
this
pip
in
stock
man
that
I
forgot
to
do
earlier,
and
this
is
going
to
in
so
all
of
the
python
dependencies
that
are
required.
Oh
no,
we
got
an
error,
couldn't
create
something
because
permission
was
tonight:
that's
an
easy
fix
when
you
run
a
pip
command
like
this.
It
assumes
that
you
want
to
install
a
system
level
and
we
don't.
We
want
to
install
the
user
level.
A
So
what
I'm
doing
is
adding
this
flag
that
says
dash
best
user,
so
it
will
install
into
a
local
location
and
you
won't
run
into
any
permissions
issues.
So
now
it's
getting
numpy
and
it's
going
to
be
still
having
a
problem,
because
we
don't
have
python
headers,
so
we
need
to
install
python
def
dev.
So
this
is
also
very
easy.
Sudo
apt-get
install
python
dash
dev.
If
I
had
bothered
to
follow
the
reading,
like
I
said,
I
wasn't
I
would
know
that
I
need
to
Saul.
A
A
Okay,
so
we've
installed
Python
Deb
now
and
now
we're
going
to
try
and
run
this
pip
install
command
to
get
or
Python
modules,
including
them
be
installed.
So
it's
going
on
getting
them
begin,
it's
compiling
it
locally,
and
this
is
going
to
take
a
while.
So
go
get
yourself
cup
tea
or
something-
and
hopefully
you've
got
your
fresh
tea
with
you
now
and
we
can
continue
onward
after
we've
installed
our
requirements.
A
Let's
see
where
was
I
I
dunn's
to
make
right,
and
I
run
the
sea
McMahon
I
think
that
was
the
next
thing
that
I
needed
to
do,
because
it
failed
because
it
needed
an
MP
installed.
So
we're
going
to
go
back
into
our
build
scripts
directory
and
run
this
you
may
command
again.
Oh,
we
have
another
problem,
cap
and
P.
If
you
ever
see
this
kapiti
stuff,
that
is
Captain
proto
another
one
of
the
dependencies
that
was
explicitly
declared
up
here
that
we
needed.
A
So
let's
open
that
in
a
new
tab
and
take
a
quick
look,
kappa
proto
is
a
serialization
protocol.
We're
going
to
install
it
it's
fairly
easy
to
install
just
takes
a
little
while
to
compile
typically
in
UNIX
I've
had
a
lot
of
success.
Just
copying
this
and
pasting
it
into
my
shell.
So
wherever
I
want
it
to
get
installed,
let's
see
I'm
going
to
go.
It's
my
home
directory
make
a
directory
called
dev,
which
is
typically
what
I
do
and
I'm
going
to
put
it
in
that
directory
and
boom.
A
A
So
now
I
need
to
go
back
to
new
pic
core,
build
scripts
and
run
that
see,
make
command
again
for
the
third
time
see
what
happens.
Checking
for
and
it
worked
all
right.
So
we
are
finally
all
ready
to
go
so
the
sea
mcmahon
doesn't
take
a
long
time
to
run.
It
basically
just
generates
all
the
big
files
and
stuff
that
we
need.
Now.
All
we
need
to
do
is
run
make
so
we're
going
to
run
make
and
then
we're
going
to
run,
make
install
pretty
much
the
j-3
or
the
day.
A
Here
we
go,
looks
like
it
is
made.
Now
we
want
to
run
make
install
this
is
going
to
install
into
that
release
directory
which
you
should
be
able
to
see
and
all
of
the
pads
that
are
running
across
the
screen.
Here,
it's
going
into
new
decor
build
release.
That's
where
new
core
the
c++
project
has
just
a
bit
installed.
Ok,
so
the
sea
project
is
now
installed.
A
Now
we
can
run
the
tests.
Let's
do
that
real,
quick
to
make
sure
everything
looks
good
and
to
make
tests
cpp
region,
which
would
go
really
fast
I'll
test
pass.
The
other
one
is
make
tests
unit.
These
are
SI
unit
tests
takes
a
couple
more
seconds,
but
I'll
test
pass
very
good
back
to
our
instructions.
A
I
am
in
the
new
pic
or
directory.
Here
there
is
a
setup
pie
here
if
you're
familiar
Python
stuff,
so
we're
going
to
run
Python
set
up
that
pie
install
and
we
need
to
pass
it's
the
location
of
the
root
of
the
installation
we
just
did
so
that's
going
to
be
new
pics
core
dürer
equals
and
I'm
going
to
send
in
the
environment
variable
for
the
decor
and
it's
a
build
/
release.
A
That's
where
we
just
installed
that
see
project
too,
and
in
order
to
avoid
any
permissions
issues,
I'm
going
to
add
the
dash
dash
user
flag
to
the
end,
and
this
will
install
the
new
pic
bindings
python
module
in
my
python
environment
and
this
bindings
is
the
Python
binding.
So
we
can
call
into
that
sea
program
that
we
just
installed.
A
Okay,
if
you
see
something
like
this
at
the
end,
that
means
everything
went
well.
New
pic
bindings
has
now
been
installed
and
that's
a
good
thing.
We
don't
need
to
worry
about
anything
else.
At
this
point
we
have
the
C
application
installed,
we've
got
cat
be
installed,
we've
got
new
big
bindings
installed.
The
next
step
is
to
move
on
to
the
new
big
project,
which
is
a
Python
project
that
requires
nip
Accord,
be
installed
so
back
to
my
home
directory
and
I'm
going
to
get
clone.
A
The
new
pic
repository-
and
here
we
go
new
pic-
is
now
right.
Alongside
to
the
core
we're
going
to
go
into
new
pic
and
there's
all
of
our
source
code.
We've
got
a
setup
pie
here
as
well,
and
really
that's
all.
We
need
to
worry
about
running
at
this
point.
You
just
have
to
run
python
setup.
I
install
dash
dash
user,
that's
it
and
there
we
go
so
after
some
further
compilation
of
the
dependencies
of
new
pic,
which
some
of
them
include
further
see
extensions.
A
We
have
everything
installed,
a
quick
test
going
to
our
Python
interpreter
import,
new
pic
and
port.
You
click
bindings
and
there's
no
problems
with
that.
So
that's
good!
Now,
let's
run
a
quick
test.
Let's
run
the
tests,
we
have
tests
in
a
scripts
folder
here
before
we
can
run
the
tests.
I
need
to
make
sure
that
pie.
That
test
is
on
my
command
line,
and
it's
currently
not
I
do
have
it
installed.
All
I
need
is
to
find
the
binary
and
make
sure
it's
on
my
path.
A
So
I
know
that
if
I
go
into
my
home
directory,
so
where
I'm
at
there
is
a
dot
local
directory,
this
is
where
hip
will
install
all
of
the
Python
dependencies
that
we've
been
installing.
If
you
put
the
dash
dash
user
flag,
there's
a
bin
folder
in
here
for
executables
there's
where
pi
test
is
so
all
I
really
need
to
do,
is
take
this
path
and
add
it
to
my
path.
So
I'm
going
to
do
this
by
adding
my
bash
RC
once
again,
I'm
also
while
I'm
in
here
I
haven't
talked
about
this
yet.
A
I'll
see
so
now,
I
should
be
able
to
run
pi
dot,
test
yeah,
okay.
So
now,
if
I
test
on
my
path
back
to
new
pic,
make
sure
my
grandma
variable
works
and
does
so
now
I'm
going
to
run
the
tests
unit
test
and
send
the
scripts
directory.
There
is
already
a
script
in
here
called
run
new
pic
tests,
I'm
going
to
give
it
a
dash
you
or
unit
tests
and
we're
going
to
run.
The
tests
should
take
a
few
minutes,
but
you
should
only
get
tests
that
pass
or
are
skipped.
A
Okay,
good
news,
everybody
all
the
tests
passed,
except
for
those
that
were
skipped
and
there's
one
more
thing:
I
want
to
run.
I
always
run
this
just
to
make
sure
if
all
these
tests
pass,
you
can
rest
assured
that
they
picked
is
very
likely
pop
properly
installed,
but
there
I
always
like
to
go
into
the
examples
directory,
opf,
client,
hot,
damn
simple,
and
there
is
a
script
here,
pulled
hot
damn.
This
is
just
an
exercising
the
new
pic
system
through
the
OPF.
It
creates
a
model.
A
The
pass
was
about
to
data
through
it
and
it
dumps
the
mean
average
percent
error
over
time
over
on
the
screen.
So
as
long
as
this
is
what
you're
seeing
everything
is
fine,
so
tester
and
the
example
grant
example
ran
everything
else,
good,
so
I'm
going
to
jump
into
the
Python
interpreter
and
I
just
want
to
show
you
how
you
can
get
or
figure
out
what
version
of
new
pic
bindings
anupa
that
you
have.
Let's
start
with
importing
package
resources
and,
let's
see
I'll,
say
new
pic
equals
package.
A
Resources
are
going
to
start
with
bindings
new
pic
findings
equals
package
resources,
get
distribution,
new
pic
findings.
So
this
is
me
just
getting
some
information
about
new
findings.
So
now,
if
I
print,
for
example,
music
findings
that
project
name
new
pic
findings,
that
version
we
can
see
new
pic
bindings
021
is
installed.
A
Now
I'm
going
to
get
new
pic
in
same
way,
I'll
just
copy.
This
dick
and
print
new
pic
project,
name
new
pic
version
and
we
are
at
034
dot,
dev
0,
so
you're
only
going
to
see
this
dot
dab
thing
if
you're
building
source
often
tip
master.
If
you're
at
on
early
stag
or
you've
downloaded
the
code
from
a
release
page,
it
would
be
there
would
be
no
dev
at
the
end
of
it.
So
this
is
just
a
way
to
tell
what
versions
of
nougat
bindings
you
have
installed.
A
So,
let's
quit
out
of
there
and
we're
done.
We
have
new
pic
installed,
we've
gone
through
installing
new
pic
or
from
c
source
code
or
which
included
installing
captain
proto
from
c
source
code
and
then
installing
new,
the
bindings
as
a
Python
project,
and
then
installing
new
pic,
the
Python
only
project
which
depends
on
all
the
other
stuff,
so
I
hope
this
was
helpful
for
anyone
who's
watching
out
there
I'm
getting
new,
pic
running
and
building
on
a
boon
to
this
has
been
a
boon
to
14
LTS.