Friday, 22 March 2019

Build v8worker2 - Ubunty 18.04

Build for - Ubunty 18.04

Setup git:

Install pyenv

sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev liblzma-dev python-openssl git libglib2.0-dev ccache

  1. Checkout from GitHub in the directory you wish to install. We recommend home directory:
     $ git clone ~/.pyenv
  2. Add to bash profile:
    $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile
    $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile 
  3. Add pyenv init to your shell to enable shims and autocompletion. Please make sure eval "$(pyenv init -)"is placed toward the end of the shell configuration file since it manipulates PATH during the initialization.
    $ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
    Note: There are some systems where the BASH_ENV variable is configured to point to .bashrc. On such systems you should almost certainly put the above mentioned line eval "$(pyenv init -)" into .bash_profile, and not into .bashrc. Otherwise you may observe strange behaviour, such as pyenv getting into an infinite loop. Make sure to check this because of the new ubuntu installation (Jan 2018.)
  4. Restart your shell so the path changes take effect. You can now begin using pyenv.
    $ exec "$SHELL"

Install python 2.7.13

pyenv install 2.7.13

Get and Build mobule

git clone
cd v8worker2
rm -rf v8
git clone
rm -rf depot_tools
git clone
git submodule update --init --recursive

pyenv global 2.7.13
./ --use_ccache