区块链技术(二):以太坊编程语言Solidity安装
文章摘要图:
如果你想测试一段简单的Solidity合约,你不需要安装任何东西,只要访问基于浏览器的Solidity就可以: https://chriseth.github.io/browser-solidity/
如果需要在本地执行Solidity,可以通过以下三种方式安装。
通过NPM / node.js命令在线安装
|
|
二进制安装包
包括Mix IDE的二进制Solidity安装包在Ethereum网站C++ bundle中下载: https://github.com/ethereum/webthree-umbrella/releases从源码构建
在MacOS X、Ubuntu和其它类Unix系统中编译安装Solidity非常相似。这个指南开始讲解如何在每个平台下安装相关的依赖软件,然后构建Solidity。MacOS X
系统需求:
- Homebrew
- Xcode
|
|
Ubuntu系统
Ubuntu系统下面是在最新版Ubuntu系统上编译安装Solidity的指南。最佳的支持平台是2014年11月发布的64位Ubuntu 14.04
安装依赖软件:在你从源码编译之前,你需要准备一些工具和依赖软件。 首先,升级你的代码库。Ubuntu主代码库不提供所有的包,你需要从Ethereum PPA和LLVM获取。 注意
Ubuntu 14.04的用户需要使用:
|
现在加入其它的包:
|
|
|
|
编译
如果你只准备安装solidity,忽略末尾Alethzero和Mix的错误。
|
|
提示:代码格式显示有问题的话,请访问原文:http://wangxiaoming.com/blog/2016/05/01/blockchain-tech-installing-solidity/ 代码格式如下:
本文链接:
https://www.8btc.com/article/90379
转载请注明文章出处
Galaxy Ventures Closes Oversubscribed $175M Fund Amid Growing Crypto VC Appetite
Inaugural venture fund exceeds target despite challenging fundraising environment, signaling institu...
Bitcoin Next Price Discovery Coming? Analyst Shares BTC’s 2025 Roadmap
This week, Bitcoin (BTC) has recovered from its recent drop below the $100,000 level and is attempti...
USDtb Breaks AHT of $25.8 Million in Borrowings on AAVE, Broadens Reach with New Protocol Integrations
Net borrowing using USDtb has hit $25.8 billion, fuelled by expansion on Aave, indicating the asset ...