『瀚思彼岸』» 智能家居技术论坛

标题: 为什么没有一个人把sd卡直接img [打印本页]

作者: czweb    时间: 2017-12-5 16:07
标题: 为什么没有一个人把sd卡直接img
为什么没有一个人是把做好homekit系统后,直接把sd卡里的所有数据直接做个img镜像文件,别人下载镜像文件写入sd卡,一切配置都可以了,所有的安装插件都省了呢?

我现在按这2位的教程都没搞成,
https://bbs.hassbian.com/thread-441-1-1.html
https://bbs.hassbian.com/thread-473-1-1.html

作者: Jarvis    时间: 2017-12-5 16:13
是啊,对于某些人来说,确实有需要。
作者: czweb    时间: 2017-12-5 16:50
本帖最后由 czweb 于 2017-12-5 16:52 编辑

安装失败
sudo npm install -g --unsafe-perm homebridge


  1. pi@raspberrypi:~ $ sudo npm install -g --unsafe-perm homebridge
  2. /usr/bin/homebridge -> /usr/lib/node_modules/homebridge/bin/homebridge

  3. > [url=mailto:[email protected]][email protected][/url] install /usr/lib/node_modules/homebridge/node_modules/mdns
  4. > node-gyp rebuild

  5. make: Entering directory '/usr/lib/node_modules/homebridge/node_modules/mdns/build'
  6.   CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
  7. In file included from ../src/dns_sd.cpp:1:0:
  8. ../src/mdns.hpp:32:20: fatal error: dns_sd.h: No such file or directory
  9. #include <dns_sd.h>
  10.                     ^
  11. compilation terminated.
  12. dns_sd_bindings.target.mk:149: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed
  13. make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
  14. make: Leaving directory '/usr/lib/node_modules/homebridge/node_modules/mdns/build'
  15. gyp ERR! build error
  16. gyp ERR! stack Error: `make` failed with exit code: 2
  17. gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
  18. gyp ERR! stack     at emitTwo (events.js:106:13)
  19. gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
  20. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
  21. gyp ERR! System Linux 4.9.59-v7+
  22. gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  23. gyp ERR! cwd /usr/lib/node_modules/homebridge/node_modules/mdns
  24. gyp ERR! node -v v7.10.1
  25. gyp ERR! node-gyp -v v3.5.0
  26. gyp ERR! not ok
  27. /usr/lib
  28. └── (empty)

  29. npm ERR! Linux 4.9.59-v7+
  30. npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "--unsafe-perm" "homebridge"
  31. npm ERR! node v7.10.1
  32. npm ERR! npm  v4.2.0
  33. npm ERR! code ELIFECYCLE
  34. npm ERR! errno 1

  35. npm ERR! [url=mailto:[email protected]][email protected][/url] install: `node-gyp rebuild`
  36. npm ERR! Exit status 1
  37. npm ERR!
  38. npm ERR! Failed at the [url=mailto:[email protected]][email protected][/url] install script 'node-gyp rebuild'.
  39. npm ERR! Make sure you have the latest version of node.js and npm installed.
  40. npm ERR! If you do, this is most likely a problem with the mdns package,
  41. npm ERR! not with npm itself.
  42. npm ERR! Tell the author that this fails on your system:
  43. npm ERR!     node-gyp rebuild
  44. npm ERR! You can get information on how to open an issue for this project with:
  45. npm ERR!     npm bugs mdns
  46. npm ERR! Or if that isn't available, you can get their info via:
  47. npm ERR!     npm owner ls mdns
  48. npm ERR! There is likely additional logging output above.

  49. npm ERR! Please include the following file with any support request:
  50. npm ERR!     /root/.npm/_logs/2017-12-05T08_48_09_600Z-debug.log
  51. pi@raspberrypi:~ $
复制代码



作者: czweb    时间: 2017-12-5 16:54
本帖最后由 czweb 于 2017-12-5 16:56 编辑

安装失败,安装不带--unsafe-perm后缀参数的也不行
sudo npm install -g  homebridge
[attach]3883[/attach]
  1. pi@raspberrypi:~ $ sudo npm install -g homebridge
  2. /usr/bin/homebridge -> /usr/lib/node_modules/homebridge/bin/homebridge

  3. > [url=mailto:[email protected]][email protected][/url] install /usr/lib/node_modules/homebridge/node_modules/mdns
  4. > node-gyp rebuild

  5. gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/7.10.1"
  6. gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/homebridge/node_modules/mdns/.node-gyp"
  7. make: Entering directory '/usr/lib/node_modules/homebridge/node_modules/mdns/build'
  8.   CXX(target) Release/obj.target/dns_sd_bindings/src/dns_sd.o
  9. In file included from ../src/dns_sd.cpp:1:0:
  10. ../src/mdns.hpp:32:20: fatal error: dns_sd.h: No such file or directory
  11. #include <dns_sd.h>
  12.                     ^
  13. compilation terminated.
  14. dns_sd_bindings.target.mk:149: recipe for target 'Release/obj.target/dns_sd_bindings/src/dns_sd.o' failed
  15. make: *** [Release/obj.target/dns_sd_bindings/src/dns_sd.o] Error 1
  16. make: Leaving directory '/usr/lib/node_modules/homebridge/node_modules/mdns/build'
  17. gyp ERR! build error
  18. gyp ERR! stack Error: `make` failed with exit code: 2
  19. gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
  20. gyp ERR! stack     at emitTwo (events.js:106:13)
  21. gyp ERR! stack     at ChildProcess.emit (events.js:194:7)
  22. gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
  23. gyp ERR! System Linux 4.9.59-v7+
  24. gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
  25. gyp ERR! cwd /usr/lib/node_modules/homebridge/node_modules/mdns
  26. gyp ERR! node -v v7.10.1
  27. gyp ERR! node-gyp -v v3.5.0
  28. gyp ERR! not ok
  29. /usr/lib
  30. └── (empty)

  31. npm ERR! Linux 4.9.59-v7+
  32. npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "homebridge"
  33. npm ERR! node v7.10.1
  34. npm ERR! npm  v4.2.0
  35. npm ERR! code ELIFECYCLE
  36. npm ERR! errno 1

  37. npm ERR! [url=mailto:[email protected]][email protected][/url] install: `node-gyp rebuild`
  38. npm ERR! Exit status 1
  39. npm ERR!
  40. npm ERR! Failed at the [url=mailto:[email protected]][email protected][/url] install script 'node-gyp rebuild'.
  41. npm ERR! Make sure you have the latest version of node.js and npm installed.
  42. npm ERR! If you do, this is most likely a problem with the mdns package,
  43. npm ERR! not with npm itself.
  44. npm ERR! Tell the author that this fails on your system:
  45. npm ERR!     node-gyp rebuild
  46. npm ERR! You can get information on how to open an issue for this project with:
  47. npm ERR!     npm bugs mdns
  48. npm ERR! Or if that isn't available, you can get their info via:
  49. npm ERR!     npm owner ls mdns
  50. npm ERR! There is likely additional logging output above.

  51. npm ERR! Please include the following file with any support request:
  52. npm ERR!     /root/.npm/_logs/2017-12-05T08_53_15_067Z-debug.log
  53. pi@raspberrypi:~ $
复制代码


作者: shang    时间: 2017-12-9 14:23
好主意,回头我来上传一个纯净版的。。。
作者: noel    时间: 2017-12-14 20:27
善用搜索,有sd卡备份的,

比如:https://bbs.hassbian.com/thread-1786-1-1.html




欢迎光临 『瀚思彼岸』» 智能家居技术论坛 (https://bbs.hassbian.com/) Powered by Discuz! X3.5