If your guest operating system is Red Hat Enterprise Linux (RHEL), VMware recommends that you use yum to install vFabric GemFire. You complete the installation procedure on every virtual and physical machine that will run GemFire.
When you install vFabric components on RHEL from the VMware RPM repository, the components are installed into different directories and are owned by different users in different groups. The vFabric GemFire installation is owned by the gemfire user in the vfabric group. The default installation directory is /opt/vmware/vfabric_gemfire/vFabric_GemFire_XXX where XXX corresponds to the version of GemFire (for example, vFabric_GemFire_662) that you have installed.
prompt# wget -q -O - http://repo.vmware.com/pub/rhel5/vfabric/5.2/vfabric-5.2-suite-installer | sh
prompt# wget -q -O - http://repo.vmware.com/pub/rhel6/vfabric/5.2/vfabric-5.2-suite-installer | sh
prompt# rpm -Uvh http://repo.vmware.com/pub/rhel5/vfabric/5.1/vfabric-5.1-repo-5.1-1.noarch.rpm prompt # rpm -Uvh http://repo.vmware.com/pub/rhel5/vfabric-all/vfabric-all-repo-1-1.noarch.rpmFor RHEL 6 users:
prompt# rpm -Uvh http://repo.vmware.com/pub/rhel6/vfabric/5.1/vfabric-5.1-repo-5.1-1.noarch.rpm prompt# rpm -Uvh http://repo.vmware.com/pub/rhel6/vfabric-all/vfabric-all-repo-1-1.noarch.rpmIf necessary, use sudo to run the preceding commands if you are not logged in as the root user.
prompt# rpm -Uvh http://repo.vmware.com/pub/rhel5/vfabric/5/vfabric-5-repo-5-2.noarch.rpm prompt# rpm -Uvh http://repo.vmware.com/pub/rhel5/vfabric-all/vfabric-all-repo-1-1.noarch.rpmIf necessary, use sudo to run the preceding commands if you are not logged in as the root user.
prompt# yum install vfabric-gemfire
The yum command begins the install process, resolves dependencies, and displays the packages it plans to install.
prompt# yum install vfabric-gemfire-6.6.1-1Use yum search vfabric-gemfire --showduplicates to find all versions that are available in the installed RPM repositories.
Note that you cannot login directly as the gemfire user because interactive login has been disabled. Rather, you must login as the root user or as a privileged user using sudo, and then su - gemfire.
GF_JAVA=$JAVA_HOME/bin/java export GF_JAVA PATH=$PATH:$JAVA_HOME/bin:$GEMFIRE/bin export PATH CLASSPATH=$GEMFIRE/lib/gemfire.jar:$GEMFIRE/lib/antlr.jar:\ $GEMFIRE/lib/gfSecurityImpl.jar:$CLASSPATH export CLASSPATH