@mwittig @Harry-van-der-Wolf Guys…I Give Up…
I made a new Install on a fresh SD-Card with the newest OSMC (2016-10-31).
I post my Approach:
sudo apt-get update
sudo apt-get dist-upgrade
wget https://nodejs.org/dist/v4.6.2/node-v4.6.2-linux-armv7l.tar.gz -P /tmp
cd /usr/local
sudo tar xzvf /tmp/node-v4.6.2-linux-armv7l.tar.gz --strip=1
sudo apt-get install build-essential git
sudo apt-get install npm
cd /home/pi
mkdir pimatic-app
npm install pimatic --prefix pimatic-app --production
cd pimatic-app
cp ./node_modules/pimatic/config_default.json ./config.json
Now Cofiguring the config.json file for my start (User,Password etc.pp), then
sudo node_modules/pimatic/pimatic.js
sudo node_modules/pimatic/pimatic.js start
sudo node_modules/pimatic/pimatic.js stop
cd ./node_modules/pimatic
sudo npm link
wget https://raw.githubusercontent.com/pimatic/pimatic/v0.9.x/install/pimatic-init-d
sudo cp pimatic-init-d /etc/init.d/pimatic
sudo chmod +x /etc/init.d/pimatic
sudo chown root:root /etc/init.d/pimatic
sudo update-rc.d pimatic defaults
sudo service pimatic start
sudo ls -l /home/osmc/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/bin/vhduino
grep version /home/osmc/pimatic-app/node_modules/pimatic-homeduino/node_modules/homeduino/package.json
Now installing BCM235:
mkdir bcm2835
cd bcm2835/
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz
tar xvfz bcm2835-1.50.tar.gz
cd bcm2835-1.50
./configure
make
sudo make check
sudo make install
when I make sudo ./node_modules/pimatic/ppm.js install pimatic-dht-sensors@0.9.2 --unsafe-perm
I get this again
osmc@DodOsmc:~$ sudo ./node_modules/pimatic/ppm.js install pimatic-dht-sensors@0.9.2 --unsafe-perm
sudo: ./node_modules/pimatic/ppm.js: command not found
osmc@DodOsmc:~$ cd pimatic-app
osmc@DodOsmc:~/pimatic-app$ sudo ./node_modules/pimatic/ppm.js install pimatic-dht-sensors@0.9.2 --unsafe-perm
\
> node-dht-sensor@0.0.31 preinstall /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
> ./check-lib.sh
Library bcm2835 found.
|
> node-dht-sensor@0.0.31 install /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
> node-gyp configure
> node-dht-sensor@0.0.31 postinstall /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
> node-gyp build
make: Entering directory '/home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build'
CXX(target) Release/obj.target/node_dht_sensor/node-dht-sensor.o
CXX(target) Release/obj.target/node_dht_sensor/dht-sensor.o
SOLINK_MODULE(target) Release/obj.target/node_dht_sensor.node
/usr/bin/ld: //usr/local/lib/libbcm2835.a(bcm2835.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
//usr/local/lib/libbcm2835.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
node_dht_sensor.target.mk:124: recipe for target 'Release/obj.target/node_dht_sensor.node' failed
make: *** [Release/obj.target/node_dht_sensor.node] Error 1
make: Leaving directory '/home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/osmc/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:12)
gyp ERR! System Linux 4.4.27-5-osmc
gyp ERR! command "/usr/local/bin/node" "/home/osmc/pimatic-app/node_modules/pimatic/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build"
gyp ERR! cwd /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
gyp ERR! node -v v4.6.2
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 4.4.27-5-osmc
npm ERR! argv "/usr/local/bin/node" "/home/osmc/pimatic-app/node_modules/pimatic/ppm.js" "install" "pimatic-dht-sensors@0.9.2" "--unsafe-perm"
npm ERR! node v4.6.2
npm ERR! npm v2.15.11
npm ERR! code ELIFECYCLE
npm ERR! node-dht-sensor@0.0.31 postinstall: `node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-dht-sensor@0.0.31 postinstall script 'node-gyp build'.
npm ERR! This is most likely a problem with the node-dht-sensor package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs node-dht-sensor
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls node-dht-sensor
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/osmc/pimatic-app/npm-debug.log
osmc@DodOsmc:~/pimatic-app$
I don’t know what to do
Greets Dodo