►
From YouTube: Compiling NuPIC on Ubuntu 14 LTS (updated)
Description
A video guide to getting NuPIC compiled and installed on Ubuntu. Updated for latest NuPIC source code as of Feb 2016.
A
Hello,
a
big:
this
is
matt
taylor,
I'm
going
to
be
walking
you
through
compiling
nuclear
core
and
new
pic
on
the
boon
to
14.
This
is
an
updated
video.
There
was
a
previous
video
on
this,
but
it
has
been
outdated.
I,
don't
believe
it
works
exactly
anymore,
because
the
nucleic
anupa
core
code
bases
have
changed
a
bit.
The
good
news
is,
it's
actually
simpler
to
install
new
pic
now,
but
the
old
instructions
might
not
work
so
without
further
ado.
Let's
just
jump
right
in
and
I'll
show
you
how
to
do
it.
A
What
I've
got
here
is
a
fresh
ubuntu,
14
LTS,
as
you
can
see,
I
have
done
absolutely
nothing
aside
from
installed.
The
operating
system
and
I
opened
up.
Firefox
and
I
opened
up
a
terminal,
and
I
typed
history,
that's
it.
So
let
me
show
you
how
to
get
to
the
installation
instructions.
First
of
all,
we
will
go
to
our
wiki.
This
is
from
github
com,
/
noventa
/
new
pic,
which
is
our
main
code
base,
I'm
going
to
click
on
the
wiki
link.
Here
there
is
a
section
on
the
wiki
called
installing
and
building.
A
That's
where
you
want
to
go,
and
I'm
going
to
be
following
a
guide
that
I
put
down
here
under
your
platform:
specific
build
instructions
and
there's
one
for
compiling
new
pic
on
ubuntu
14.
It's
exactly
what
we're
going
to
do
so
this
document
contains
everything
that
I'm
going
to
do
for
you
right
now.
You
shouldn't
even
need
to
watch
this
video.
You
can
just
step
through
these
instructions,
but
for
those
of
you
who
want
to
see
it
in
action,
this
is
what
it
is.
A
A
You
need
to
have
pseudo
to
do
this
because
there's
a
couple
of
pseudo
commands,
but
that's
the
quick,
install
I'm
going
to
walk
through
each
one
of
these
individual
steps
and
pausing
between
between
each
to
give
a
short
explanation
of
what's
actually
happening
just
so
you
know
exactly
what's
necessary
to
install
a
new
pic
on
your
a
boon
to
14
system.
So,
first
we
are
going
to
update
apt-get
and
this
is
most
likely
going
to
take
a
while.
A
A
So
that
didn't
take
as
long
as
I
thought
is
going
to,
but
this
one
might
take
a
little
while
this
next
command
is
going
to
install
get
the
g,
+
+
compiler
latest
version,
I
believe,
see,
make
and
python
dead.
Those
are
the
python
development
headers
that
you'll
need
to
compile
any
python
see
project.
So
so
that's
what
we're
going
to
be
doing
now
and
this
will
probably
take
a
while
again
here
we
go.
A
And
there
we
go,
we've
got
now
get
g,
+,
+
c,
make
python
develop
and
headers.
Now
I'm
going
to
clone
both
new
pic
or
and
new
pic
these
I'm
in
my
home
directory
right
now
and
so
they're
just
going
to
get
checked
out
right
into
my
home
directory.
So
I'm
going
to
do
that
now
need
the
core
and
new
pic
depending
on
your
connection,
speed.
This
may
take
a
little
while
or
longer,
while
so
I'll,
probably
do
a
quick
pause
and
come
back
when
it's
done.
A
Okay,
we've
got
both
repositories
check
out
now,
so
you
can
see
new
pic.
Is
here
a
pic
or
is
here
and
both
of
them
full
of
us
all
right?
So
now
we
need
to
create
a
couple
of
environment
variables
to
point
to
those
check
out
directories.
We
need
those
specifically
for
running
tests.
If
you're
going
to
compile
everything
locally,
I
think
you
should
probably
run
tests
to
make
sure
that
everything
got
stalled
properly.
A
If
you're
familiar
with
linux,
you'll
probably
want
to
put
these
two
lines
in
your
batch
RC
or
bash
profile,
or
something
like
this
as
instructed
here,
you
can
just
paste
them
in
the
command
line
and
they
will
be
exported
as
environment
variables
for
the
current
shell
session,
but
not
for
any
subsequent
shells.
You
might
open
so
I'm
going
to
do
it.
What
I
say
this
is
the
right
way
and
put
it
in
my
bash
RC
like
at
the
bottom
of
the
file
like.
So
I
can
remember
what
my
linux
paste
command
is
here.
A
So
now,
if
I
source
that
bash
RC,
I
can
say
CD
into
new
pic,
and
it
will
take
me
into
the
new
pic
directory
to
CD
into
new
pic
core
that
will
take
me
into
new
pic
or
all
right.
Let's
go
back
to
home,
so
we've
got
that
now
we
want
to
get
the
latest
pip.
Pip
is
a
python
package
manager
type
thing
so
we'll
do
that!
Well,
that's
running
in
the
background.
Explain
to
you
that
this
is
actually
going
and
getting
a
remote
python
program
from
the
internet
and
then
running
it
with
Sue.
A
Do
you
may
not
wish
to
do
this?
I've
done
it
a
bunch
of
times,
and
this
is
just
a
vm,
so
I'm
not
worried
about
it.
But
if
you
have
any
security
concerns
with
this,
you
should
take
a
look
at
this
script
and
make
sure
doesn't
do
anything
they
are
uncomfortable
with.
However,
I
suggest
you
do
not
install
pip
the
way
that
boon
to
suggests
you
install
it,
which
is
using
apt-get,
because
that
will
get
you
an
old
version
of
PIP,
that's
very
hard
to
upgrade
to
a
decent
version.
Okay.
A
Moving
on
now
that
we
have
the
latest
pip,
we
have
our
prerequisites
in
place.
We
are
going
to
go
into
the
new
decor
directory,
can
start
installing
a
new
pic
or
so
CD
into
new,
pic
or
and
then
we're
going
to
run
a
pip
install
that
gets
all
the
Python
modules
that
newport
core
needs
to
run
initially,
and
here
we
go.
This
is
going
to
take
a
little
while
because
of
numpy
numpy
is
a
Python
math
module
that
contains
both
see
and
for
tray
on
extensions,
so
it
takes
a
while
to
compile
on
your
system.
A
There
we
go,
numpy
is
now
installed
and
all
of
our
other
python
required
modules
are
installed
for
new
decor.
Now
we're
going
to
go
on
to
the
next
step,
which
is
to
manually,
install
the
python
module
called
PI,
kapp
&
P,
let's
go
ahead
and
do
that
pip
install
pack
up
and
P
dash
dash
user,
so
captain
proto
is
a
serialization
protocol
that
we're
putting
in
two
new
pic
to
use
to
serialize
models
and
pi.
Captain
p
is
the
python
bindings
for
that
c
library.
A
So
what
pi
kappa
p
installation
does?
Is
it's
going
to
download
captain
proto
and
install
it
as
a
CEO
application,
and
then
it's
going
to
install
itself
as
python
bindings
top
of
that,
so
this
is
going
to
take
a
few
minutes.
So
let's
give
it
a
boss
and
pi
Kappa
p
is
now
installed
so
that
went
well
next
step
is
to
actually
configure
and
generate
the
C++
build
files
I'm
going
to
run
this
whole
command
olive
once
and
I'll
explain
what
it
does
wow
it's
doing
it
right.
A
So
in
order
to
build
this
new
pic
or
as
a
C++
project,
reviewssee
make
and
make
so.
First,
we
build
make
a
directory
called
build,
/
scripts
go
into
that
directory,
and
then
we
execute
see
make
so
there's
a
bunch
of
variables
and
options
passed
into
this
won't
go
into
all
of
it,
but
it's
basically
going
to
do
an
installation
into
a
local
directory
specifically
in
to
build
/
release.
So
it's
not
installing
in
a
system
location.
A
So
now
that
we've
run
that
and
everything
looks
okay
at
this
point,
all
the
make
files
have
been
generated,
the
build
files
we
can
actually
run
a
build,
so
go
to
run
a
build.
You
run
make
and
you
can
give
it
this
dash
J
extension
or
option
to
tell
it
how
many
cores
you
want
to
use
as
you
are
building
so
I'll
tell
it,
for
course,
and
this
is
actually
going
to
compile
and
build
and
then
we
will
install
it
in
the
next
step.
A
So
at
this
point,
your
cpu
fan
should
be
on,
because
that
was
a
lot
of
hardcore.
Compilation
took
a
long
time
and
it
did
a
lot
of
stuff
there's
a
lot
of
things
in
the
log
output
there,
but
pretty
much.
If
you
end
without
an
error
at
the
end,
everything
should
be
okay,
so
that
makes
step
is
what
did
all
the
compilation?
A
A
So
if
we
go
down
into
the
release
directory
now
see
where
I'm
at
an
Inuvik
or
build
/
release-
and
we've
got
a
bunch
of
stuff
in
here-
we're
going
to
run
some
tests,
that's
the
next
step
and
we'll
just
go
into
that
bin
directory,
and
that's
where
our
binary
test
files
are
and
I'm
going
to
run
the
CPP
region.
Tests
first
and
you'll
see
a
couple
things.
It
says,
error
error.
Those
are
expected
errors.
As
long
as
the
end,
it
says
all
tests
passed,
you
should
be
just
fine,
so
I
wouldn't
don't
worry
about.
A
Unless
you
don't
see
that
and
then
the
next
one
unit
tests
gonna
run
unit
tests
and
should
say
at
the
end
everything
passed.
Everything
should
be
green.
So
that's
good.
We
have
who
picure
installed
as
AC
program
and
we've
run.
These
see
tests
now
we're
going
to
install
the
python
bindings
that
will
expose
the
c++
program
to
python
by
installing
it
as
a
python
module
called
new
pic
bindings.
So
we'll
go
back
into
the
new
pic
or
directory.
A
As
you
can
see,
and
then
I
will
run
python
setup
install
dash
dash
user.
So
if
you're
developing
this
is,
you
might
run
Python
setup
I
develop
dash
dash
user.
If
you
want
changes
in
the
Python
code
base
to
be
reflected,
although
you
probably
don't
need
to
do
that.
So
here
we
go
so
now.
Python
has
just
installed
new
pic
bindings
version,
0
for
1
dot,
dev
and
that's
what
we
wanted.
A
So
at
this
point
we
should
be
able
to
say
tip
freeze
which
gives
us
all
the
different
python
modules
and
let's
do
a
grip
or
a
new
pic,
and
we
should
see
one
called
new
pic
bindings,
041
def,
which
is
what
we
want
to
see
so
new
pic
or
is
installed
the
C++
program
and
the
python
module
that
provides
language
bindings
into
it.
Now
we're
going
to
go
to
the
new
pic
side,
so
I
can
just
CD
into
new
pic
environment
variable
which
takes
me
into
the
sibling
directory
of
new
pic
follow
the
source
code.
A
This
is
a
really
easy,
install
we're
just
going
to
run
python
setup,
install
dash
dash
user.
Now,
if
you
did
python
setup,
I
develop
def
gesture
user.
That
may
be
a
bit
more
useful
for
you
to
fear
if
you're
developing
on
the
python
code
base
in
the
new
pic
project,
because
then
any
reflections
excuse
me
any
changes
that
you
make
and
the
python
code
base
will
be
reflected
in
the
next
bill.
So
this
should
not
take
too
long
to
run
this
installation
script
as
soon
as
it's
done.
A
This
also
ends
up
installing
several
different
python
modules
that
the
new
pic
python
project
requires.
So
everything
should
be
set
up
now,
so
we're
going
to
run
tests
and
that
will
check
everything,
but
first
one
of
the
things
we
got
to
do
because
our
tests
require
that
a
binary,
executable
called
PI
detest
be
on
our
path,
but
we
don't
have
it
on
our
path.
A
Bhuntu
wants
us
to
install
through
apt-get,
don't
install
it
through
apt-get.
All
you
need
to
do
is
update
your
path
to
include
a
local
binary
directory,
as
we
were
doing
all
those
python
installations
with
the
dash
dash
user
option
that
installed
all
those
bite,
all
those
python
packages
outside
of
the
system
location.
So
it
doesn't,
you
don't
have
to
use
sudo
to
do
any
of
that
stuff
and
it
puts
it
into
a
directory.
A
hidden
directory
in
your
home
called
dot
local.
So
if
you
look
at
that
directory,
there
is
a
bin
directory
there.
A
A
So
now
we
will
source
that
and
I
should
be
able
to
run
a
test
and
now,
yes,
okay,
so
back
into
new
pic
now
I
can
simply
run
python,
and
then
this
is
the
script
that
runs
unit
tests
run
new
pic
test
runs
test.
The
dash
view
option
is
what
runs
the
unit
tests.
So,
let's
run
this.
This
might
take
a
few
minutes,
because
there's
several
hundred
tests
and
the
good
news
841
test
past
24
skipped.
You
should
have
no
failing
tests
here.
So
this
is
great.
New
pic
is
fully
installed.
A
You
should
be
able
to
run
all
of
our
sample
code
are
examples
on
our
github
and
you
are
good
to
go
with
new
pic
on
12
14,
thanks
for
watching.
If
this
video
was
helpful,
please,
like
this
video
and
subscribe
to
our
fees,
to
see
more
coastal
videos
on
new
pic
and
the
HTM
open
source
community.
Take
care.