0
-h1. Download
and Installation0
-The installation instructions are slightly different for each operating system.
0
-If you are using Ruby, pick the one that best matches your operating system.
0
-If you are using JRuby, see the instructions for "JRuby":#jruby and also read
0
-about using "JRuby and Ruby side by side":#using_jruby_and_ruby.
0
-p(note). At the moment it seems that Buildr will not work with Java 6, and can
0
-only be used with Java 1.5 or earlier. If you prefer to use Java 6, consider
0
-installing and using "Buildr for JRuby":jruby.
0
-To get started you will need a recent version of Ruby, Ruby Gems and build
0
-tools for compiling native libraries (Make and GCC).
0
-On RedHat/Fedora you can use yum to install Ruby and RubyGems, and then upgrade
0
-to the most recent version of RubyGems:
0
-$ sudo yum install ruby rubygems ruby-devel gcc
0
-$ sudo gem update --system
0
-On Ubuntu you have to install several packages:
0
-$ sudo apt-get install ruby-full ruby1.8-dev libopenssl-ruby build-essential
0
-The Debian package for @rubygems@ will not allow you to install Buildr, so you
0
-need to install RubyGems from source:
0
-$ curl -OL http://rubyforge.org/frs/download.php/29548/rubygems-1.0.1.tgz
0
-$ tar xzf rubygems-1.0.1.tgz
0
-$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
0
-Before installing Buildr, please set the @JAVA_HOME@ environment variable to
0
-point to your JDK distribution. Next, use Ruby Gem to install Buildr:
0
-$ sudo env JAVA_HOME=$JAVA_HOME gem install buildr
0
-To upgrade to a new version of Buildr:
0
-$ sudo env JAVA_HOME=$JAVA_HOME gem update buildr
0
-To install a specific version of Buildr:
0
-$ sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.3.0
0
-You can also use this script "to install Buildr on
0
-Linux":scripts/install-linux.sh. The script will either install or upgrade
0
-Buildr to the latest version. It will also upgrade RubyGems to version 1.0.1
0
-or later, and if necessary install Ruby 1.8.6 using yum (RPM) or apt-get (deb).
0
-OS/X 10.5 (Leopard) comes with the latest version of Ruby 1.8. If you are
0
-using an older version of OS/X, you will first need to upgrade to a recent
0
-version of Ruby. You can install Ruby using MacPorts or Fink, or use the
0
-"One-Click Installer":http://rubyosx.rubyforge.org/.
0
-We recommend you first upgrade to the latest version of Ruby gems:
0
-$ sudo gem update --system
0
-Before installing Buildr, please set the @JAVA_HOME@ environment variable to
0
-point to your JDK distribution:
0
-$ export JAVA_HOME=/Library/Java/Home
0
-$ sudo env JAVA_HOME=$JAVA_HOME gem install buildr
0
-To upgrade to a new version of Buildr:
0
-$ sudo env JAVA_HOME=$JAVA_HOME gem update buildr
0
-To install a specific version of Buildr:
0
-$ sudo env JAVA_HOME=$JAVA_HOME gem install buildr -v 1.3.0
0
-You can also use this script "to install Buildr on
0
-OS/X":scripts/install-osx.sh. The script will either install or upgrade Buildr
0
-to the latest version. It will also upgrade RubyGems to version 1.0.1 or
0
-later, and if necessary install Ruby 1.8.6 using MacPorts or Fink.
0
-If you don't already have Ruby installed, now is the time to do it. The
0
-easiest way to install Ruby is using the "one-click
0
-installer":http://rubyinstaller.rubyforge.org/.
0
-We recommend you first upgrade to the latest version of Ruby gems:
0
-Before installing Buildr, please set the @JAVA_HOME@ environment variable to
0
-point to your JDK distribution. Next, use Ruby Gem to install Buildr:
0
-Buildr uses several libraries that include native extensions. During
0
-installation it will ask you to pick a platform for these libraries. By
0
-selecting @mswin32@ it will download and install pre-compiled DLLs for these
0
-To upgrade to a new version of Buildr:
0
-To install a specific version of Buildr:
0
-> gem install buildr -v 1.3.0
0
-If you don't already have JRuby 1.1RC2 or later installed, you can download it
0
-from the "JRuby site":http://dist.codehaus.org/jruby/.
0
-After uncompressing JRuby, update your @PATH@ to include both JRuby and Java
0
-executables, so you can run JRuby with the command @jruby@.
0
-> set JRUBY_HOME=<path to JRuby>
0
-> set PATH=%JRUBY_HOME%/bin;%JAVA_HOME%/bin;%PATH%
0
-$ export JRUBY_HOME=<path to JRuby>
0
-$ export PATH=$JRUBY_HOME/bin:$JAVA_HOME/bin:$PATH
0
-Once installed, you will find the @buildr@ exectuable in the @JRUBY_HOME/bin@
0
-To upgrade to a new version of Buildr:
0
-$ sudo gem update buildr
0
-To install a specific version of Buildr:
0
-$ sudo gem install buildr -v 1.3.0
0
-You can also use this script "to install Buildr for
0
-JRuby":scripts/install-jruby.sh. The script will either install or upgrade
0
-Buildr to the latest version. If you do not already have JRuby installed, it
0
-will install JRuby 1.1RC2 in @/opt/jruby@ and update the PATH in
0
-@~/.bash_profile@ or @~/.profile@.
0
-h2. Using JRuby and Ruby
0
-Ruby and JRuby maintain separate Gem repositories, and in fact install slightly
0
-different versions of the Buildr Gem (same functionality, different
0
-dependencies). If you want to use Buildr with both, you must install it
0
-separately for each one.
0
-If you installed JRuby on your machine and do not have Ruby installed, the
0
-@gem@ and @buildr@ commands will default to using JRuby. However, you may
0
-already have Ruby installed (some operating systems come with Ruby
0
-pre-installed), in which case these commands will default to whichever is first
0
-To work exclusively with JRuby, make sure it shows first on the path, for example,
0
-by setting @PATH=/opt/jruby/bin:$PATH@. Alternatively, you can run scripts with a particular version
0
-of Ruby using the @-S@ command line argument. For example:
0
-$ ruby -S gem install buildr
0
-$ jruby -S gem install buildr
0
-To find out which version of Buildr you are using by default, run @buildr
0
---help@. Buildr reports the version number and adds @(JRuby)@ next to it when
0
+The easiest way to install Buildr is using the fabulous RubyGems package manager. Of course,
0
+you will need either Ruby or JRuby, and we recommend a recent version of RubyGems and
0
+if this sounds foreign to you, don't worry. We'll show you how to install Buildr on Linux,
0
+OS/X, Windows and JRuby in the "Getting Started guide":getting_started.html, we even provide
0
+automated installation scripts.
0
h2. Binaries and Source Code