Works for me. Tested on Raspi Pi B+ with OSMC Release 10.2016
Here is how I have installed the library bcm2835:
osmc@osmc:~$ mkdir bcm2835
osmc@osmc:~$ cd bcm2835/
osmc@osmc:~/bcm2835$ wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.ta r.gz
converted 'http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz' (ANSI_X3. 4-1968) -> 'http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz' (UTF-8)
--2016-11-23 00:16:30-- http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar .gz
Resolving www.airspayce.com (www.airspayce.com)... 192.185.48.187
Connecting to www.airspayce.com (www.airspayce.com)|192.185.48.187|:80... connec ted.
HTTP request sent, awaiting response... 200 OK
Length: 252178 (246K) [application/x-gzip]
Saving to: 'bcm2835-1.50.tar.gz'
bcm2835-1.50.tar.gz 100%[=====================>] 246.27K 269KB/s in 0.9s
2016-11-23 00:16:32 (269 KB/s) - 'bcm2835-1.50.tar.gz' saved [252178/252178]
osmc@osmc:~/bcm2835$ tar xvfz bcm2835-1.50.tar.gz
bcm2835-1.50/
bcm2835-1.50/config.sub
bcm2835-1.50/ChangeLog
bcm2835-1.50/doc/
bcm2835-1.50/doc/Makefile.am
bcm2835-1.50/doc/Makefile.in
bcm2835-1.50/doc/Doxyfile.in
bcm2835-1.50/aclocal.m4
bcm2835-1.50/configure.ac
bcm2835-1.50/README
bcm2835-1.50/src/
bcm2835-1.50/src/bcm2835.h
bcm2835-1.50/src/Makefile.am
bcm2835-1.50/src/bcm2835.c
bcm2835-1.50/src/test.c
bcm2835-1.50/src/Makefile.in
bcm2835-1.50/INSTALL
bcm2835-1.50/depcomp
bcm2835-1.50/config.h.in
bcm2835-1.50/config.guess
bcm2835-1.50/NEWS
bcm2835-1.50/COPYING
bcm2835-1.50/Makefile.am
bcm2835-1.50/ltmain.sh
bcm2835-1.50/configure
bcm2835-1.50/missing
bcm2835-1.50/install-sh
bcm2835-1.50/Makefile.in
bcm2835-1.50/AUTHORS
bcm2835-1.50/examples/
bcm2835-1.50/examples/blink/
bcm2835-1.50/examples/blink/blink.c
bcm2835-1.50/examples/i2c/
bcm2835-1.50/examples/i2c/i2c.c
bcm2835-1.50/examples/input/
bcm2835-1.50/examples/input/input.c
bcm2835-1.50/examples/gpio/
bcm2835-1.50/examples/gpio/gpio.c
bcm2835-1.50/examples/spin/
bcm2835-1.50/examples/spin/spin.c
bcm2835-1.50/examples/event/
bcm2835-1.50/examples/event/event.c
bcm2835-1.50/examples/spi/
bcm2835-1.50/examples/spi/spi.c
bcm2835-1.50/examples/pwm/
bcm2835-1.50/examples/pwm/pwm.c
bcm2835-1.50/test-driver
osmc@osmc:~/bcm2835$ cd bcm2835-1.50
bcm2835-1.50/ bcm2835-1.50.tar.gz
osmc@osmc:~/bcm2835$ cd bcm2835-1.50
bcm2835-1.50/ bcm2835-1.50.tar.gz
osmc@osmc:~/bcm2835$ cd bcm2835-1.50
osmc@osmc:~/bcm2835/bcm2835-1.50$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/osmc/bcm2835/bcm2835-1.50/missing: Unknown `--is-lightweight' option
Try `/home/osmc/bcm2835/bcm2835-1.50/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for clock_gettime in -lrt... yes
checking for doxygen... no
configure: WARNING: Doxygen not found - continuing without Doxygen support
checking for ranlib... ranlib
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating doc/Makefile
config.status: creating config.h
config.status: executing depfiles commands
osmc@osmc:~/bcm2835/bcm2835-1.50$ make
make all-recursive
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50'
Making all in src
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT bcm2835.o -MD -MP -MF .deps/bcm2835. Tpo -c -o bcm2835.o bcm2835.c
mv -f .deps/bcm2835.Tpo .deps/bcm2835.Po
rm -f libbcm2835.a
ar cru libbcm2835.a bcm2835.o
ranlib libbcm2835.a
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
Making all in doc
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50'
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50'
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50'
osmc@osmc:~/bcm2835/bcm2835-1.50$ sudo make check
Making check in src
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make test
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT test.o -MD -MP -MF .deps/test.Tpo -c -o test.o test.c
mv -f .deps/test.Tpo .deps/test.Po
gcc -g -O2 -o test test.o ./libbcm2835.a -lrt
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make check-TESTS
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make[3]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
PASS: test
make[4]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
============================================================================
Testsuite summary for bcm2835 1.50
============================================================================
# TOTAL: 1
# PASS: 1
# SKIP: 0
# XFAIL: 0
# FAIL: 0
# XPASS: 0
# ERROR: 0
============================================================================
make[3]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
Making check in doc
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50'
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50'
osmc@osmc:~/bcm2835/bcm2835-1.50$ sudo make install
Making install in src
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/src'
/bin/mkdir -p '/usr/local/lib'
/usr/bin/install -c -m 644 libbcm2835.a '/usr/local/lib'
( cd '/usr/local/lib' && ranlib libbcm2835.a )
/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 bcm2835.h '/usr/local/include'
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/src'
Making install in doc
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50/doc'
make[1]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50'
make[2]: Entering directory '/home/osmc/bcm2835/bcm2835-1.50'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50'
make[1]: Leaving directory '/home/osmc/bcm2835/bcm2835-1.50'
Then, I have installed pimatic-dht-sensors using the pimatic frontend:
06:05:38.412 [pimatic] info: Installing: "pimatic-dht-sensors@0.9.2" from npm-registry.
06:05:54.496 [pimatic, ppm] info: > node-dht-sensor@0.0.31 preinstall /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
06:05:54.518 [pimatic, ppm] info: > ./check-lib.sh
06:05:55.206 [pimatic, ppm] info: Library bcm2835 found.
06:05:57.644 [pimatic, ppm] info: > node-dht-sensor@0.0.31 install /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
06:05:57.666 [pimatic, ppm] info: > node-gyp configure
06:06:09.454 [pimatic, ppm] info: > node-dht-sensor@0.0.31 postinstall /home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor
06:06:09.477 [pimatic, ppm] info: > node-gyp build
06:06:12.619 [pimatic, ppm] info: make: Entering directory '/home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build'
06:06:12.659 [pimatic, ppm] info: CXX(target) Release/obj.target/node_dht_sensor/node-dht-sensor.o
06:06:33.360 [pimatic, ppm] info: CXX(target) Release/obj.target/node_dht_sensor/dht-sensor.o
06:06:35.183 [pimatic, ppm] info: SOLINK_MODULE(target) Release/obj.target/node_dht_sensor.node
06:06:36.024 [pimatic, ppm] info: COPY Release/node_dht_sensor.node
06:06:36.123 [pimatic, ppm] info: make: Leaving directory '/home/osmc/pimatic-app/node_modules/pimatic-dht-sensors/node_modules/node-dht-sensor/build'
06:07:51.108 [pimatic, ppm] info: pimatic-dht-sensors@0.9.2 node_modules/pimatic-dht-sensors
06:07:51.141 [pimatic, ppm] info: └── node-dht-sensor@0.0.31 (nan@2.4.0)
coffee-cache: compiling coffee-script file "dht-sensors.coffee"...Done
06:29:12.439 [pimatic-cron] info: the time is: Wed Nov 23 2016 06:29:12 GMT+0000 (UTC)
coffee-cache: compiling coffee-script file "device-config-schema.coffee"...Done
06:29:17.127 [pimatic-mobile-frontend] info: packing static assets
06:29:18.615 [pimatic-mobile-frontend] info: packing static assets finished
06:29:18.649 [pimatic-mobile-frontend] info: rendering html
06:30:03.393 [pimatic-mobile-frontend] info: rendering html finished
06:30:03.578 [pimatic] info: Listening for HTTP-request on port 80...
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law