STF Environment Setup (Ubuntu)

Source: Internet
Author: User

One, Environment construction

1. Some of the basic Linux tools are:

sudo apt-get updatesudo apt-get install gitsudo apt-get install lib32stdc++6sudo apt-get install Yum

2. Install the JDK and Android SDK environment (omitted here, oneself Baidu a bit)

3. Nodejs Installation

https://nodejs.org Nodejs official website, download the LTS version of the compressed package, unzip into the directory:

./configuremakesudo make Installsudo ln-s/usr/local/bin/node/usr/bin/nodesudo ln-s/usr/local/bin/npm/usr/bin/npm

Nodejs is installed, NPM is NODEJS package management tool will be installed automatically

Verify: the console inputs node-v and npm-v separately to verify that the configuration is complete

4. Installing Bower

sudo npm install bower-g

Verification: Bower--version

5. Installing RETHINKBD

Source/etc/lsb-release && echo "Deb http://download.rethinkdb.com/apt $DISTRIB _codename main" | sudo tee/etc/apt/sources.list.d/rethinkdb.listwget-qo-http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add-//Note: The above is a command that needs to be executed with sudo apt-get updatesudo apt-get install RETHINKDB

6. Installing GraphicsMagick

https://sourceforge.net/projects/graphicsmagick/files/graphicsmagick/, download unzip into directory

./configuremakesudo Make Install

Verification: Gm-version

7. Installing Libsodium (Zeromp dependent)

https://github.com/jedisct1/libsodium/releases, download unzip into directory

./configuremakesudo Make Install

8. Installing Zeromp

http://download.zeromq.org/download unzip into the directory

./configuremakesudo Make Installsudo Ldconfig

9. Installing Protobug

https://github.com/google/protobuf/releases download unzip into the directory

Because environment variables need to be configured, parameters are specified in the specified directory under Local./configure--prefix=/usr/local/protobufmakesudo make Install

To modify an environment variable:

sudo gedit ~/.BASHRC

To add a variable:

Export path= $PATH:/usr/local/protobuf/bin/export pkg_config_path=/usr/local/protobuf/lib/pkgconfig/

Execute command:

SOURCE ~/.BASHRC

10. Install Pkg-config:sudo apt-get install pkg-config

11. Install STF

sudo npm install-g STF

12. Start:

First, reopen a console, run: rethinkdb, start the RETHINKDB service (specify port and buffer size start: rethinkdb--bind all--cache-size 8192--http-port 8090)

Then, reopen a console, run: STF local to start the STF service (specify IP and allow remote connections to start: STF local--public-ip xx.xx.xx.xx--allow-remote)

=============================================================================================================== =====

At this point, if all is well installed, however, things are often not as smooth as we imagined, there are a lot of pits waiting for you. Here to record some of the pits I encountered, hoping to help you, but also to the future of their own.

1. Nodejs version mismatch, this problem you may have to try a few more versions

2. The installation appears:

gyp WARN eacces user "root" does not has permission to access

to the corresponding file to add read and write execution permissions, I gave 777 permissions here, oh, anyway, the problem is solved

3. After the STF is always prompted to find the node-v57-linux-x64 under a file Jpegturbo.node error,

I looked at my system without this node-v57-linux-x64, but node-v47-darwin-x64.

Execute, NPM rebuild after resolution

4. After the installation is completed in,/USR/LOCAL/LIB/NODE_MODULES/STF, directory execute the NMP install will depend on the update

Let's start with the new hole and add it.

STF Environment Setup (Ubuntu)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.