Friday, 22 March 2019

Build v8worker2 - Ubunty 18.04

Build for https://github.com/ry/v8worker2 - Ubunty 18.04

Setup git: 

    https://v8.dev/docs/source-code#using-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
https://ggkbase-help.berkeley.edu/how-to/install-pyenv/

  1. Checkout from GitHub in the directory you wish to install. We recommend home directory:
     $ git clone https://github.com/pyenv/pyenv.git ~/.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 https://github.com/ry/v8worker2.git
cd v8worker2
rm -rf v8
git clone https://github.com/v8/v8.git
rm -rf depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git submodule update --init --recursive


pyenv global 2.7.13
./build.py --use_ccache

No comments:

Post a Comment