<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Times New Roman">In case others encounter the same
problem with installing WIEN2k 18.1.<br>
<br>
</font><font face="Times New Roman">Downloaded libxc-4.2.3.tar.gz
from <a class="moz-txt-link-freetext" href="http://www.tddft.org/programs/libxc/download/">http://www.tddft.org/programs/libxc/download/</a><br>
<br>
Put it in my home directory, then in a terminal did:<br>
</font><br>
<font face="Times New Roman">username@computername:~/Desktop$ cd ~</font><br>
<font face="Times New Roman">username@computername:~$ ls
libxc-4.2.3.tar.gz</font><br>
<font face="Times New Roman">libxc-4.2.3.tar.gz</font><br>
<font face="Times New Roman">username@computername:~$ tar -xvf
libxc-4.2.3.tar.gz</font><br>
<font face="Times New Roman">...</font><br>
<font face="Times New Roman">username@computername:~$ mv libxc-4.2.3
libxc</font><br>
<font face="Times New Roman">username@computername:~$ cd libxc/</font><br>
<font face="Times New Roman">username@computername:~/libxc$
autoreconf -i --force</font><br>
<font face="Times New Roman">...</font><br>
<font face="Times New Roman">username@computername:~/libxc$
./configure FC=ifort CC=cc --prefix=$HOME/libxc</font><br>
<font face="Times New Roman"><font face="Times New Roman">...</font></font><br>
<font face="Times New Roman">username@computername:~/libxc$ make</font><br>
<font face="Times New Roman">...</font><br>
<font face="Times New Roman">username@computername:~/libxc$ make
check</font><br>
<font face="Times New Roman">...</font><br>
<font face="Times New Roman">username@computername:~/libxc$ make
install</font><br>
<br>
I'm using:<font face="Times New Roman"><br>
</font>
<p><font face="Times New Roman"><font face="Times New Roman">username@computername:~/libxc$</font>
lsb_release -a<br>
No LSB modules are available.<br>
Distributor ID: Ubuntu<br>
Description: Ubuntu 18.04 LTS<br>
Release: 18.04<br>
Codename: bionic<br>
</font><font face="Times New Roman"><font face="Times New Roman">username@computername:~/libxc$</font>
arch<br>
x86_64<br>
username@computername:~$ cd $WIENROOT<br>
username@computername:~/WIEN2k$ cat WIEN2k_VERSION<br>
WIEN2k_18.1 (Release 30/6/2018)<br>
</font></p>
<p>When compiling lapw0, I get libxc errors:<br>
</p>
<p>username@computername:~/WIEN2k$ ./siteconfig<br>
...<br>
Selection: R<br>
...<br>
Selection: S<br>
...<br>
Which program to recompile? lapw0<br>
...<br>
-L/home/username/libxc/lib64 -lxcf03 -lxc<br>
ld: cannot find -lxcf03<br>
ld: cannot find -lxc<br>
...<br>
Compile time errors (if any) were:<br>
SRC_lapw0/compile.msg:make[1]: *** [lapw0] Error 1<br>
SRC_lapw0/compile.msg:make: *** [seq] Error 2<br>
...<br>
Selection: Q<br>
...</p>
<p>I found that the libxc library folder in WIEN2k 18.1 is hard
coded in siteconfig_lapw and Makefile to "<font color="#ff0000">lib64</font>"
while it was "lib" in WIEN2k 17.1:<br>
</p>
<p>username@computername:~/WIEN2k$ grep lib64
$WIENROOT/SRC_lapw0/Makefile<br>
LIBXC_LIBS = -L$(LIBXCROOT)<font color="#ff0000">lib64</font>
-l$(LIBXC_FORTRAN) -l$(LIBXC_LIBNAME)</p>
<p>As a workaround, I copied (or renamed) the lib folder created
from the libxc installation to lib64:<br>
</p>
<p>username@computername:~/WIEN2k$ cp -r ~/libxc/lib ~/libxc/lib64<br>
username@computername:~/WIEN2k$ ls ~/libxc/lib64<br>
libxc.a libxcf03.a libxcf03.la libxcf90.a libxcf90.la
libxc.la pkgconfig<br>
</p>
Then, when I recompiled lapw0, the errors were gone:<br>
<br>
username@computername:~/WIEN2k$ ./siteconfig<br>
...<br>
Which program to recompile? lapw0<br>
...<br>
Compile time errors (if any) were:<br>
<p><br>
</p>
</body>
</html>