Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install browser-solidity

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install browser-solidity. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Install browser-solidity browser-based Solidity

If you just want to try a small contract using Solidity, you don't need to install anything, just visit the browser-based Solidity.

If you want to use it offline, you can save the page locally or clone one from http://github.com/chriseth/browser-solidity.

NPM / node.js

This is probably the lightest and easiest way to install Solidity locally.

On browser-based Solidity, Emscripten provides a cross-platform JavaScript library that compiles C++ source code into JavaScript, as well as a NPM installation package.

To install it, it is easy to use.

Npm install solc

Details of how to use the nodejs package can be found in the code base.

Binary installation package Ethereum.

The binary Solidity installation package, including Mix IDE, is downloaded from the C++ bundle on the Ethereum website.

Build from source code

Compiling and installing Solidity on MacOS X, Ubuntu, and other Unix-like systems is very similar. This guide begins by explaining how to install the relevant dependent software on each platform, and then build Solidity.

MacOS X

System requirements:

OS X Yosemite (10.10.5)

Homebrew

Xcode

Install Homebrew:

Brew update brew install boost-- clocking 11 # it takes a while to wait for brew install cmake cryptopp miniupnpc leveldb gmp libmicrohttpd libjson-rpc-cpp # just to install Mix IDE and Alethzero brew install xz d-bus brew install llvm-- HEAD-- with-clang brew install qt5-- with-d-bus # if the long wait drives you crazy, then adding-- verbose output information will make you feel better. Ubuntu system

The following is a guide for compiling and installing Solidity on the latest version of Ubuntu. The best supporting platform is the 64-bit Ubuntu 14.04 released in November 2014, which requires at least 2GB memory. All of our tests are based on this version, and of course we welcome test contributors from other versions.

Install dependency software:

Before you can compile from source code, you need to prepare some tools and dependent software.

First, upgrade your code base. The Ubuntu main codebase does not provide all the packages, you need to get them from Ethereum PPA and LLVM.

Be careful

Users of Ubuntu 14.04 need to use: sudo apt-add-repository ppa:george-edison55/cmake-3.x to get the latest version of cmake.

Now add other packages:

Sudo apt-get-y update sudo apt-get-y install language-pack-en-base sudo dpkg-reconfigure locales sudo apt-get-y install software-properties-common sudo add-apt-repository-y ppa:ethereum/ethereum sudo add-apt-repository-y ppa:ethereum/ethereum-dev sudo apt-get-y update sudo apt-get-y upgrade

For Ubbuntu 15.04 (Vivid Vervet) or older, use the following command to get the development-related package:

Sudo apt-get-y install build-essential git cmake libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libjson-rpc-cpp-dev libmicrohttpd-dev libjsoncpp-dev libedit-dev libz-dev

For Ubbuntu 15.10 (Wily Werewolf) or later, use the following command to get the development-related package:

Sudo apt-get-y install build-essential git cmake libboost-all-dev libgmp-dev libleveldb-dev libminiupnpc-dev libreadline-dev libncurses5-dev libcurl4-openssl-dev libcryptopp-dev libjsonrpccpp-dev libmicrohttpd-dev libjsoncpp-dev libedit-dev libz-dev

The reason different versions use different get commands is that libjsonrpccpp-dev is already in the general code repository of the latest version of Ubuntu.

Compile

If you are only going to install solidity, ignore the errors at the end of Alethzero and Mix.

Git clone-- recursive https://github.com/ethereum/webthree-umbrella.git cd webthree-umbrella. / webthree-helpers/scripts/ethupdate.sh-- no-push-- simple-pull-- project solidity # Update the Solidity library. / webthree-helpers/scripts/ethbuild.sh-- no-git-- project solidity-- all-- cores 4-DEVMJIT=0 # Compiler Solidity and other # will not compile on OS X systems with DEVMJIT, but not on Linux systems

If you choose to install Alethzero and Mix:

Git clone-- recursive https://github.com/ethereum/webthree-umbrella.git cd webthree-umbrella & & mkdir-p build & & cd build cmake.

If you want to help with Solidity development, you need to fork Solidity and add to your private remote branch:

Cd webthree-umbrella/solidity git remote add personal git@github.com:username/solidity.git

Note the submodules used by webthree-umbrella, so solidity is its own git code base, but its settings are not saved in .git / config, but in webthree-umbrella/.git/modules/solidity/config.

Thank you for reading! This is the end of the article on "how to install browser-solidity". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report