Summary of the environment of Ethernet square (Truffle 3) __ Block chain Technology

Source: Internet
Author: User
Tags install go

1. Install Nodejs, NPM
We want to install the ubuntu14.04 64-bit system, solid select Linux 64-bit version (binary plate).
In this article, we extract the files and move them to the/usr/local/node directory.
Then change the node folder content permission to 755.

Then enter the node folder directory. Enter the bin directory.
Execute script./node-v or./npm-v can display version information normally. (where./npm-v shows a problem)

First execute the command gedit ~/.BASHRC and modify the file.
At the end of the file, add two lines
Export Node=/usr/local/node
Export path= node/bin: {node}/bin:path
Then execute the save.
Execute command source ~/.BASHRC. (This nodejs has been installed).

2. Installation Dependency
sudo apt-get install build-essential git OpenSSL

3. Install Solc
Install via Apt-get:
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install Solc
Which SOLC

Solc–version (Verify that the installation is correct)

4. Install Ethereum client Geth
There are a variety of Ethernet square clients, install Go-ethereum Enter the following command:
sudo apt-get install Software-properties-common
sudo add-apt-repository-y ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install Ethereum
If you return an error while entering the second command, try restarting the system.
Start: Geth Verify that the installation is correct

5. Install Testrpc
Enter the following command:
NPM Config Set registry https://registry.npm.taobao.org (I tried many times only this installation succeeded)
sudo npm install-g ethereumjs-testrpc

Enter TESTRPC Verify that the installation is successful

6. Install truffle
Enter the following command:
NPM install-g Truffle (default installation truffle version 3)
To install the Truffle 2 version
NPM install-g truffle@2.1.1 (Other problems with the compilation process)
Uninstall NPM Uninstall Truffle

NPM install-g truffle@~2.1.1 (solve the above problem)

To this end, TESTRPC, truffle installation completed.

However, in the Truffle 2 and truffle 3 versions, both appear
Contract = eth.compile.solidity (source). Test
Displays undefined.
Contract = web3.eth.compile.solidity (source) ["<stdin>:test"]

Complete.

Http://jingyan.baidu.com/article/6181c3e080f979152ef15387.html
http://blog.csdn.net/wo541075754/article/details/53155578
http://ethereum.stackexchange.com/questions/
https://ethereum.stackexchange.com/questions/12032/solidity-compile-contract-return-undefined/12034#12034

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.