Page 1 of 1

problem installing Likelihood

Posted: September 29 2017
by Jaykumar Patel
I am trying to install

./waf install

ERROR:

Code: Select all

[104/109] Linking build/src/clik_example_C
- install /home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/lib/libclik_f90.so (from build/src/libclik_f90.so)
[106/109] Linking build/src/clik_example_f90
- install /home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/lib/libclik.so (from build/src/libclik.so)
src/libclik.so: undefined reference to `curl_easy_setopt'
src/libclik.so: undefined reference to `curl_global_cleanup'
src/libclik.so: undefined reference to `curl_easy_init'
src/libclik.so: undefined reference to `curl_easy_perform'
src/libclik.so: undefined reference to `curl_easy_cleanup'
src/libclik.so: undefined reference to `curl_global_init'
collect2: error: ld returned 1 exit status

src/libclik.so: undefined reference to `curl_easy_setopt'
src/libclik.so: undefined reference to `curl_global_cleanup'
src/libclik.so: undefined reference to `curl_easy_init'
src/libclik.so: undefined reference to `curl_easy_perform'
src/libclik.so: undefined reference to `curl_easy_cleanup'
src/libclik.so: undefined reference to `curl_global_init'
collect2: error: ld returned 1 exit status

Waf: Leaving directory `/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/build'
Build failed
 -> task in 'clik_example_f90' failed (exit status 1): 
	{task 139844676146256: fcprogram clik_example_f90.f90.9.o -> clik_example_f90}
['/usr/bin/gfortran', '-m64', 'src/clik_example_f90.f90.9.o', '-o', '/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/build/src/clik_example_f90', '-Wl,-rpath,/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/lib', '-m64', '', '-Lsrc', '-lclik_f90', '-lclik']
 -> task in 'clik_example_C' failed (exit status 1): 
	{task 139844676072208: cprogram clik_example_c.c.7.o -> clik_example_C}
['/usr/bin/gcc', '-m64', 'src/clik_example_c.c.7.o', '-o', '/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/build/src/clik_example_C', '-Wl,-rpath,/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0/lib', '-Wl,-rpath,/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Lsrc', '-L/home/jay/Desktop/Phys_499/CMB_data/Code_Likehood/likelihood_c_f_code/plc-2.0', '-lclik', '-llapack', '-lblas', '-ldl', '-lcfitsio', '-lgfortran', '-lgomp']

Re: problem installing Likelihood

Posted: May 21 2019
by Alejandro Jaramillo
Hi, i'm having the same problem, did you find a way to solve it? thanks in advance

Re: problem installing Likelihood

Posted: May 21 2019
by Antony Lewis
Is this using the update ?

Re: problem installing Likelihood

Posted: May 21 2019
by Arnab Paul
Hi, I am also facing the same problem, even while using the update.

Re: problem installing Likelihood

Posted: May 25 2019
by Alejandro Jaramillo
I'm having the same problem, it could be solved by compiling with gfort (i.e ./waf configure --gfort) but compiling with gfort instead of ifort gives problems when running the code, so it is necessary to solve this problem, if anyone knows the solution please share with us

(i'm using the update plc too)

Re: problem installing Likelihood

Posted: May 27 2019
by Arnab Paul
Hi Alejandro, I tried configuring with both ifort (15.0.1) and gfortran (7.4.0). The problem during ./waf install persists in both the cases for my desktop. Can you please tell which version of gfortran and which mkl you are using?

(I am using Ubuntu 18.04, gcc 7.4.0 and intel mkl)