Installing matrix on raspbery 2

Hello

I have trouble installing the matrix.
After regiser an key

sudo apt-get install -y libzmq3-dev xc3sprog malos-eye matrix-creator-malos matrix-creator-openocd wiringpi matrix-creator-init cmake g++ git --force-yes;

I get this

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package xc3sprog
E: Unable to locate package malos-eye
E: Unable to locate package matrix-creator-malos
E: Unable to locate package matrix-creator-openocd
E: Unable to locate package matrix-creator-init

Hey @Greenfield!
Looks like you skipped an installation step. For those packages to be found you need to add the source to your /etc/apt/sources.list file, you can do so with the command
echo "deb http://packages.matrix.one/matrix-creator/ ./" | sudo tee --append /etc/apt/sources.list;

Make sure to follow the installation steps in https://matrix-io.github.io/matrix-documentation/#raspberry-pi-setup and let us know if this solves the issue for you

Hi Diego,

That part i skipt because it did not work.
Or is node.js not installed correct then?

Kind regards
Greenfield

Hi @Greenfield,

How are you going with the setup?
Are you still getting this?

About the NodeJS installation you can try following the steps here: Overview MATRIX

Node Installation Easy

# Install npm (doesn't really matter what version, apt-get node is v0.10...)
sudo apt-get install npm

# n is a node version manager
sudo npm install -g n

# node 6.5 is the latest target node version, also installs new npm
n 6.5

Hope this help, if not, let us know !

Yoel

I did install node 6.5.

now I get this when I start a script

pi@raspberrypi:~/matrix-os $ NODE_ENV=rc node index.js
Environment Selected: rc
Loading Core Matrix Files
Loading… device
Loading… event
Loading… service
module.js:583
return process.dlopen(module, path._makeLong(filename));
^

Error: Module version mismatch. Expected 48, got 46.
at Error (native)
at Object.Module._extensions…node (module.js:583:18)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/matrix-os/node_modules/grpc/src/node/src/grpc_extension.js:38:15)
at Module._compile (module.js:556:32)
at Object.Module._extensions…js (module.js:565:10)

Try removing node_modules, and re-running npm install. Let us know the results here. Once you do this, retry:

NODE_ENV=rc node index.js

How do I remover the modules?

afterdoin reinstall I get this

pi@raspberrypi:~/matrix-os $ NODE_ENV=rc node index.js
Environment Selected: rc
Loading Core Matrix Files
Loading… device
Loading… event
Loading… service
module.js:457
throw err;
^

Error: Cannot find module 'zmq’
at Function.Module._resolveFilename (module.js:455:15)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object. (/home/pi/matrix-os/lib/service/zeromq.js:5:11)
at Module._compile (module.js:556:32)
at Object.Module._extensions…js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)

1 Like

I Solverd problem by reinstallation.