Difference between revisions of "Parsoid installation"

From Biowikifarm Metawiki
Jump to: navigation, search
m (Alvaro Ortiz-Troncoso moved page User:Parsoid installation to Parsoid installation)
Line 21: Line 21:
 
  cd /usr/local/src/parsoid
 
  cd /usr/local/src/parsoid
 
  npm install
 
  npm install
 +
 +
You can now [[Migrate_an_existing_Wiki_to_MediaWiki_1.26wmf5_and_Visual_Editor#Parsoid|configure parsoid]] to point to your wiki.

Revision as of 12:17, 27 May 2015

see: http://www.mediawiki.org/wiki/Parsoid/Developer_Setup

Check that nodejs is the right version:

nodejs --version

It should be >0.10. If it's not do:

cd /usr/local/src/
git clone https://github.com/joyent/node.git
cd node

do "git tag" and select the latest version (here v0.12.3). Then build it:

git checkout v0.12.3
./configure
make 
make install

(will install in /usr/local/lib, /usr/local/include)

Get the Parsoid service source:

cd /usr/local/src/
git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid

Install nodejs parsoid dependencies

cd /usr/local/src/parsoid
npm install

You can now configure parsoid to point to your wiki.