A VirtualBox, Ubuntu Dev Environment

From The Ethereum Wiki
Jump to: navigation, search

Originally from How I set up the developer environment (A newbie without CS background):

I have been struggling to set up the environment for a while. This is how I did so far, and I hope someone with a similar background like me will find this post helpful. I will keep it up-to-date as the time goes by. And thank you all for suggestions/comments/critics in advance.

Ubuntu 16.04 LTS 64-bit in VirtualBox 5.0.32

In guest terminal type

sudo apt update && sudo apt upgrade -y
sudo apt install build-essential

Install Virtualbox Guest Additions

If you have problems with this, please refer to this link http://askubuntu.com/questions/792832/how-to-install-virtualbox-guest-additions-for-ubuntu-16-04

I had problems with sharing the folder with the host (Elementary OS loki) In guest terminal type

usermod -a -G vboxsf *username*

How to install solcjs

A portable and most convenient way to install Solidity locally, recommended by https://solidity.readthedocs.io/en/develop/index.html

Obtain current version of npm and nodejs https://nodejs.org/en/download/current/ Download the source code of the current version https://nodejs.org/dist/v7.7.3/node-v7.7.3.tar.gz

How to install nodejs, as well as npm

cd ~/Downloads
tar zxvf node-v7.7.3.tar.gz node-v7.7.3
cd node-v7.7.3
sudo ./configure && sudo make && sudo make install

how to install solcjs

sudo npm install -g solc

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.

You can also install solc by ppa instead

sudo add-apt-repository ppa:ethereum/ethereum
sudo apt-get update
sudo apt-get install solc

How to install truffle

sudo npm install -g truffle
TODO: to be continued...