In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the knowledge of "how to install cozy-light on dbcolinux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Install and start cozy-light
Cozy-light seems to have been unmaintained since 2016. Its latest version is 0.4.9. On the contrary, it is enough to maintain its APP. Installing cozy-light is divided into installing cozy-light and supporting APP support. Because these two parts are not developed synchronously, there are sometimes different version compilation requirements for the same things. For example, pouchdb-4.0.3.tgz will be installed once in both app and Coze departments, and leveldb will be used. One is 120th and the other is 114. if you want to find a js that is compatible with both, I choose 0.12.18 with npm2.15.11, otherwise the cozy-light will be full of traps. I will talk about why you chose it later. First of all, node0.12.18 installs https://nodejs.org/dist/latest-v0.12.x/, and then installs git. Since node0.12.18 belongs to the old version, we need to establish a shell wrapper to enable its harmony mode for / usr/bin/node, otherwise it will make an error. Rename node to create the following content file under nodejs,/usr/bin and add execution permission, and refer to nodejs:
#! / bin/shrdlkf () {[- L "$1"] & & (local lk= "$(readlink" $1 ")"; local d = "$(dirname" $1 ")"; cd "$d"; local l = "$(rdlkf" $lk ")"; ([["$l" = / *]] & & echo "$l" | | echo "$ddeband") | | echo "$1" } DIR= "$(dirname" $(rdlkf "$0")) "exec / usr/bin/env nodejs-- harmony" $@ "
Npm install cozy-light-g will automatically download 0.4.9 from github to / usr/lib/node_modules/cozy-light. I installed it on the Hong Kong mainframe, so the speed of the external network is fast. / cozy-light/node-modules has its referenced submodules, each submodules has its own subsubmodules,node modules is a tree structure, without such a reference, different parts of the same project refer to different versions of the same module will exist repeatedly. This is another reason why a project chooses a compatible node version as above. Do not specify that-g will be installed to PWD, node-gyp will be called to compile leveldb120 during compilation, and some warnning:gyp WARN EACCES user "root" does not have permission to access the dev dir "/ root/.node-gyp/0.12.28" will be produced, but it doesn't matter. When the installation ends correctly, it will output a module tree table of cozy-light, and directly start it to build the file to / usr/bin/cozy-light, cozy-light-p 80 start. Startup failed, and the following error persists after setting the harmony mode:
/ usr/lib/node_modules/cozy-light/node_modules/pouchdb/node_modules/request/node_modules/hawk/lib/server.js:506 host, ^ SyntaxError: Unexpected token
Visual observation is the request version problem, look at its installation directory, found that the installation is the latest version may need to be downgraded, we use custom location installation method: run npm install in the specific module tree level. Do not depend on the whole-g: open / usr/lib/node_modules/cozy-light/node_modules/pouchdb/package.json, change "request": "^ 2.61.0" to "request": "2.68.0", delete the request under pouchdb/node-modules, execute npm install under / usr/lib/node_modules/cozy-light/node_modules/pouchdb/, and execute cozy-light-p 80 start again successfully. If you start cozy-light again, there will be bug,cozy-light stop and then start will not work. You'd better restart it.
But the challenge is not here, the challenge and difficulty is to install app:
Install personal cloud distro
Cozy-light install-distro personal-cloud
Apps is all installed under. / root, and the data of / root/.cozy-light levelDB is all here. This time node-gyp is compiled by leveldb140. There are some errors. In the whole process, I have tried 4.x, no matching function for call to, and 5.0, and all have errors: nan_implementation_12_inl.h error: no matching function for call to 'v8::Signature::New, trace it. It's still a problem with the version: time@0.11.1' refers to nan 1.6.2, which only adapts to 0.12, which is why I chose 0.12. There will be other problems when installing other app or distros. App/distors installation is the same as cozy-light. Due to the above-mentioned reasons that different nodejs versions are used at different levels of the project, there is a problem with node-gyp linking the library to different node versions. The personal cloud distro passed all the way below 0.12.
There is also a warning: An uncaught exception has been thrown: {[Error: spawn ENOMEM] code: 'ENOMEM', errno:' ENOMEM', syscall: 'spawn'}. To open swap, see my previous "in tinycolinux xxx" article adding swap.
The above personal cloud distro only installs a few app, such as tasky,contacts,simple-daskboard,. Install files:cozy-light install cozy-labs/files, and set the password for it after starting cozy-light: cozy-light set-password. The following error occurs when starting and entering files app:
An error occurred while initializing notification module-- Error: connect ECONNREFUSED [Error: No instance domain set] Error: connect ECONNREFUSED, "how to install cozy-light on dbcolinux" ends here. Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.