Need help installing LIS using Anaconda #1742
Unanswered
SasTalukdar
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @SasTalukdar Do you need to run the VIC LSM? If you don't, then can you try to compile LIS without it? Create a LISF/lis/make/user.cfg file containing: Then in the LISF/lis/make directory, run: Then configure and compile as usual. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Has anyone tried installing LIS using the Anaconda environment?
I have installed all the required libraries in a new anaconda environment. Then set environmental variables as follows:
export FC=mpifort
export F77=mpifort
export CC=mpicc
export CXX=mpicxx
export LD=mpifort
export LIS_ARCH=linux_gnu
export LIS_FC=mpifort
export LIS_CC=mpicc
export PATH=/work/09534/st37357/ls6/anaconda/envs/lis-env/mod:$PATH
export PATH=/work/09534/st37357/ls6/anaconda/envs/lis-env/lib:$PATH
export PATH=/work/09534/st37357/ls6/anaconda/envs/lis-env/lib:$PATH
export PATH=/work/09534/st37357/ls6/anaconda/envs/lis-env/include:$PATH
export LIS_FC=/work/09534/st37357/ls6/anaconda/envs/lis-env/bin/mpifort
export LIS_CC=/work/09534/st37357/ls6/anaconda/envs/lis-env/bin/mpicc
export LIS_MODESMF=/work/09534/st37357/ls6/anaconda/envs/lis-env/mod
export LIS_LIBESMF=/work/09534/st37357/ls6/anaconda/envs/lis-env/lib
export LIS_OPENJPEG=/work/09534/st37357/ls6/anaconda/envs/lis-env
export LIS_ECCODES=/work/09534/st37357/ls6/anaconda/envs/lis-env
export LIS_NETCDF=/work/09534/st37357/ls6/anaconda/envs/lis-env
export LIS_HDF4=/work/09534/st37357/ls6/anaconda/envs/lis-env
export LIS_HDF5=/work/09534/st37357/ls6/anaconda/envs/lis-env
export LIS_HDFEOS=/work/09534/st37357/ls6/anaconda/envs/lis-env
export LD_LIBRARY_PATH=$LIS_HDF5/lib:$LIS_LIBESMF:$LIS_NETCDF/lib:${LIS_ECCODES}/lib:$LD_LIBRARY_PATH
But when I run this, I get the error:
/work/09534/st37357/ls6/anaconda/envs/is-env/bin/mpicc -DLIS_JULES -I./ -I../core/ -I../params/gfrac/SPORTDaily/ -I.params/gfrac/VIIRSDaily/ -I../surfacemodels/land/vic.4.1.1/ -I../surfacemodels/land/vic.4.1.1/physics/-I../surfacemodels/land/vic.4.1.2.l/ -I../surfacemodels/land/vic.4.1.2.l/physics/ -I../surfacemodels/land/awral.6.0.0/physics/ ../surfacemodels/land/vic.4.1.2.l/physics/calc_surf_energy_bal.c
/work/09534/st37357/ls6/anaconda/envs/lis-env/bin/ld: /work/09534/st37357/ls6/anaconda/envs/lis-env/bin/../x86_64-conda-linux-gnu/sysroot/usr/lib/../lib/Scrt1.o: in function
_start': (.text+0x24): undefined reference tomain'Please check the attached compile.log1
Then I tried adding -c to CFLAGS and FFLAGS to the configure file (please check configure.lis2). Here the previous error did not occur, but I got another error (Please check compile.log2):
/work/09534/st37357/ls6/anaconda/envs/lis-env/bin/mpifort -c -I/work/09534/st37357/ls6/anaconda/envs/lis-env/include/ -I/work/09534/st37357/ls6/anaconda/envs/lis-env/include/ -I/work/09534/st37357/ls6/anaconda/envs/lis-env/include/ -I/work/09534/st37357/ls6/anaconda/envs/lis-env/include/ -I/work/09534/st37357/ls6/anaconda/envs/lis-env/include/ -DLIS_JULES -I./ -I../core/ -I../params/gfrac/SPORTDaily/ -I../params/gfrac/VIIRSDaily/ -I../surfacemodels/land/vic.4.1.1/ -I../surfacemodels/land/vic.4.1.1/physics/ -I../surfacemodels/land/vic.4.1.2.l/ -I../surfacemodels/land/vic.4.1.2.l/physics/ -I../surfacemodels/land/awral.6.0.0/physics/ ../surfacemodels/land/noahmp.4.0.1/da_tws/noahmp401_scale_tws.F90
../surfacemodels/land/vic.4.1.2.l/physics/get_global_param.c: In function 'get_global_param':
../surfacemodels/land/vic.4.1.2.l/physics/get_global_param.c:961:47: error: passing argument 3 of 'display_current_settings' from incompatible pointer type [-Wincompatible-pointer-types]
961 | display_current_settings(DISP_VERSION,names,&global);
| ^~~~~~~
| |
| global_param_struct **
In file included from ../surfacemodels/land/vic.4.1.2.l/physics/get_global_param.c:3:
Does anyone know how to solve this?
compile.log1.txt
compile.log2.txt
configure.lis2.txt
configure.lis1.txt
Thank you,
Sasanka
@dmocko @sujayvkumar
Beta Was this translation helpful? Give feedback.
All reactions