Skip to content
nene edited this page Feb 25, 2013 · 10 revisions

The standard way to install on most platforms is to just install the jsduck gem:

$ gem install jsduck

Windows

For Windows users out there, there's two main options.

To install JSDuck through rubygems, you first need Ruby.

Grab the latest Ruby installer from rubyinstaller.org. Run it and make sure Ruby executable gets added to your PATH.

You also need to install the Development Kit to be able to build native extensions - download it from the same site, then follow the installation instructions (be careful when using the self-extracting exe - if you don't give it a new directory name, it will unpack all files to the current directory, which you probably don't want).

To be able to install JSDuck you need some additional tweaks. Go and download therubyracer gem and v8 lib that stereobooster has built for windows. You need to manually install this special rubyracer version instead of the one from rubygems as the latter simply won't work on Windows. To install:

> gem install therubyracer-0.11.0beta1-x86-mingw32.gem

To make it actually work you need v8.dll somewhere in your system. Extract the lib_v8.3.11.9.zip take the v8.dll inside it and place into the bin directory of your Ruby installation (other dirs that are on your PATH can work too, but I've found this to be the most sensible place to put it).

Finally you're ready to install JSDuck:

> gem install jsduck
Clone this wiki locally