Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run the command ./build_models.py -c gfortran -i ABSCO_config.ini #73

Open
xbr2017 opened this issue Sep 12, 2024 · 4 comments
Open
Assignees

Comments

@xbr2017
Copy link

xbr2017 commented Sep 12, 2024

I have installed the following items in Centos 7:
zlib-1.2.13
hdf5-1.10.7
netcdf-c-4.7.4
gfortran-4.8.5

Meanwhile, I have also modified the absco/LBLRTM/build/addlibs.inc, as follow:
NETCDF = yes
NCL = /usr/local/lib # the netcdf4 is installed successfully in this path
NCI = /usr/local/include # the netcdf4 is installed successfully in this path
INCLUDES:= -I. -I$(NCI)

But, when I followed the instructions in the Quickstart part as follow:

conda env create -n absco -f environment.yml
conda activate absco
./build_models.py -c gfortran -i ABSCO_config.ini
the code reported ERROR: ../src/read_module.f90:26: Error: Can't open included file 'netcdf.inc'

Could someone help me with that? Thank you very much!

@pernak18 pernak18 assigned pernak18, mjiacono and kcadyper and unassigned pernak18 Sep 12, 2024
@pernak18
Copy link
Member

@xbr2017 a couple questions:

  1. are you able to build LBL "standalone"? the ABSCO repo was first developed before LBLRTM migrated to netCDF4 usage, and build_models.py might need some updates. you don't need to run build_models.py, it's just there for convenience. if you can build LBL by itself, you can proceed to running ABSCO
  2. when you say "the netcdf4 is installed successfully in this path," does that mean netcdf.inc is in /usr/local/include?

thanks

@xbr2017
Copy link
Author

xbr2017 commented Sep 12, 2024

I didn't install the LBLRTM alone first.I followed the instructions in the Quickstart part directly.
I have entered the command nc-config --version, and the version information is displayed.Then I entered the path /usr/local/include, there are netcdf related files in the path, but the netcdf.inc file is missing.Maybe my netcdf is not fully installed successfully.
Thanks a lot!

1 similar comment
@xbr2017
Copy link
Author

xbr2017 commented Sep 12, 2024

I didn't install the LBLRTM alone first.I followed the instructions in the Quickstart part directly.
I have entered the command nc-config --version, and the version information is displayed.Then I entered the path /usr/local/include, there are netcdf related files in the path, but the netcdf.inc file is missing.Maybe my netcdf is not fully installed successfully.
Thanks a lot!

@pernak18
Copy link
Member

OK, i've experienced this before. you're using CentOS7, and the repos you query when doing a yum install might not get what you need because that OS has reached end-of-life. i'm not sure if this is an option for you, but my solution was moving to a newer operating system (i.e., an Ubuntu 24.04 container). once there, i did an apt install -y make gcc gfortran netcdf-bin libnetcdff-dev plocate, where the libnetcdff-dev (as opposed to libnetcdff) provided me with netcdf.inc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants