<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I tested siteconfig_lapw on a live USB stick [
<a class="moz-txt-link-freetext" href="http://www.democritos.it/pipermail/xcrysden/2017-December/001902.html">http://www.democritos.it/pipermail/xcrysden/2017-December/001902.html</a>
].</p>
<p>Does pwd return the location of where WIEN2k was installed?<br>
</p>
<p>ubuntu@ubuntu:~$ cd $WIENROOT<br>
ubuntu@ubuntu:~/WIEN2k$ pwd<br>
/home/ubuntu/WIEN2k</p>
<p>Does the WIEN2k_INSTALLDATE file exist?<br>
</p>
<p>ubuntu@ubuntu:~/WIEN2k$ ls WIEN2k_INSTALLDATE<br>
WIEN2k_INSTALLDATE</p>
<p>I don't have tcsh installed yet, such that csh with
siteconfig_lapw seems to be working fine:<br>
</p>
ubuntu@ubuntu:~/WIEN2k$ lsb_release -a<br>
No LSB modules are available.<br>
Distributor ID: Ubuntu<br>
Description: Ubuntu 16.04.3 LTS<br>
Release: 16.04<br>
Codename: xenial<br>
ubuntu@ubuntu:~/WIEN2k$ cat WIEN2k_VERSION<br>
WIEN2k_17.1 (Release 30/6/2017)<br>
ubuntu@ubuntu:~/WIEN2k$ tcsh<br>
The program 'tcsh' is currently not installed. You can install it by
typing:<br>
sudo apt install tcsh<br>
ubuntu@ubuntu:~/WIEN2k$ sudo apt-cache policy csh<br>
csh:<br>
Installed: 20110502-2.1ubuntu1<br>
Candidate: 20110502-2.1ubuntu1<br>
Version table:<br>
*** 20110502-2.1ubuntu1 500<br>
500 <a class="moz-txt-link-freetext" href="http://archive.ubuntu.com/ubuntu">http://archive.ubuntu.com/ubuntu</a> xenial/universe amd64
Packages<br>
100 /var/lib/dpkg/status<br>
<p>ubuntu@ubuntu:~/WIEN2k$ ./siteconfig<br>
<br>
<br>
***********************************************************************<br>
* WIEN
2k *<br>
* site
configuration *<br>
***********************************************************************<br>
<br>
This is the first time that you install WIEN2k on this
computer. Please <br>
follow the subsequent steps to set up WIEN2k. <br>
<br>
<br>
ifort: Command not found.<br>
It seems you do not have the intel fortran compiler in your path.<br>
You need a f90 compiler for the installation of WIEN2k and:<br>
a) you have another f90 compiler installed and in your path.
Continue ...<br>
b) you have ifort installed, but it is not in your path.<br>
STOP and put two lines like: <br>
source /path_where_compiler_is_installed/ifortvars.(c)sh
intel64|ia32<br>
(source
/path_where_compiler_is_installed/mklvars{em64t|32}.(c)sh) for
earlier ifort versions<br>
into your .bashrc | .cshrc startup file.<br>
c) STOP and install ifort+mkl for your platform (or an alternate
compiler)<br>
<br>
continue or stop (c/s) <br>
</p>
<div class="moz-cite-prefix">On 1/22/2018 9:22 PM, Sourav Dey wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAK4dvw7qYkhx0-TaS=hcu3T__oFjBZdh+1eiYuxk7Noydrsshg@mail.gmail.com">
<div dir="ltr">
<table style="font-family:"comic sans ms",sans-serif"
cellspacing="0" cellpadding="0" align="center" width="100%"
border="0">
<tbody>
<tr>
<td style="font-family:"comic sans
ms",sans-serif;font-size:10pt">
<table cellspacing="0" cellpadding="1" bgcolor="#ababab"
align="center" width="100%" border="0">
<tbody>
<tr>
<td style="font-family:"comic sans
ms",sans-serif;font-size:10pt">
<table cellspacing="0" cellpadding="3"
align="center" width="100%" border="0">
<tbody>
<tr bgcolor="#ffffff">
<td style="font-family:"comic sans
ms",sans-serif;font-size:10pt">
<table cellspacing="5" cellpadding="1"
align="left" border="0">
<tbody>
<tr>
<td style="font-family:"comic
sans
ms",sans-serif;font-size:10pt"
align="left">
<pre style="font-size:9pt">Dear MrGavin Abo,
Thank you for your suggestions. As per your guidelines, I have set the
LC_NUMERIC=en_US.UTF-8 in the locale settings. If I type locale from
terminal now, it shows the following.
LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_US.UTF-8
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT=en_US.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
After fixing this issue, I tried to run the command "./siteconfig_lapw"
from terminal. It still shows the same error.
"If: Expression Syntax".
I typed the command "csh -v siteconfig_lapw" from terminal in WIENROOT
directory. It shows the following.
unalias rm
set name = $0
set bin = $name:h
if ! ( -d $bin ) set bin = .
cd $bin
set bin = `pwd`
alias define_installdate 'date >$bin/WIEN2k_INSTALLDATE'
alias wait 'echo "";echo " Press RETURN to continue";' 'set yn = ($<)'
alias update_makefiles 'sed -e "s^_FOPT_^$FOPT^" < Makefile.orig |\\
sed -e "s^_FOPT_^$FOPT^" |\\
sed -e "s^_FPOPT_^$FPOPT^" |\\
sed -e "s^_LDFLAGS_^$LDFLAGS^" |\\
sed -e "s^_DPARALLEL_^$DPARALLEL^" |\\
sed -e "s^_R_LIBS_^$R_LIBS^" |\\
sed -e "s^_RP_LIBS_^$RP_LIBS^" |\\
sed -e "s^_SCALAPACKROOT_^$SCALAPACKROOT^" |\\
sed -e "s^_SCALAPACK_LIBNAME_^$SCALAPACK_LIBNAME^" |\\
sed -e "s^_BLACSROOT_^$BLACSROOT^" |\\
sed -e "s^_BLACS_LIBNAME_^$BLACS_LIBNAME^" |\\
sed -e "s^_MKL_TARGET_ARCH_^$MKL_TARGET_ARCH^" |\\
sed -e "s^_LIBXCROOT_^$LIBXCROOT^" |\\
sed -e "s^_LIBXC_LIBNAME_^$LIBXC_LIBNAME^" |\\
sed -e "s^_LIBXC_FORTRAN_^$LIBXC_FORTRAN^" |\\
sed -e "s^_FFTW_VERSION_^$FFTW_VERSION^" |\\
sed -e "s^_FFTWROOT_^$FFTWROOT^" |\\
sed -e "s^_FFTW_LIB_^$FFTW_LIB^" |\\
sed -e "s^_FFTW_LIBNAME_^$FFTW_LIBNAME^" |\\
sed -e "s^_ELPAROOT_^$ELPAROOT^" |\\
sed -e "s^_ELPA_VERSION_^$ELPA_VERSION^" |\\
sed -e "s^_FC_^$f77^" |\\
sed -e "s^_MPF_^$MPF^" |\\
sed -e "s^_CC_^$c77^"> Makefile'
set FC ; set MPF ; set CC
set FOPT ; set R_FOPT ; set FPOPT ; set R_FPOPT
set LDFLAGS ; set R_LDFLAGS
set DPARALLEL ; set R_DPARALLEL
set R_LIBS ; set R_R_LIBS ; set RP_LIBS ; set R_RP_LIBS
if ( ! $?MKLROOT ) set MKLROOT
set FFTWROOT ; set FFTW_LIB ; set FFTW_LIBNAME ; set FFTW_VERSION
set LIBXCROOT ; set LIBXC_FORTRAN ; set LIBXC_LIBNAME
set SCALAPACKROOT ; set SCALAPACK_LIBNAME ; set BLACSROOT ; set BLACS_LIBNAME
set MKL_TARGET_ARCH
set ELPAROOT ; set ELPA_VERSION
set remote = ssh
unset mpi
set MPIRUN
set R_MPIRUN
set CORES_PER_NODE = 1
set recompile
unset firstinstall
unset suggestall
unset compiled
set libxcconf = 'false'
set counter = 0
set nextlist = ( intro system compiler compopts2 parallel dimension
recompile perl tmp_dir bye )
set name = $name:t
set logfile = :log
set test=`printf "%5.3f \n" 0.15 | grep , |wc`
if ( $test[1] != 0 ) then
main:
if ( -e $bin/WIEN2k_INSTALLDATE ) then
if: Expression Syntax.
I guess, there is some problem with the last if statement. Kindly help me
fix this issue.
Best regards,
--
Sourav Kumar Dey
Senior Research Fellow
Applied Nuclear Physics Division
Saha Institute of Nuclear Physics
Kolkata-700064
Tel.:033 2337 1337/1333(lab)</pre>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<br>
</blockquote>
</body>
</html>