diff options
author | chriseth <chris@ethereum.org> | 2018-01-11 23:44:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 23:44:36 +0800 |
commit | 0c20b6da6b6c5f8fa72c389648b5da54c13945f9 (patch) | |
tree | a3df9045752fbf8bd4028668bb6a0c7327f0a4e0 | |
parent | a75d5333d8ae614316b9c707e2022c2d144eaf33 (diff) | |
parent | deeee06bc29365a3af4e2068739546a41fdd8353 (diff) | |
download | dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.tar dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.tar.gz dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.tar.bz2 dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.tar.lz dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.tar.xz dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.tar.zst dexon-solidity-0c20b6da6b6c5f8fa72c389648b5da54c13945f9.zip |
Merge pull request #3381 from fulldecent/patch-3
No nonsense explanation of compiler options
-rw-r--r-- | docs/installing-solidity.rst | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/docs/installing-solidity.rst b/docs/installing-solidity.rst index b660cf02..8f30f199 100644 --- a/docs/installing-solidity.rst +++ b/docs/installing-solidity.rst @@ -2,9 +2,9 @@ .. _installing-solidity: -################### -Installing Solidity -################### +################################ +Installing the Solidity Compiler +################################ Versioning ========== @@ -18,30 +18,38 @@ will use the latest release. Remix ===== -If you just want to try Solidity for small contracts, you -can try `Remix <https://remix.ethereum.org/>`_ -which does not need any installation. If you want to use it -without connection to the Internet, you can go to -https://github.com/ethereum/browser-solidity/tree/gh-pages and -download the .ZIP file as explained on that page. +*We recommend Remix for small contracts and for quickly learning Solidity.* + +`Access Remix online <https://remix.ethereum.org/>`_, you don't need to install anything. +If you want to use it without connection to the Internet, go to +https://github.com/ethereum/browser-solidity/tree/gh-pages and download the .ZIP file as +explained on that page. + +Further options on this page detail installing commandline Solidity compiler software +on your computer. Choose a commandline compiler if you are working on a larger contract +or if you require more compilation options. npm / Node.js ============= -This is probably the most portable and most convenient way to install Solidity locally. +Use `npm` for a convenient and portable way to install `solcjs`, a Solidity compiler. The +`solcjs` program has less features than all options further down this page. Our +`Using the compiler <using-the-compiler.html>` documentation assumes you are using +the full-featured compiler, `solc`. So if you install `solcjs` from `npm` then you will +stop reading the documentation here and then continue to <https://github.com/ethereum/solc-js>, -A platform-independent JavaScript library is provided by compiling the C++ source -into JavaScript using Emscripten. It can be used in projects directly (such as Remix). +Note: The `solc-js <https://github.com/ethereum/solc-js>` project is derived from the C++ +`solc` by using Emscripten. `solc-js` can be used in JavaScript projects directly (such as Remix). Please refer to the `solc-js <https://github.com/ethereum/solc-js>`_ repository for instructions. -It also contains a commandline tool called `solcjs`, which can be installed via npm: - .. code:: bash npm install -g solc .. note:: + The commandline is named `solcjs`. + The comandline options of `solcjs` are not compatible with `solc` and tools (such as `geth`) expecting the behaviour of `solc` will not work with `solcjs`. @@ -63,7 +71,7 @@ output directories. Binary Packages =============== -Binary packages of Solidity available at +Binary packages of Solidity are available at `solidity/releases <https://github.com/ethereum/solidity/releases>`_. We also have PPAs for Ubuntu. For the latest stable version. |