Skip to content
virtualcodewarrior edited this page May 29, 2014 · 1 revision

The installation of BitcoinJS Server should be fairly quick and painless. If you run into any issues, make sure you open an issue on Github or post to the mailing list.

Ubuntu

# Install prerequisites
sudo apt-get install build-essential python2.7 pkg-config libssl-dev

# Install Node.js
tar xzvf node-v0.8.4.tar.gz # <- get this file from nodejs.org
cd node-v*
./configure
make
sudo make install

# Install BitcoinJS Server
sudo npm install -g bitcoinjs

Now read the Getting Started wiki page to find out what to do next.

Mac

TODO: Test these instructions

Get latest Node.js installer (.pkg) from http://nodejs.org/dist/latest/

Then open a terminal and run:

sudo npm install bitcoinjs -g

Now that you're a proud owner of a BitcoinJS installation, find out how to [get started](Getting Started) using it.

Windows

not yet supported

SmartOS (Solaris)

# Install prerequisites
pkgin install gmake gcc-compiler git pkg-config python27

# Install Node.js
tar xzvf node-v0.8.4.tar.gz # <- get this file from nodejs.org
cd node-v*
./configure --with-dtrace --prefix=/opt/local
gmake install

# Install BitcoinJS Server
sudo npm install -g bitcoinjs

Installing from git

Instead of installing BitcoinJS through NPM, you can install it from git. This goes as follows:

# Install node-gyp if you haven't already
sudo npm install -g node-gyp

# Clone the repository
git clone [email protected]:bitcoinjs/bitcoinjs-server.git
cd bitcoinjs-server

# Install dependencies
npm install

# Compile BitcoinJS
node-gyp configure build

# Install BitcoinJS
sudo npm link

Note that the git version sometimes contains new features where the corresponding migration procedures haven't been implemented yet. To avoid issues we recommend resetting your database and reviewing your settings whenever you install or update the git version.

Optional Steps

Exit module

TODO

MongoDB

MongoDB is an alternative database that you can use instead of the built-in database (LevelDB). Generally, this is not recommended, since LevelDB is much faster.

MongoDB can be installed on Debian/Ubuntu with:

sudo aptitude install mongodb

Note that MongoDB has a 2.5 GB database limit in the 32-bit version. A full block chain download is already pushing that limit, so we strongly recommend you run a 64-bit OS.

Clone this wiki locally