Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
first post here & im fairly new to linux - so i appricate your patience :-)
im having some difficulty installing Gaussian on a new Headnode using Rocks6.2, i have got the gaussian .tgz file extracted in my "gaussian" dir following the below instructions from a few difference sources:
i have the extracted "g09" file in /export/home/user1/gaussian/g09
i am doing this as "user1" (but have also had the same issue as root) im very stuck and trying to compile (step 9) using the source command
i'm suspecting there is some issue with the .login and .profile files, when i open these files with a text editor im not sure where to put in the environment variables.
i get the error:
[user1@test1 bsd]$ source g09.login
-bash: g09.login: line 26: syntax error near unexpected token `setenv'
-bash: g09.login: line 26: `if (! $?PGI ) setenv PGI /usr/pgi'
[user1@test1 bsd]$
"You are now ready to run. Users will want to add the following to their .login or .profile file:
# .login commands
setenv g09root "dir"
setenv GAUSS_SCRDIR "sdir"
source $g09root/g09/bsd/g09.login
# .profile commands
g09root="dir"
GAUSS_SCRDIR="sdir"
export g09root GAUSS_SCRDIR
. $g09root/g09/bsd/g09.profile
"
but i dont how i am to arrange this in the .login file i have:
Code:
#
# These commands set up for use of Gaussian 09. They should be source'd
# into each Gaussian 09 user's .login file, after setting the following
# environment variable:
#
# g09root -- Directory which contains the g09 main directory. Defaults
# to users's home directory if not defined before entry.
#
# Top directories for the program:
#
if ($?g09root) then
set gr="$g09root"
else
set gr="$HOME"
endif
setenv GAUSS_EXEDIR "$gr/g09/bsd:$gr/g09/local:$gr/g09/extras:$gr/g09"
setenv GAUSS_LEXEDIR "$gr/g09/linda-exe"
setenv GAUSS_ARCHDIR "$gr/g09/arch"
setenv GAUSS_BSDDIR "$gr/g09/bsd"
setenv GV_DIR "$gr/gv"
if (-e $GV_DIR/gview.app) then
alias gv 'open $GV_DIR/gview.app'
else
alias gv "$GV_DIR/gview.csh"
endif
if (! $?PGI ) setenv PGI /usr/pgi
if (! $?PGIDIR ) then
foreach y (linux86-64 linux86)
foreach x (11.10 11.8 11.6 11.5 10.5 9.0-4 8.0-6 7.2-5 7.1-5 7.1-4 7.1-3 7.1-2 7.1-1)
if (-e ${PGI}/$y/$x) then
setenv PGIDIR ${PGI}/$y/$x
goto PGIDONE
endif
end
end
setenv PGIDIR $PGI/unknown
PGIDONE:
endif
if ($?PATH) then
setenv PATH "${PATH}:$GAUSS_EXEDIR"
else
setenv PATH "$GAUSS_EXEDIR"
endif
if ($?PERL5LIB) then
setenv PERL5LIB "${PERL5LIB}:$gr/g09/bsd"
else if ($?PERLLIB) then
setenv PERLLIB "${PERLLIB}:$gr/g09/bsd"
else
setenv PERLLIB "$gr/g09/bsd"
endif
rehash
setenv _DSM_BARRIER SHM
setenv _RLD_ARGS "-log /dev/null"
if ($?LD_LIBRARY64_PATH) then
setenv LD_LIBRARY64_PATH "${GAUSS_EXEDIR}:${GV_DIR}/lib:${LD_LIBRARY64_PATH}"
endif
if ($?LD_LIBRARY_PATH) then
# gv lib has to be at end for IA64 otherwise IA32 .so files there confuse things
setenv LD_LIBRARY_PATH "${GAUSS_EXEDIR}:${LD_LIBRARY_PATH}:${GV_DIR}/lib"
else
setenv LD_LIBRARY_PATH "${GAUSS_EXEDIR}:${GV_DIR}/lib"
endif
#
# Environment variables pointing to the standard directories.
#
setenv G09BASIS "$gr/g09/basis"
set gman="$gr/g09/bsd"
if ($?MANPATH) then
setenv MANPATH "${gman}:$MANPATH"
endif
alias sl "$gr/g09/tests/searchlog.csh"
#
# Set up for compiling and debugging of Gaussian 09:
#
set mname = "`set-mflags x`"
set mflags = "`set-mflags`"
alias mg "$mname -f bsd/g09.make $mflags"
if (-e $g09root/g09/bsd/setup-make) then
source $g09root/g09/bsd/setup-make
endif
if (-e "`which gau-machine`") then
set mach = "`gau-machine`"
else
set mach = "unknown"
endif
if ("$mach" == "necsx") then
# The following is needed for the NEC
setenv F_ERROPT1 271,271,2,1,2,2,2,2
setenv OMP_NUM_THREADS 1
setenv F_ERROPT2 0,999,1,1,1,1,2,2
setenv F_SYSLEN 1024
else if ("$mach" == "sgi") then
setenv _RLD_ARGS "-log /dev/null"
# for sgi debugging
# setenv TRAP_FPE "DEBUG;OVERFL=ABORT;DIVZERO=ABORT;INVALID=ABORT;INT_OVERFL=ABORT"
setenv TRAP_FPE "OVERFL=ABORT;DIVZERO=ABORT;INT_OVERFL=ABORT"
setenv MP_STACK_OVERFLOW OFF
else if ("$mach" == "ia64") then
# setenv MALLOC_CHECK_ 2
# The following is to avoid weirdness with Intel's MKL library on IA64:
setenv KMP_STACKSIZE 20971520
setenv KMP_AFFINITY disabled
set ldplace = "`which dplace`"
if (! $status) then
setenv GAUSS_DPLACE "1"
endif
unsetenv LD_ASSUME_KERNEL
else if ("$mach" == "crayx1") then
# avoid small heap limit on Cray X1
setenv X1_LOCAL_HEAP_SIZE '0xbff7000000'
else if ("$mach" == "ibm_rs6k_linux") then
# fix LD_LIBRARY_PATH so that the Linda workers can start
if ($?LD_LIBRARY_PATH) then
setenv LD_LIBRARY_PATH "/opt/ibmcmp/lib64:${LD_LIBRARY_PATH}"
else
setenv LD_LIBRARY_PATH "/opt/ibmcmp/lib64"
endif
endif
setenv PGI_TERM "trace,abort"
set xtmp = "$gr/g09/tests/search.csh"
alias ss "$xtmp log ia64"
alias si "$xtmp log ibm"
set unl = "$gr/g09/bsd/gau-unlimit"
if (-e $unl) then
source $unl
else
echo "g09.login warning: $unl not found"
endif
unset gr
unset gman
unset xtmp
and the g09.profile file:
Code:
#
# These commands set up for use of Gaussian 09. They should be source'd
# into each Gaussian 09 user's .login file, after setting the following
# environment variable:
#
# g09root -- Directory which contains the g09 main directory. Defaults
# to users's home directory if not defined before entry.
#
# Top directories for the program:
#
gr=$HOME
if [ "$g09root" ]
then gr=$g09root
fi
export GAUSS_EXEDIR="$gr/g09/bsd:$gr/g09/local:$gr/g09/extras:$gr/g09"
export GAUSS_LEXEDIR="$gr/g09/linda-exe"
export GAUSS_ARCHDIR="$gr/g09/arch"
export GAUSS_BSDDIR="$gr/g09/bsd"
export GV_DIR="$gr/gv"
if [ -e "$GV_DIR/gview.app" ]; then
alias gv='open $GV_DIR/gview.app'
else
alias gv="$GV_DIR/gview.csh"
fi
if [ "$PATH" ]; then
export PATH="$PATH:$GAUSS_EXEDIR"
else
export PATH="$GAUSS_EXEDIR"
fi
export _DSM_BARRIER="SHM"
if [ "$LD_LIBRARY64_PATH" ]; then
export LD_LIBRARY64_PATH="$GAUSS_EXEDIR:$GV_DIR/lib:$LD_LIBRARY64_PATH"
else
if [ "$LD_LIBRARY_PATH" ]; then
# gv lib has to be at end for IA64 otherwise IA32 .so files there confuse things
export LD_LIBRARY_PATH="$GAUSS_EXEDIR:$LD_LIBRARY_PATH:$GV_DIR/lib"
else
export LD_LIBRARY_PATH="$GAUSS_EXEDIR:$GV_DIR/lib"
fi
fi
export G09BASIS="$gr/g09/basis"
alias sl="$gr/g09/tests/searchlog.csh"
mach="$(gau-machine)"
if [ "$mach" = "necsx" ]; then
export F_ERROPT1="271,271,2,1,2,2,2,2"
export OMP_NUM_THREADS="1"
export F_ERROPT2="0,999,1,1,1,1,2,2"
export F_SYSLEN="1024"
fi
if [ "$mach" = "sgi" ]; then
export _RLD_ARGS="-log /dev/null"
export TRAP_FPE="OVERFL=ABORT;DIVZERO=ABORT;INT_OVERFL=ABORT"
export MP_STACK_OVERFLOW="OFF"
fi
if [ "$mach" = "ia64" ]; then
# The following is to avoid weirdness with Intel's MKL library on IA64:
export KMP_STACKSIZE="20971520"
export KMP_AFFINITY="disabled"
place="`which dplace`"
if [ "$?" == 0 ] ; then
export GAUSS_DPLACE="1"
fi
fi
if [ "$mach" = "crayx1" ]; then
# avoid small heap limit on Cray X1
export X1_LOCAL_HEAP_SIZE='0xbff7000000'
fi
if [ "$mach" = "ibm_rs6k_linux" ]; then
# fix LD_LIBRARY_PATH so that the Linda workers can start
export LD_LIBRARY_PATH="/opt/ibmcmp/lib64:$LD_LIBRARY_PATH"
fi
export PGI_TERM='trace,abort'
ulimit -c 0
ulimit -d hard
ulimit -f hard
ulimit -l hard
ulimit -m hard
ulimit -n hard
ulimit -s hard
ulimit -t hard
ulimit -u hard
i fear the problem could be to do with the dir or the environment vars or ownership? sorry if this is an easy problem.. any help would be MUCH appreciated!
Apparently, "setenv" does not belong in that position in the line. I'm not a great programmer, though, and I don't know what Gaussian is, but maybe this can help track it down.
This may be a long shot but I see rocks is based on centos. Centos run selinux. So,
Lets see if selinux is running
Code:
getenforce
If it is,
try using gausian after
Code:
setenforce permissive
If it works, we know it is an selinux problem. If it is you can create custom rules to allow it. But please check and report back after setting selinux to permissive.
If that did not work, remember to set selinux to what it was before.
Options for setenforce are
disable
permissive
enforcing
Last edited by ericson007; 12-01-2015 at 08:59 AM.
"You are now ready to run. Users will want to add the following to their .login or .profile file:
It's unfortunate that the documentation doesn't state this clearly, but it looks like g09.login is meant for users of csh (and derivatives), while g09.profile is meant for sh (and derivatives like bash). Since you're using bash, you should only source g09.profile, not g09.login.
This may be a long shot but I see rocks is based on centos. Centos run selinux. So,
Lets see if selinux is running
Code:
getenforce
If it is,
try using gausian after
Code:
setenforce permissive
If it works, we know it is an selinux problem. If it is you can create custom rules to allow it. But please check and report back after setting selinux to permissive.
If that did not work, remember to set selinux to what it was before.
Options for setenforce are
disable
permissive
enforcing
Thanks for the reply, getenforce give me back "Disabled"
Ok, so what i have done is created a new install of Rock6.2 (CentOS 6.6) on a VM and im going to try and work out all the bugs with installing gaussian/linda before i attempt it on the actual cluster hardware.
what i have attempted so far is:
created a new install and loged in as root, and have also created a user called "user2". loged in as root =>
Quote:
#groupadd -g 497 gaussian
#usermod -a G gaussian root
usermod: no changes
#usermod -a G gaussian user2
usermod: no changes
i have unpacked the gaussian.tgz file and it in dir as a folder named "g09": /root/Desktop/DATA1/Gaussian09D_Intel/tar/g09
then installed:
in the g09 directory:
Quote:
# ./bsd/install
install completed successfully
So my question is this: do i need to compile anything? it sounds to me like the package already comes complied, if we have a look inside the g09 folder we have:
from what ive read on some of the install documents/web page how to's Gaussian either supplies the source or precompiled binaries.. with the latter, i should just need to set the enviroment variables for the g09 dir, the scratch file etc.
as per the how to (if im modifying the .profile ) im supposed to modify it to represent: (as above posted)
#
# These commands set up for use of Gaussian 09. They should be source'd
# into each Gaussian 09 user's .login file, after setting the following
# environment variable:
#
# g09root -- Directory which contains the g09 main directory. Defaults
# to users's home directory if not defined before entry.
#
# Top directories for the program:
#
gr=$HOME
if [ "$g09root" ]
then gr=$g09root
fi
export GAUSS_EXEDIR="$gr/g09/bsd:$gr/g09/local:$gr/g09/extras:$gr/g09"
export GAUSS_LEXEDIR="$gr/g09/linda-exe"
export GAUSS_ARCHDIR="$gr/g09/arch"
export GAUSS_BSDDIR="$gr/g09/bsd"
export GV_DIR="$gr/gv"
if [ -e "$GV_DIR/gview.app" ]; then
alias gv='open $GV_DIR/gview.app'
else
alias gv="$GV_DIR/gview.csh"
fi
if [ "$PATH" ]; then
export PATH="$PATH:$GAUSS_EXEDIR"
else
export PATH="$GAUSS_EXEDIR"
fi
export _DSM_BARRIER="SHM"
if [ "$LD_LIBRARY64_PATH" ]; then
export LD_LIBRARY64_PATH="$GAUSS_EXEDIR:$GV_DIR/lib:$LD_LIBRARY64_PATH"
else
if [ "$LD_LIBRARY_PATH" ]; then
# gv lib has to be at end for IA64 otherwise IA32 .so files there confuse things
export LD_LIBRARY_PATH="$GAUSS_EXEDIR:$LD_LIBRARY_PATH:$GV_DIR/lib"
else
export LD_LIBRARY_PATH="$GAUSS_EXEDIR:$GV_DIR/lib"
fi
fi
export G09BASIS="$gr/g09/basis"
alias sl="$gr/g09/tests/searchlog.csh"
mach="$(gau-machine)"
if [ "$mach" = "necsx" ]; then
export F_ERROPT1="271,271,2,1,2,2,2,2"
export OMP_NUM_THREADS="1"
export F_ERROPT2="0,999,1,1,1,1,2,2"
export F_SYSLEN="1024"
fi
if [ "$mach" = "sgi" ]; then
export _RLD_ARGS="-log /dev/null"
export TRAP_FPE="OVERFL=ABORT;DIVZERO=ABORT;INT_OVERFL=ABORT"
export MP_STACK_OVERFLOW="OFF"
fi
if [ "$mach" = "ia64" ]; then
# The following is to avoid weirdness with Intel's MKL library on IA64:
export KMP_STACKSIZE="20971520"
export KMP_AFFINITY="disabled"
place="`which dplace`"
if [ "$?" == 0 ] ; then
export GAUSS_DPLACE="1"
fi
fi
if [ "$mach" = "crayx1" ]; then
# avoid small heap limit on Cray X1
export X1_LOCAL_HEAP_SIZE='0xbff7000000'
fi
if [ "$mach" = "ibm_rs6k_linux" ]; then
# fix LD_LIBRARY_PATH so that the Linda workers can start
export LD_LIBRARY_PATH="/opt/ibmcmp/lib64:$LD_LIBRARY_PATH"
fi
export PGI_TERM='trace,abort'
ulimit -c 0
ulimit -d hard
ulimit -f hard
ulimit -l hard
ulimit -m hard
ulimit -n hard
ulimit -s hard
ulimit -t hard
ulimit -u hard
so im a little confused as to where i need to put the g09 directory in the g09.profile? i.e. /root/Desktop/DATA1/Gaussian09D_Intel/tar/g09
I think when they are talking about .profile, they mean the one in the $HOME directory: ~/.profile.
But I'm not sure which one you're talking about? What you posted looks like the same as the g09.profile contents you posted earlier.
Yes, sorry the file is called "g09.profile" and they also reference "g09.login" ... the one i am talking about is g09.profile this is in the /g09 directory.. the contents of g09.profile is what i posted, you are correct... im just unsure how to modify g09.profile to represent what they suggest. i.e where do i put "/root/Desktop/DATA1/Gaussian09D_Intel/tar/g09" in the g09.profile file?
Yes, sorry the file is called "g09.profile" and they also reference "g09.login" ... the one i am talking about is g09.profile this is in the /g09 directory.. the contents of g09.profile is what i posted, you are correct... im just unsure how to modify g09.profile to represent what they suggest. i.e where do i put "/root/Desktop/DATA1/Gaussian09D_Intel/tar/g09" in the g09.profile file?
Don't modify the g09.profile, instead add that stuff to your ~/.profile (if it doesn't exist, then create it). Just ignore g09.login, because that is for csh.
You did not download the version ending with w by any chance?
Does all versions have exe files you must use? Exe files in a linux distro seems a bit odd. But possible. Are you sure you set the executable bit?
i have version M6L-103X and E64-930X .. both of which contain multiple .exe's, from a document i have the format for the "install disk" as Mxx-10yz.tgz as far as i can tell the "xx" is platform, Power PC, 32Mac or 64 Mac, y is version number, and z corresponds to: X stands for G09 binaries, an N would stand for G09 binaries + linda TCP, and an U for G09 utilities.
i dont have any documentation that refers to a "w"... what would a "w" mean?
The version im using in all of this thread is M6L-103X
Last edited by 3BABY; 12-01-2015 at 06:19 PM.
Reason: --
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.