Eos installation

From EosPedia
Jump to: navigation, search

Installation of Eos

First, install Eos on the personal computer of each user, and perform environment setup. For the general installation method, see the manual of the installation method. For Windows users, programs are executed on Ubuntu in a virtual environment, using VMwarePlayer. VMwarePlayer is currently a virtual computer environment usable for free as individual use. For Mac users, programs can be executed on OS-X as it is by copying images to the Application folder. If program operation is not compatible with OS-X, an execution environment (Xcode/XQuatz) is necessary. For the details, refer to the manual of installation method. In each case, environmental variables are set up in Eos as Eos_env so that the execution environment is set up. Read in this file like below when executing programs:

$ source Eos_env 

Otherwise, change .profile as follows so that the environmental variables can be read out of .profile in the home directory: First, save the files defined by Eos_env in the home directory as .Eos_env. After that, add the command below to .profile.

$ test -r $HOME/.Eos_env && $HOME/.Eos_env 

This is also possible by executing eosEnvSet. The first dots of file names are not indispensable because they are attached to make those files invisible from the ls command on UNIX. Those files can be used without consideration by making them invisible, to avoid them from being deleted by mistake. On UNIX, many setup files are prepared as invisible files/directories.

#!/usr/local/bin/bash
# Set Eos Home Directory
export EOS_HOME=$HOME/Eos
export EOS_MIRROR_SITE=/work15/Eos07/Eos
export EOS_GIT_USER=$USER

P4=`uname -p | grep "Intel"`
if [ "$HOSTTYPE" = "i486" ]
then
	if [ -z "$P4" ]
	then
		P4=`egrep 'Intel\(R\)' /proc/cpuinfo | awk '{aaa=4;print $aaa;exit}'`
	fi
	GCCVER=`gcc -v 2>&1 | egrep '^Target' | awk '{aaa=2;print $aaa;exit}' | sed 's/-[a-zA-Z]\+//g'`
	if [ "$GCCVER" == "i486" ]
	then
		export HOSTTYPE="i386"
	fi
fi
CELL=`uname -p | grep "Cell"`
CYGWIN=`uname -s | grep "CYGWIN"`
LINUX=`uname -s | grep "Linux"`
MAC=`uname -s | grep "Darwin"`
MACHINE=`uname -m`
# Set Eos host type
case $HOSTTYPE in
	"alpha")
		if [ $OSTYPE = "Linux" ]
		then
			case $HOSTNAME in
				jerico)
					export EOS_HOST=alphaLinux
					export EOS_HOSTDIR=ALPHALINUX
					;;
				*) 
					export EOS_HOST=alphaLinux5
					export EOS_HOSTDIR=ALPHALINUX5
					;;
			esac
		else
			if [ $OSTYPE = "OSF1" ]
			then
				export EOS_HOST=alphaOSF1
				export EOS_HOSTDIR=ALPHAOSF1
			fi	
		fi
		;;
	"hp9000s700")
		export EOS_HOST=hpux
		export EOS_HOSTDIR=HP
		;;
	"mips")
		export EOS_HOST=sgi
		export EOS_HOSTDIR=SGI
		;;
	"i386")
		echo $P4
		if [ -z "$P4" ]
		then
			if [ ! -z "$MAC" ] 
			then 
				export EOS_HOST=i386Mac
				export EOS_HOSTDIR=I386MAC
			elif [ ! -z "$LINUX" ] 
			then
				export EOS_HOST=i386Linux
				export EOS_HOSTDIR=I386LINUX
			fi
		else
			export EOS_HOSTDIR=I686LINUX
			export EOS_HOST=i686Linux
		fi
		;;
	"i686")
		if [ -z "$P4" ] ;
		then
			if [ -z "$CYGWIN" ] 
			then
				export EOS_HOST=i386Linux
				export EOS_HOSTDIR=I386LINUX
			else
				export EOS_HOST=i386Cygwin
				export EOS_HOSTDIR=I386CYGWIN
			fi
		else
			export EOS_HOSTDIR=I686LINUX
			export EOS_HOST=i686Linux
		fi
		;;
	"i586")
		if [ -z "$P4" ] ;
		then
			export EOS_HOST=i386Linux
			export EOS_HOSTDIR=I386LINUX
		else
			export EOS_HOSTDIR=I686LINUX
			export EOS_HOST=i686Linux
		fi
		;;
	"i486")
		if [ -z "$P4" ] ;
		then
			export EOS_HOST=i386Linux
			export EOS_HOSTDIR=I386LINUX
		else
			export EOS_HOSTDIR=I686LINUX
			export EOS_HOST=i686Linux
		fi
		;;
	"x86_64")
		echo $P4
		if [ -z "$P4" ]
		then
			if [ ! -z "$MAC" ] 
			then 
				export EOS_HOST=x86Mac64
				export EOS_HOSTDIR=X86MAC64
			elif [ ! -z "$LINUX" ] 
			then
				export EOS_HOST=x86Linux64
				export EOS_HOSTDIR=X86LINUX64
			fi
		else
			export EOS_HOST=x86Linux64
			export EOS_HOSTDIR=X86LINUX64
		fi
		export CUDA_LIB_64=64
		;;
	"sparc")
		export EOS_HOST=sparc
		export EOS_HOSTDIR=sparc
		;;
	"powerpc")
		if [ -z "$CELL" ] ;
		then
			if [ -z "$MAC" ]; then
				export EOS_HOST=ppc64Linux
				export EOS_HOSTDIR=PPC64LINUX
			else 
				export EOS_HOST=ppcMac
				export EOS_HOSTDIR=ppcMac
			fi
		else
			export EOS_HOST=cellLinux64
			export EOS_HOSTDIR=CELLLINUX64
		fi
		;;
esac
# Set Display2 Home
export DISPLAY2_HOME=$EOS_HOME/bin/wish

# Set PATH
EOS_HOME_BIN=$EOS_HOME/bin
EOS_HOME_SBIN=$EOS_HOME/sbin
EOS_HOSTDIR_BIN=$EOS_HOME/sbin:$EOS_HOME/util/$EOS_HOSTDIR/bin
CK_EOS_HOME_BIN=$(echo $PATH | grep $EOS_HOME_BIN)
CK_EOS_HOME_SBIN=$(echo $PATH | grep $EOS_HOME_SBIN)
CK_EOS_HOSTDIR_BIN=$(echo $PATH | grep $EOS_HOSTDIR_BIN)
if [ -z "$CK_EOS_HOSTDIR_BIN" -a -d $EOS_HOSTDIR_BIN ];then
	export PATH=$EOS_HOSTDIR_BIN:$PATH
fi
if [ -z "$CK_EOS_HOME_SBIN" -a -d $EOS_HOME_SBIN ];then
	export PATH=$EOS_HOME_SBIN:$PATH
fi
if [ -z "$CK_EOS_HOME_BIN" -a -d $EOS_HOME_BIN ];then
	export PATH=$EOS_HOME_BIN:$PATH
fi

#CVS
export EOS_CVSROOT=:pserver:tacyas@Eos.yasunaga-lab.bse.kyutech.ac.jp:/CVS_DB
export EOS_SOURCEFORGE=cvs.sourceforge.jp:/cvsroot/eos

# PVM
export PVM_ROOT=$EOS_HOME/util/srcAny/pvm3
export XPVM_ROOT=$EOS_HOME/util/srcAny/pvm3/xpvm
export PVM_RSH=/usr/bin/ssh
if [ -d $PVM_ROOT ]; then
	if [ -x $PVM_ROOT/lib/pvmgetarch ] ;
	then
		export PVM_ARCH=`$PVM_ROOT/lib/pvmgetarch`
	fi
fi
export PVM_PATH=$PATH
if [ -d $PVM_ROOT ]; then
	export PVM_MAN=$PVM_ROOT/man
fi
export MANPATH=$MANPATH:$PVM_MAN
export PVM_WD=/tmp
PVM_ROOT_LIB=$PVM_ROOT/lib
CK_PVM_ROOT_LIB=$(echo $PATH | grep $PVM_ROOT_LIB)
if [ -z "$CK_PVM_ROOT_LIB" -a -d $PVM_ROOT_LIB ]; then
	export PATH=$PATH:$PVM_ROOT_LIB
fi
PVM_ROOT_BIN=$PVM_ROOT/bin
CK_PVM_ROOT_BIN=$(echo $PATH | grep $PVM_ROOT_BIN)
if [ -z "$CK_PVM_ROOT_BIN" -a -d $PVM_ROOT_BIN ]; then
	export PATH=$PATH:$PVM_ROOT_BIN
fi
if [ -d /opt/intel/compiler70/ia32/lib ]; then
	if [ ! -z "$LD_LIBRARY_PATH" ]; then
		export LD_LIBRARY_PATH=/opt/intel/compiler70/ia32/lib:$LD_LIBRARY_PATH
	else
		export LD_LIBRARY_PATH=/opt/intel/compiler70/ia32/lib
	fi
fi
if [ -d $EOS_HOME/util/$EOS_HOSTDIR/lib ]; then
	if [ ! -z "$LD_LIBRARY_PATH" ]; then
		export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib:$LD_LIBRARY_PATH
	else
		export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib
	fi
fi
if [ -d $EOS_HOME/util/$EOS_HOSTDIR/lib/vtk ]; then
	if [ ! -z "$LD_LIBRARY_PATH" ]; then
		export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib/vtk:$LD_LIBRARY_PATH
	else
		export LD_LIBRARY_PATH=$EOS_HOME/util/$EOS_HOSTDIR/lib/vtk
	fi
fi
if [ -d $EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib ]; then
	if [ ! -z "$LD_LIBRARY_PATH" ]; then
		export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib:$LD_LIBRARY_PATH
	else
		export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib
	fi
fi
if [ -d $EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk ]; then
	if [ ! -z "$LD_LIBRARY_PATH" ]; then
		export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk:$LD_LIBRARY_PATH
	else
		export LD_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk
	fi
fi
#echo ".Eos_env(1):$LD_LIBRARY_PATH"

if [ -z "$CUDA_ROOT" ];
then
	CUDA_ROOT=$EOS_HOME/util/$EOS_HOSTDIR/cuda
	if [ -d "$CUDA_ROOT" ] ;
	then
		export CUDA_ROOT
		export PATH=$CUDA_ROOT/cudaprof/bin:$CUDA_ROOT/bin:$PATH
		if [ ! -z "$LD_LIBRARY_PATH" ]; then
			export LD_LIBRARY_PATH=$CUDA_ROOT/lib$CUDA_LIB_64:$LD_LIBRARY_PATH
		else
			export LD_LIBRARY_PATH=$CUDA_ROOT/lib$CUDA_LIB_64
		fi
	fi
else
    OIFS=$IFS
    IFS=":"
    read k v < <(echo "$LD_LIBRARY_PATH" | egrep "$CUDA_ROOT" )
    IFS=$OIFS
#	echo "()k=$k"
#	echo "v=$v"
	if [ -z "$k" ];
	then
		export CUDA_ROOT
		export PATH=$CUDA_ROOT/cudaprof/bin:$CUDA_ROOT/bin:$PATH
		if [ ! -z "$LD_LIBRARY_PATH" ]; then
			export LD_LIBRARY_PATH=$CUDA_ROOT/lib$CUDA_LIB_64:$LD_LIBRARY_PATH
		else
			export LD_LIBRARY_PATH=$CUDA_ROOT/lib$CUDA_LIB_64
		fi
	fi
fi

export TCL_LIBRARY=
#echo ".Eos_env(2):$LD_LIBRARY_PATH"
#
# ATI Stream SDK
#
if [ -z "$ATISTREAMROOT" ];
then
	ATISTREAMROOT=$EOS_HOME/util/$EOS_HOSTDIR/ati-stream-sdk/
	if [ -d "$ATISTREAMROOT" ];
	then
		export ATISTREAMROOT
		source $ATISTREAMROOT/.bash_profile
	fi
else
    OIFS=$IFS
    IFS=":"
    read k v < <(echo "$LD_LIBRARY_PATH" | egrep "$ATISTREAMSDKROOT" )
    IFS=$OIFS
#	echo "()k=$k"
#	echo "v=$v"
	if [ -z "$k" ];
	then
		if [ -d "$ATISTREAMROOT" ];
		then
			export ATISTREAMROOT
			source $ATISTREAMROOT/.bash_profile
		fi
	fi
fi
#echo ".Eos_env(3):$LD_LIBRARY_PATH"
#
# libgfortran
#
if [ -z "$LD_LIBGFORTRAN" ];
then
	LIBGFORTRANSETUPDIR=$HOME/.gfortran/x86_64/suse
	LIBGFORTRANSETUPFILE=( $LIBGFORTRANSETUPDIR/setlibfortranpath.sh )
	if [ -d "$LIBGFORTRANSETUPDIR" -a -f "$LIBGFORTRANSETUPFILE" ];
	then
		export LD_LIBGFORTRANS=( $( $LIBGFORTRANSETUPFILE ) )
		for LD_LIBGFORTRAN in ${LD_LIBGFORTRANS[@]}
		do
			if [ ! -z "$LD_LIBRARY_PATH" ]; then
				export LD_LIBRARY_PATH=$LD_LIBGFORTRAN:$LD_LIBRARY_PATH
			else
				export LD_LIBRARY_PATH=$LD_LIBGFORTRAN
			fi
		done
	fi
else
    OIFS=$IFS
    IFS=":"
    read k v < <(echo "$LD_LIBRARY_PATH" | egrep "$LD_LIBGFORTRAN" )
    IFS=$OIFS
#	echo "()k=$k"
#	echo "v=$v"
	if [ -z "$k" ];
	then
		if [ ! -z "$LD_LIBRARY_PATH" ]; then
			export LD_LIBRARY_PATH=$LD_LIBGFORTRAN:$LD_LIBRARY_PATH
		else
			export LD_LIBRARY_PATH=$LD_LIBGFORTRAN
		fi
	fi
fi
#echo ".Eos_env(4):$LD_LIBRARY_PATH"
if [ -f $EOS_HOME/.acmlg/.bashrc ]; then
	source $EOS_HOME/.acmlg/.bashrc
fi
ICC_ROOT=/opt/intel/Compiler/11.1/072
if [ -d $ICC_ROOT ]; then
	DIRNAMES=($( find $ICC_ROOT -name 'icc' | sed 's/\// /g' ))
	DIRNAMES_INDEX=$(expr ${#DIRNAMES[*]} - 2)
	ICCVARS_ARG1=${DIRNAMES[$DIRNAMES_INDEX]}
#echo $ICCVARS_ARG1
	ICCVARS=$ICC_ROOT/bin/iccvars.sh
	if [ -d $ICC_ROOT -a -f $ICCVARS ]; then
		source $ICCVARS $ICCVARS_ARG1
	fi
fi

export TCL_LIBRARY=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/tcl8.4
export DYLD_FALLBACK_LIBRARY_PATH=$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib:$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk:$DYLD_FALLBACK_LIBRARY_PATH 
export LD_LIBRARY_PATH=/opt/intel/compiler70/ia32/lib:$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib:$EOS_HOME/hostdepend/$EOS_HOSTDIR/util/$EOS_HOSTDIR/lib/vtk:$LD_LIBRARY_PATH

Update of Eos

Eos itself is updated day by day. The entity of Eos can be downloaded from SourceForge.JP currently. If you access GIT, use it because Eos can be downloaded from GIT