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