In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Xiaobian to share with you how to install sandstorm davros on tinycolinux, I believe most people still do not know how to, so share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!
Compile and install nodejs and npm on tinycolinux
gcc481 on tinycolinux compiles 7.10.1, 8.0.0 and 8.0.0 at best, and errors related to ArrayVector(v8::internal::StringStream::FmtElm []) are prompted, the latest 894 requires gcc494,
Sandstorm itself uses nodejs8.9.3, officially used davros 0.21.7 spk nodejs640, so here we use version 640, first install git, then install py, download nodejs640 its source code,cd to it, execute:
./ configure --preifx=/usr/local/nodejs && sudo make install
cd to/usr/local/nodejs,export PATH=$PATH:/usr/local/nodejs/bin, execute nodejs and find that libstdc++ is needed. Change libstdc++.so.6.0.18(this is also a library required when compiling cmake, see previous articles) to/usr/lib, and then execute npm install -g git://xxx. It is found that git repos content in https cannot be downloaded when calling git. SSL routines: SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version Completed with errors
This is because recently 2018.2.1 github no longer uses low-level encryption methods, git relies on cur,curl command line depends on openssl library to use ssl and TLS. Currently, TLSv1.1 and TLSv1.2 are generally considered safe, and many https servers only support these two protocols, and no longer support TLSv1.0 and ssl. However, openssl only supports TLSv1.1 and TLSv1.2 since 1.0.1. Openssl-1.00.tcz+curl is currently installed on the system and is not supported. Check the installed ssl and curl, execute: curl -V(upper case) found openssl is 1.0.0k, curl is 7.30.0
I also don't want to go to other tinycolinux 5.x to find, compile it yourself. It seems that 5.x is 1.0.2, and sslv2v3 is removed. So compile and install it yourself.
I downloaded openssl 1.0.1src and curl-7.15.0.tar.gz, first install perl5,openssl compilation requires perl5,cd srcroot,./ config --prefix=/usr/local shared && sudo make install (note not./ configure) must add/usr/local, otherwise install it in/usr/local/ssl, add shared to avoid the following error:x86cpuid.s:(.text+0x2d 0): multiple definition of `OPENSSL_cleanse'../ libcrypto.a(mem_clr.o):mem_clr.c:(.text+0x0): first defined here
Next compile the new curl 7.30.0,./ configure --enable-shared --with-ssl=/usr/local
Check out the new openssl version
/sbin/ldconfig -v openssl version -a
Check to see if curl references the version 1.0.1 you just compiled and installed
curl -V(capital), found using openssl 1.0.1
git will now automatically use ssl3,npm install -g git://xxx or https://.
Prepare davros code and compile and run, failed
Now prepare davros, I downloaded https://github.com/mnutt/davros davros-ca480aea708d0e9ae4b63342a4583660609f331f 0.21.7 release, select all the contents of davros root, upload to/usr/local/nodejs root directory, cd here
We see that js npm's package management is still pretty good, each package maintains a package.json that declares its forward dependencies. The application is the package itself. Each package forms a tree association relationship to form a large application. Davros is a large application. You can see that there is a root package.json for npm and a root bower.json,etc. for bower under its root.
According to https://github.com/mnutt/davros instructions, sudo npm install first, but found to be unusually slow, add tb mirror bar npm install -g cnpm --registry=https://registry.npm.taobao.org, then sudo cnpm install found to be much faster (this is the dependency of the package.json under src root installation including bower). It can replace the default npm, and if it doesn't match it will download from github by default. If it's purple, it's wrong.
Next, sudo bower install will prompt that bower cannot be found, move the link file generated in node_modules/bower/.bin to/usr/local/nodejs/bin, and modify the pointer to the corresponding location.
sudo npm install and sudo bower install --allow-root, git error: SSL certificate problem: unable to get local issuer certificate while accessing
git config --global http.sslVerify false will generate a.gitconfig file under home/tc/, then sudo bower install --allow-root This will continue.
We can't track how many things are installed.
Then follow the instructions of https://github.com/mnutt/davros, sudo PORT=3009 September serve, and find that Amber is not linked into/usr/local/nodejs/bin (in src root package.json it is the same as bower to be installed and there is no error along the way), directly execute it, do not do: sudo PORT=3009 node_modules/.bin/Amber server, and find that Amber does open the guard in the background. According to the instructions of readme.md of github, the local desktop client can be connected at this time.
But in fact, we don't have to do this at all, because this background guard will run out of memory, top will see the memory usage has been rising, and finally the command line will also show heap out of memory, trying to fail!!
Logically, this should be ember build once, after which a series of things will be ember, including davros src root app folder under the things packaged in the generated src root/dist under a random filename beginning with davros. Is this the case, we also have no time to investigate, can only change the dead method, we directly from spk to take all the things built good:
Directly extract spk compiled davros run, successful
Install a sandstorm on another machine, then connect to winscp, enter the spk directory, mine is/opt/sandstorm/var/sandstorm/apps/e813a833d983fbc38d87da62ea461fa7/opt/app, download all packages, clear the root directory of the original nodejs, re-install under/tce/nodejs460, and then upload all the contents of the package in the new spk here,./ Launcher.sh in sandstorm gets out to the root, slightly modifies the path in it, creates directories such as data,data-temp,samplefiles, etc., and executes sudo ./ launcher.sh (which is actually the app.js under the root of nodejs), pay attention to port 8000 not to be occupied, success!! Not only oc desktop client access. Sandstorm free web pages can also be accessed. It can be seen that its relationship with sandstorm management framework and ember build process is not too much to cause failure on the run.
Of course, this sandstorm-free is no authentication mechanism, if it is self-use, just write an authentication logic, this server is much faster than the OC server.
That's all for "how to install sandstorm davros on tinycolinux". Thanks for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!
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.