<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>In the terminal, type the command [1]: locale<br>
</p>
Is LC_NUMERIC set to en_US.UTF-8? If Linux is installed with a
language other than English, the WIEN2k scripts like siteconfig_lapw
sometimes don't run properly.<br>
<br>
The "if: Expression Syntax" can happen if one side of the operator
in an if statement is passed a bad value [2]. The siteconfig_lapw
has many if statements. So you should try to narrow down which of
the if statements is causing your particular issue:<br>
<br>
After running ./siteconfig_lapw, check the terminal to see if it
shows anything before or after the "if: Expression Syntax" error,
because any input or output that occurs at that time should help
pinpoint where the problem occurs. If nothing is shown in the
terminal, you could also try to get more information so that you
could troubleshoot the problem by using the verbose switch (-v) with
the script [3]; for example using a terminal command while in the
$WIENROOT directory [4,5]:<br>
<br>
csh -v siteconfig_lapw<br>
<br>
[1] <a class="moz-txt-link-freetext" href="https://help.ubuntu.com/community/Locale">https://help.ubuntu.com/community/Locale</a><br>
[2]
<a class="moz-txt-link-freetext" href="https://www.linuxquestions.org/questions/programming-9/if-expression-syntax-error-in-csh-if-statement-4175412232/">https://www.linuxquestions.org/questions/programming-9/if-expression-syntax-error-in-csh-if-statement-4175412232/</a><br>
[3]
<a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg15011.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg15011.html</a>
<br>
[4]
<a class="moz-txt-link-freetext" href="https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg12468.html">https://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/msg12468.html</a><br>
[5]
<a class="moz-txt-link-freetext" href="https://unix.stackexchange.com/questions/50275/how-to-debug-csh-scripts">https://unix.stackexchange.com/questions/50275/how-to-debug-csh-scripts</a><br>
<br>
<div class="moz-cite-prefix">On 1/19/2018 2:36 AM, Sourav Dey wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAK4dvw75Z600Mibevxjs-xvYXaJjVKgY2fSCYXBxCoKNS2BEAg@mail.gmail.com">
<div dir="ltr"> <font size="4"><br>
</font>
<pre><font size="4">Dear Prof. Blaha and Prof. Schwarz,
I have downloaded the WIEN2k 17.1 code and am trying to install it in a
Ununtu 16.04 LTS version desktop. The hardware configuration is : intel
i5 quadcore processor, 1TB hardisk and 8 GB RAM. I have installed
gfortran compiler and csh in Ubuntu. I am getting an error "if:
Expression Syntax." while running the command "./siteconfig_lapw". I
could not proceed further. Kindly help me to resolve the issue regarding
the installation of the code.
Best regards,
Sourav Kumar Dey
Research Fellow
Applied Nuclear Physics Division
Saha Institute of Nuclear Physics
Kolkata-700064, India
</font></pre>
</div>
</blockquote>
<br>
</body>
</html>