-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
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.
# 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 bitcoinjsNow read the Getting Started wiki page to find out what to do next.
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 -gNow that you're a proud owner of a BitcoinJS installation, find out how to [get started](Getting Started) using it.
not yet supported
# 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 bitcoinjsInstead 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 linkNote 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.
TODO
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 mongodbNote 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.