Update NodeJS version in install docs

Also adds installation of packages needed for compilation of some
Node modules, and the version of GCC/C++ needed for that job.
pull/12149/head
Luis Mayoral 7 years ago
parent 4e5413333d
commit 806b9c7c81
No known key found for this signature in database
GPG Key ID: 2E0B596CFA8F6EA1

@ -30,6 +30,15 @@ Although we try to maintain packaged versions of almost every part of the stack,
sudo apt-get install autoconf binutils-doc bison build-essential flex
You will also need to install GCC 4.9 in order to build some Node modules later. You can install it doing this:
.. code-block:: bash
sudo add-apt-repository ppa:cartodb/gcc && sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
export CC=/usr/bin/gcc-4.9
export CXX=/usr/bin/g++-4.9
GIT
~~~
@ -214,7 +223,7 @@ NodeJS is required by different parts of the stack. The more significant are the
.. code-block:: bash
sudo add-apt-repository ppa:cartodb/nodejs-010 && sudo apt-get update
sudo add-apt-repository ppa:cartodb/nodejs && sudo apt-get update
* Install NodeJS
@ -222,7 +231,7 @@ NodeJS is required by different parts of the stack. The more significant are the
sudo apt-get install nodejs
Note this should install both NodeJS 0.10.26 and npm 2.14.16. You can verify the installation went as expected with:
Note this should install both NodeJS 6.9.2 and npm 3.10.9. You can verify the installation went as expected with:
.. code-block:: bash
@ -233,8 +242,14 @@ If npm version is wrong you should update it:
.. code-block:: bash
npm install npm@2.14.16 -g
npm install npm@3.10.9 -g
We will also install some development libraries that will be neccesary to build some Node modules:
.. code-block:: bash
sudo apt-get install libpixman-1-0 libpixman-1-dev
sudo apt-get install libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev
SQL API
-------
@ -284,16 +299,6 @@ MAPS API
npm install
.. warning::
If this fails due to package cairo not found in the pkg-config search path, you can install it like this
::
$ sudo apt-get install libpango1.0-dev
After this change, re-run npm install, and it should be OK.
* Create configuration. The name of the filename of the configuration must be the same than the environment you are going to use to start the service. Let's assume it's development.

Loading…
Cancel
Save