Hello,
I’m trying to build CRTM, but the configure command gives a CRTM_Module.F90 source file not found.
What I’m doing specifically which I think is following the directions exactly ..
. configuration/gfortran-debug.setup
. ./Set_CRTM_Environment.sh
cd src
/make realclean
make
cd Build/
./configure --prefix=${PWD}
configure: error: cannot find sources (libsrc/CRTM_Module.F90) in . or ..
pwd
home_folder/environment/github/JCSDA/crtm/src/Build
Thanks for the help.
Joe
Hi;
which version and where are you getting it from?
Also which compiler version are you trying to use?
I’m specifying the 2.4.0 branch.
git clone --branch=v2.4.0 https://github.com/JCSDA/crtm
I’ve tried gfortran 11.5 on AL2023 and 14.2.0 on Ubuntu 24.04.2
If you’re starting a new application, or trying to interface something new with CRTM we highly recommend that use version three
https://github.com/JCSDA/CRTMv3
If you still need to use version 2.4.0, Let me know and then we can dig a little bit deeper into what’s going on.
Thanks for the help Benjamin. I’m not sure trying to use v3.x.x is acceptable to the folks I’m working with. The task I have is to use f2py to make an interface for Python and thus far I’ve heard that they want 2.4.0, but I can check if that would be OK.
Are there other things I could try? Different OSes, Fortran versions, or even different Fortran compilers?
I will go ahead and try out 3.x.x just in case they don’t really care.
A few comments:
There’s already a pycrtm: https://github.com/JCSDA/pycrtm
If you’re helping EMC, you’ll want to use: release/REL-2.4.0_emc branch (I recommend this anyway).
If you’re just required to use 2.4.x, I recommend using the branch: release/crtm_jedi_v2.4.1
Otherwise, CRTMv3 is superior.
To address your actual error: what’s happening is that you might’ve forgotten to run make in the src/ directory first, which links the various files into the libsrc directory.
This can also happen if the Get_CRTM_Binary_Files.sh didn’t work. Strongly recommend using one of the above branches, and reading the installation directions (i.e., use CMake instead of configure).
Thanks. I was able to get the EMC branch working. I did have to get ecbuild in my path, so maybe that was my problem all along.
I think I did run make in the /src branch, but their might have been errors.
I will go ahead and try 3.1.2 just for fun, and look into pycrtm.
Hi, I am kinda new to CRTM.
I just wanna ask why in the v2.4.0 there is a src/Build folder and in the v3 version it is not present.
When I compile the v2.4.0 using the singularity container running “ecbuild ..” in /crtm/build, do I need to run make inside /crtm/src/Build?
Thanks
Not necessary when using ecbuild or cmake.
src/Build is for backwards support for autotools builds.
We fully recommend using CRTMv3 in general.
1 Like