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/
- Checkout from GitHub in the directory you wish to install. We recommend home directory:
$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv- Add to bash profile:
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile $ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile- Add
pyenv init
to your shell to enable shims and autocompletion. Please make sureeval "$(pyenv init -)"
is placed toward the end of the shell configuration file since it manipulatesPATH
during the initialization.$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profileNote: There are some systems where theBASH_ENV
variable is configured to point to.bashrc
. On such systems you should almost certainly put the above mentioned lineeval "$(pyenv init -)"
into.bash_profile
, and not into.bashrc
. Otherwise you may observe strange behaviour, such aspyenv
getting into an infinite loop. Make sure to check this because of the new ubuntu installation (Jan 2018.)- 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.13Get 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