Windows/Unix/Linux: Install Pivotal GemFire from a ZIP or tar File

Windows/Unix/Linux: Install Pivotal GemFire from a ZIP or tar File

For Windows, Solaris and all other Linux users, use the ZIP or TAR distribution to install and configure Pivotal GemFire on every physical and virtual machine where you will run Pivotal GemFire.


Before you install the Pivotal GemFire, you must complete the following prerequisites:


Use the following procedure to install Pivotal GemFire:
  1. Navigate to the directory where you built the GemFire software. Locate the build distribution you wish to use under gemfire-assembly/build/distributions. Copy either the .zip or .tar file to the target machine where you want to install GemFire. Unzip the .zip file or expand the .tar file.
    • If you are using the command line, type the following command:
      $ unzip -d path_to_product
      $ tar -xvf gemfire- -C path_to_product
    • Alternatively, unzip the .zip file directly with any common ZIP extraction tool suitable for your operating system.
  2. Configure the JAVA_HOME environment variable.

    If you will be using the gfsh command-line utility or managing servers and locators with the ServerLauncher and LocatorLauncher APIs, then you must set JAVA_HOME to a JDK installation. For example:

    • UNIX and Linux (Bourne and Korn shells - sh, ksh, bash)
      export JAVA_HOME
    • Windows
      set JAVA_HOME=c:\Program Files\Java\jdk1.7.0_75 
  3. Add GemFire scripts to your the PATH environment variable. For example:
    • UNIX and Linux (Bourne and Korn shells - sh, ksh, bash)
      export PATH
    • Windows
      set PATH=%PATH%;%JAVA_HOME%\bin;%GEMFIRE%\bin 
  4. The following step only applies to environments where you are running GemFire processes or GemFire client applications outside of gfsh. The gfsh (as well as the deprecated cacheserver) script sets these environment variables for you. If you are running GemFire processes or applications outside of gfsh, then configure the following environment variables for GemFire.
    • Set the GEMFIRE environment variable to point to your GemFire installation top-level directory. (You should see bin, lib, dtd, and other directories under GEMFIRE.) The following variables definitions are examples; your installation path may vary depending on where you install GemFire and the version you are installing.
      • UNIX and Linux (Bourne and Korn shells - sh, ksh, bash)
        export GEMFIRE
      • Windows
        set GEMFIRE=C:\path_to_product
    • Configure your GF_JAVA environment variables as shown in these examples. GF_JAVA must point to the java executable file under your JAVA_HOME. (If you have not done so already, you should also set your JAVA_HOME variable to a supported Java installation.)
      • UNIX and Linux (Bourne and Korn shells - sh, ksh, bash)
        export GF_JAVA  
      • Windows
        set GF_JAVA=%JAVA_HOME%\bin\java.exe 
  5. Type gfsh version at the command line and verify that the output lists the version of GemFire that you wished to install. For example:
    # gfsh version
    If you want more detailed version information such as the date of the build, build number and JDK version being used, type gfsh version --full.
  6. Repeat this procedure for every virtual or physical machine on which you will run GemFire.
  7. If you need to uninstall GemFire, see How to Uninstall GemFire.

What to Do Next

After you install GemFire from a .zip or tar file, you perform the following tasks: