Installing topojson

If you’re having difficulties on installing topojson, you’re not alone. Even someone has wisdom suggesting to let it go.

Plenty are failed and some successful installing topojson, the problem was it has too many dependency. First of all topojson run on top of node.js which is the first pitfall of the initial failure by installing blindly with no awareness of stable release.

If you’re using windows, like me, unfortunately, you’ve already messing around with your existing python yet, most probably, failed. And now you land in this page while re-installing and setup python (and those extra libraries) to your system again. Yay.

Here is my safest bet, install virtual machine. In my case I’m using the light, sweet and simple lubuntu

  • sudo apt-get install g++ curl libssl-dev apache2-utils
    installing dependency
  • sudo apt-get install git-core
    for selecting nodejs stable version
  • git clone
  • cd node
  • git checkout v0.10.13
    the stable release version, it might changed with the later stable version

Let’s get to the business

  • ./configure
  • make
  • sudo make install
  • sudo npm install nvm
  • sudo apt-get remove gyp
  • sudo npm install -g gyp
  • sudo npm install contexify@0.1.7
  • sudo npm install topojson

Finally got it done. It seems overkill for all the hassle, but hey, it’s working for me and it cost me nothing.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s