Install Javascript shell

If you are familiar with Python, you will be liking its interactive command prompt. Because we can experiment its features on the fly in terminal. Similarly if you wish to play with javascript in terminal we have some standalone javascript shells. You can find a list of useful links from here.

Recently I have installed javascript shell from spider monkey  source distribution. I feel  it will be a handy tool for you.

Pre-requisites:

1) Mercurial version control. (Hg)

2) autoconf2.13 ( I installed it from synaptic package manager. It is the easier way)

Here is the step for the installation:

1) Get the spidermonkey source code.

Just copy this in your terminal:

  hg clone http://hg.mozilla.org/mozilla-central/

the source code will be downloaded to the folder ‘mozilla-central’.

2)

 cd mozilla-central/

3)

cd js/src

4)

autoconf2.13

5)

./configure

6)

make
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s