I tested siteconfig_lapw on a live USB stick [ http://www.democritos.it/pipermail/xcrysden/2017-December/001902.html ].

Does pwd return the location of where WIEN2k was installed?

ubuntu@ubuntu:~$ cd $WIENROOT
ubuntu@ubuntu:~/WIEN2k$ pwd
/home/ubuntu/WIEN2k

Does the WIEN2k_INSTALLDATE file exist?

ubuntu@ubuntu:~/WIEN2k$ ls WIEN2k_INSTALLDATE
WIEN2k_INSTALLDATE

I don't have tcsh installed yet, such that csh with siteconfig_lapw seems to be working fine:

ubuntu@ubuntu:~/WIEN2k$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:    xenial
ubuntu@ubuntu:~/WIEN2k$ cat WIEN2k_VERSION
WIEN2k_17.1 (Release 30/6/2017)
ubuntu@ubuntu:~/WIEN2k$ tcsh
The program 'tcsh' is currently not installed. You can install it by typing:
sudo apt install tcsh
ubuntu@ubuntu:~/WIEN2k$ sudo apt-cache policy csh
csh:
  Installed: 20110502-2.1ubuntu1
  Candidate: 20110502-2.1ubuntu1
  Version table:
 *** 20110502-2.1ubuntu1 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
        100 /var/lib/dpkg/status

ubuntu@ubuntu:~/WIEN2k$ ./siteconfig


***********************************************************************
   *                                WIEN 2k                              *
   *                          site configuration                         *
***********************************************************************

   This is the first time that you install WIEN2k on this computer. Please
   follow the subsequent steps to set up WIEN2k.


ifort: Command not found.
It seems you do not have the intel fortran compiler in your path.
You need a f90 compiler for the installation of WIEN2k and:
a) you have another f90 compiler installed and in your path. Continue ...
b) you have ifort installed, but it is not in your path.
   STOP  and  put two lines like:
   source /path_where_compiler_is_installed/ifortvars.(c)sh intel64|ia32
  (source /path_where_compiler_is_installed/mklvars{em64t|32}.(c)sh) for earlier ifort versions
   into your .bashrc | .cshrc startup file.
c) STOP and install ifort+mkl for your platform (or an alternate compiler)

continue or stop (c/s)

On 1/22/2018 9:22 PM, Sourav Dey wrote:
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)


_______________________________________________
Wien mailing list
Wien@zeus.theochem.tuwien.ac.at
http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien
SEARCH the MAILING-LIST at:  
http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html

Reply via email to