To co skompilowałeś skopiuj do /usr/sbin
Wtedy uruchom sudo /usr/sbin/supla-dev -D
I obserwuj czy pojawiają się logi
SUPLA dev na RPI 0 W
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
pzygmunt wrote: Thu Feb 08, 2018 10:10 am To co skompilowałeś skopiuj do /usr/sbin
Wtedy uruchom sudo /usr/sbin/supla-dev -D
I obserwuj czy pojawiają się logi
Code: Select all
pi@raspberrypi:~/supla-core/supla-dev/Release $ sudo cp supla-dev /usr/sbin/
pi@raspberrypi:~/supla-core/supla-dev/Release $ cd
pi@raspberrypi:~ $ sudo /usr/sbin/supla-dev -D
sudo: /usr/sbin/supla-dev: command not found
pi@raspberrypi:~ $
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
Głupie pytanie, ale jakie hasło ma su nie podchodzi raspberry ani to które zmieniłem poprzez passwd?
EDIT Hasło najpierw trzeba ustawić
Code: Select all
root@raspberrypi:/home/pi# /usr/sbin/supla-dev -D
bash: /usr/sbin/supla-dev: Permission denied
root@raspberrypi:/home/pi# sudo /usr/sbin/supla-dev -D
sudo: /usr/sbin/supla-dev: command not found
root@raspberrypi:/home/pi#
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
Czy te wszystkie problemy mogą wynikać z braku uprawnień ?
Code: Select all
-rw-r--r-- 1 root root 113132 Feb 8 19:43 supla-dev
Code: Select all
pi@raspberrypi:/usr/sbin $ sudo chmod a+rwx supla-dev
pi@raspberrypi:/usr/sbin $ sudo /usr/sbin/supla-dev -D
/usr/sbin/supla-dev: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
pi@raspberrypi:/usr/sbin $ /usr/sbin/supla-dev -D
/usr/sbin/supla-dev: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
Code: Select all
pi@raspberrypi:/usr/lib/supla-server $ ls -la
total 2092
drwxr-xr-x 2 root root 4096 Feb 6 01:06 .
drwxr-xr-x 45 root root 4096 Feb 6 01:06 ..
-r-xr-xr-x 1 root root 1759648 Feb 6 01:06 libcrypto.so
-r-xr-xr-x 1 root root 370236 Feb 6 01:06 libssl.so
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
Powyższą komendę muszę wykonać będąc w konkretnym katalogu?pzygmunt wrote: Tue Feb 13, 2018 11:54 am Wystarczyło chmod +x
jeszcze musisz wyeksportować LD_LIBRARY_PATH jeżeli odpalasz wprost z shell-a
LD_LIBRARY_PATH=/usr/lib/supla-server
export LD_LIBRARY_PATH
Bo jeżeli nie to dalej stoje w miejscu
Code: Select all
pi@raspberrypi:~ $ LD_LIBRARY_PATH=/usr/lib/supla-server
pi@raspberrypi:~ $ export LD_LIBRARY_PATH
pi@raspberrypi:~ $ sudo /usr/sbin/supla-dev -d
/usr/sbin/supla-dev: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory-
pzygmunt
- Posts: 20302
- Joined: Tue Jan 19, 2016 9:26 am
- Location: Paczków
- Been thanked: 59 times
Tak nie pójdzie. export robisz jako user, a uruchamiasz jako root.
Tu masz skrypt tylko musisz do niego wstawić eksport w to miejsce
https://github.com/SUPLA/raspberry/blob ... la-dev#L25
Możesz też
su
i wtedy reszta
Tu masz skrypt tylko musisz do niego wstawić eksport w to miejsce
https://github.com/SUPLA/raspberry/blob ... la-dev#L25
Możesz też
su
i wtedy reszta
SUPLA.... Nareszcie w domu.
-
Sibikk
- Posts: 366
- Joined: Mon Nov 07, 2016 12:42 pm
- Location: Katowice
Ok , od początku.pzygmunt wrote: Tue Feb 13, 2018 3:50 pm Tak nie pójdzie. export robisz jako user, a uruchamiasz jako root.
Tu masz skrypt tylko musisz do niego wstawić eksport w to miejsce
https://github.com/SUPLA/raspberry/blob ... la-dev#L25
Możesz też
su
i wtedy reszta
Code: Select all
pi@raspberrypi:/usr/lib/supla-server $ ls
libcrypto.so libssl.so
Do skryptu
Code: Select all
etc/init.d/supla-dev
Code: Select all
LD_LIBRARY_PATH=/usr/lib/supla-server
export LD_LIBRARY_PATH Code: Select all
i@raspberrypi:/ $ sudo /usr/sbin/supla-dev start
/usr/sbin/supla-dev: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
