Setup of Globus Toolkit 4.0.8 ¶
Documentation ¶
The following guides are available:
GT4 Admin Guide
GT 4.0.x Quickstart Guide
Globus Consortium Globus Toolkit Compute Grid Tutorial
http://www.gac-grid.org/project-products/grid-support/grid-installation.html
Hint: All documentations are totally outdated!
Create user "globus" ¶
- ssh root@129.206.112.253
- /usr/sbin/useradd -g globus globus
- /usr/bin/passwd globus
Changing password for user globus. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully.
- exit
Download Files Externally and Copy Them to Virtual Host ¶
Hint: All binary installers are totally outdated! Therefore you have to download the source code and compile it for yourself!
- Download the software check script
globus_prereq.pl
- scp globus_prereq.pl globus@129.206.112.253:/home/globus/
- Download the source code of
globus-helper-v1.3.tgz
- scp globus-helper-v1.3.tgz globus@129.206.112.253:/home/globus/
- Download the source code of
Globus Toolkit 4.0.8
- scp gt4.0.8-all-source-installer.tar.gz globus@129.206.112.253:/home/globus/
- Download the source code of
libiodbc-3.52.7.tar.gz
- scp libiodbc-3.52.7.tar.gz globus@129.206.112.253:/home/globus/
Alternative to the last point:
- Install
libiodbc - iODBC Driver Manager and
libiodbc-devel - Header files and libraries for iODBC development via
EPEL
- Within virtual machine additionally install the ODBC driver manager for Linux (unixODBC-2.2.11-7.1.i386 / .x86_64)
- Later skip the section "Install iODBC"
Software Installation ¶
Within virtual machine install:
- PostgreSQL client (postgresql-8.1.23-1.el5_5.1.i386 / .x86_64)
- PostgreSQL server (postgresql-server-8.1.23-1.el5_5.1.i386 / .x86_64)
- Apache Tomcat Servlet/JSP Engine (tomcat5-5.5.23-0jpp.17.el5_5.i386 / .x86_64)
- Apache Tomcat admin web applications (tomcat5-admin-webapps-5.5.23-0jpp.17.el5_5.i386 / .x86_64)
- Optional tasks for ant (ant-nodeps-1.6.5-2jpp.2.i386 / .x86_64)
- Optional apache regexp task for ant (ant-apache-regexp-1.6.5-2jpp.2.i386 / .x86_64)
- APIs subproject of xml-commons (xml-commons-apis-1.3.02-0.b2.7jpp.10.i386 / .x86_64)
- A low level Perl module for parsing XML either via trees or streaming (perl-XML-Parser-2.34-6.1.2.2.1.i386 / )
- A secure replacement for inetd (2:xinetd-2.3.14-10.el5.i386 / .x86_64)
Tests ¶
- ssh globus@129.206.112.253
Distribution Check ¶
- cat /etc/*release
Scientific Linux SL release 5.5 (Boron)
- dmesg | grep "Linux version"
Linux version 2.6.18-194.3.1.el5 (brewbuilder@norob.fnal.gov) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48)) #1 SMP Fri May 7 01:52:57 EDT 2010
Software Check ¶
- perl globus_prereq.pl
checking java... ... checking sudo... ================================================== RESULT: package min. version OK? -------------------------------------------------- java >= 1.4.2 yes postgres >= 7.1 yes gmake >= 3.74 yes ant >= 1.5.1 yes perl >= 5.005 yes sed >= 3.02 yes wget >= 1.8.2 yes gcc >= 3.3 yes gtar >= 2.4 yes zlib >= 1.1.4 yes sudo >= 1.6.7 yes ==================================================
- Check PostgreSQL:
- psql --version
psql (PostgreSQL) 8.1.23 contains support for command-line editing
- psql --version
- Check Tomcat:
- su
- vi /etc/tomcat5/tomcat-users.xml
- Edit (i)
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <user name="tomcat" password="tomcat" roles="tomcat" /> <user name="role1" password="tomcat" roles="role1" /> <user name="both" password="tomcat" roles="tomcat,role1" /> <user name="globus" password="......." roles="admin,manager" /> </tomcat-users>
- Save (ESC :wq)
- Edit (i)
- /etc/rc.d/init.d/tomcat5 start
- exit
- firefox
- Go to page http://localhost:8080/manager/html
- Log in as globus/.......
Hint: http://dgsi.zah.uni-heidelberg.de:8080/manager/html/ for access from anywhere. Here a war-file can be deployed. If Running="false", check /etc/tomcat5/tomcat-users.xml again:
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="manager"/> <role rolename="tomcat"/> <role rolename="admin"/> <role rolename="role1"/> <user username="globus" password="gt4p0p8" roles="admin,manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/> </tomcat-users>
- Check Ant:
- ant -version
Apache Ant version 1.6.5 compiled on March 23 2007
- ant -diagnostics
------- Ant diagnostics report ------- Apache Ant version 1.6.5 compiled on March 23 2007 ------------------------------------------- Implementation Version (JDK1.2+ only) ------------------------------------------- core tasks : 1.6.5 optional tasks : 1.6.5 ------------------------------------------- ANT_HOME/lib jar listing ------------------------------------------- ant.home: /usr/share/ant ------------------------------------------- Tasks availability ------------------------------------------- p4reopen : Not Available image : Not Available sshexec : Not Available ...
- In case of "replaceregexp : Not Available" double-check your installation
- Compare your result with
ant_diagnostics before you proceed
- ant -version
- Check Java Virtual Machine:
- /usr/sbin/alternatives --config java
There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.6.0-sun/bin/java 2 /usr/lib/jvm/jre-1.4.2-gcj/bin/java Enter to keep the current selection[+], or type selection number:
- Enter
failed to create /var/lib/alternatives/java.new: Permission denied
- /usr/sbin/alternatives --config java
- Check Java compiler
- /usr/sbin/alternatives --config javac
There is 1 program that provides 'javac'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/java-1.6.0-sun/bin/javac Enter to keep the current selection[+], or type selection number:
- Enter
failed to create /var/lib/alternatives/java.new: Permission denied
- /usr/sbin/alternatives --config javac
Hint: Don't use the patches for the Java and C compiler recommended in the manual!
Set Environmental Variables ¶
- vi .bash_profile
- Edit (i)
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export GLOBUS_LOCATION=/usr/local/globus-4.0.8 export GLOBUS_PATH=$GLOBUS_LOCATION/sbin export GLOBUS_TCP_PORT_RANGE=20000,25000 PATH=$PATH:$GLOBUS_PATH export ANT_HOME=/usr/share/ant export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun export PATH=$PATH:/usr/lib/jvm/java-1.6.0-sun/bin export PATH
- Save (ESC :wq)
- Edit (i)
- exit
Hint: In contrast to the manual there is no need to set $CATALINA_HOME!
Preparation ¶
- ssh globus@129.206.112.253
- tar -xzvf globus-helper-v1.3.tgz
- tar -xzvf gt4.0.8-all-source-installer.tar.gz
- tar -xzvf libiodbc-3.52.7.tar.gz (if you use the EPEL packages skip this and the following section)
Install iODBC ¶
- cd libiodbc-3.52.7
- ./configure --prefix=/home/globus/iodbc --disable-gtktest
--with-pthreads --disable-gui
--with-iodbc-inidir=/home/globus/iodbc/lib/
... iODBC Driver Manager 3.52.7 configuration summary ================================================= Installation variables layout default prefix /home/globus/iodbc exec_prefix ${prefix} Installation paths programs ${exec_prefix}/bin include files ${prefix}/include libraries ${exec_prefix}/lib manual pages ${datarootdir}/man Configuration files odbc.ini /home/globus/iodbc/etc/odbc.ini odbcinst.ini /home/globus/iodbc/etc/odbcinst.ini default FILEDSN path /home/globus/iodbc/etc/ODBCDataSources Extensions ODBC Version 3 GUI Extensions false ThreadSafe true Install libodbc.so true
- make
- su
- make install
- cd ..
Install Globus Toolkit ¶
Configuration ¶
- cd gt4.0.8-all-source-installer
- Only if 64 bit:
- vi Makefile.in
- Search "32" (?32)
- Change (i)
... cd gpt && OBJECT_MODE=32 ./build_gpt ...
to... cd gpt && OBJECT_MODE=64 ./build_gpt ...
- Save (ESC :wq)
- vi Makefile.in
- grep OBJECT_MODE Makefile.in
Result in case of 32 bit:
cd gpt && OBJECT_MODE=32 ./build_gptResult in case of 64 bit:
cd gpt && OBJECT_MODE=64 ./build_gpt
- ./configure --prefix=$GLOBUS_LOCATION --with-iodbc=/home/globus/iodbc/
checking build system type... i686-pc-linux-gnu checking for javac... /usr/bin/javac configure: WARNING: the javac in your path is not from your $JAVA_HOME environment checking for ant... /usr/bin/ant configure: creating ./config.status config.status: creating Makefile
Compilation ¶
- whoami
root
- make 2>&1 | tee make.log
- Wait about two hours
- Compare your result with
make before you proceed
If compilation fails with the message "Could not create task or type of type: replaceregexp", try:
- ./configure --prefix=$GLOBUS_LOCATION --disable-webmds
- make 2>&1 | tee build.log
- If this works WebMDS is the reason for the trouble. Try to compile the problematic part only:
- cd /home/globus/gt4.0.8-all-source-installer/source-trees/ws-mds/webmds/webmds/source
- ant -Denv.GLOBUS_LOCATION=/usr/local/globus-4.0.8 deploy
- If this doesn't work
- Double-check your installation
- Go back to "Software check" → "Check Ant"
- cp /usr/share/java/ant/ant-apache-regexp.jar /usr/share/ant/lib/ant-apache-regexp.jar
Hint: This problem can occur because in actual distributions ant-optional is divided up to several packages like ant-nodeps and ant-apache-regexp.
Installation ¶
- make install 2>&1 | tee make_install.log
- Compare your result with
make install
Back to Installation of Globus Toolkit 4.0.8 on Scientific Linux 5.5 running virtually within VMware on openSUSE 11.1 (master document)
Forward to Setting up Globus Toolkit 4.0.8 Security Infrastructure (next item)
Attachments
-
ant_diagnostics.log
(4.7 KB)
ant_diagnostics
-
make.log
(189.3 KB)
make
-
make_install.log
(10.7 KB)
make_install