Skip to content

Installation in Ubuntu 18.04

Nick Franken edited this page Sep 11, 2019 · 1 revision
  1. Install build-essential: sudo apt-get install build-essential
  2. Install node, I prefer to use nvm. But you can also install through apt-get.
  3. Install python2.7, it is required by node-gyp
  4. Python 3.6 is already installed: python3 --version
  5. Install the python3-dev package: sudo apt-get install python3-dev
  6. Symlink python3-config to python-config: sudo ln -s $(which python3-config) /usr/local/bin/python-config
  7. There is a bug with how python3.6 was built for this version of ubuntu. A fix has been released, however if you get errors related to /usr/local/share/dpkg/no-pie-compile.specs No such file or directory:
    • sudo mkdir /usr/local/share/dpkg && sudo cp /usr/share/dpkg/no-pie-* /usr/local/share/dpkg/
    • sudo ln -s /usr/include/python3.6m /usr/local/includes/python3.6m
  8. Create a node project (or use an existing project instead):
    • mkdir my_project && cd my_project && npm init
    • npm install @fridgerator/pynode
Clone this wiki locally