[RegCNET] I need help with installing RegCM Model

Dr. Mostafa El Nazer mostafa.elnazer at gmail.com
Tue Nov 24 22:33:45 CET 2020


Hi Everyone ...

I'm trying to install the model but I'm facing many problems in this
regard ...

Recently I have tried installing through using the "prereq_install.sh"
script and also after applying the configure step it fails to complete the
installation successfully (attached are the script and the installation
log).

Now ... I'm getting this error:

[mostafa at fedora ~/RegCM-4.7.0]$ ./configure
PATH=/home/mostafa/Regcm4.7/bin:$PATH CC="gcc" FC="gfortran"
MPIFC="/home/mostafa/Regcm4.7/bin/mpif90"
CPPFLAGS=-I/home/mostafa/Regcm4.7/include
LDFLAGS=-L/home/mostafa/Regcm4.7/lib LIBS="-lnetcdff -lnetcdf -lhdf5_hl
-lhdf5 -lz"
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/home/mostafa/RegCM-4.7.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
[mostafa at fedora ~/RegCM-4.7.0]$ ./configure
PATH=/home/mostafa/Regcm4.7/bin:$PATH CC="gcc" FC="gfortran"
MPIFC="/home/mostafa/Regcm4.7/bin/mpif90"
CPPFLAGS=-I/home/mostafa/Regcm4.7/include
LDFLAGS=-L/home/mostafa/Regcm4.7/lib LIBS="-lnetcdff -lnetcdf -lhdf5_hl
-lhdf5 -lz"
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in
`/home/mostafa/RegCM-4.7.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details



*Best Regards ...*

*~~~~~~~~~~~~~~~~~~~~~~~~~~~~*



*Mostafa Mahmoud El Nazer, (Ph.D.) Assistant Professor National Research
Centre*

*Physics Division*



*Theoretical Physics Department Cairo - Egypt*



*https://www.iau.org/administration/membership/individual/17961/
<https://mailtrack.io/trace/link/09e3e6167c89ff70b263bcb459582b9d3b7ea322?url=https%3A%2F%2Fwww.iau.org%2Fadministration%2Fmembership%2Findividual%2F17961%2F&userId=2262926&signature=89950d4acd53059d>*


*https://orcid.org/0000-0001-8828-3882
<https://mailtrack.io/trace/link/8ae4c906fc4e901bc8aade8e5d7b10661f774f7a?url=https%3A%2F%2Forcid.org%2F0000-0001-8828-3882&userId=2262926&signature=5f9cea2c7d4a31e4>*


*https://www.scopus.com/authid/detail.uri?authorId=57195995950
<https://mailtrack.io/trace/link/95ec4eddc202e41a1ec9b40ec2f9aaa3555c051e?url=https%3A%2F%2Fwww.scopus.com%2Fauthid%2Fdetail.uri%3FauthorId%3D57195995950&userId=2262926&signature=e48405b16a2d347e>*

*https://publons.com/researcher/1370497/dr-mostafa-el-nazer/
<https://mailtrack.io/trace/link/76bfecdfe0322531eed25caed3f7c782d7fb65d1?url=https%3A%2F%2Fpublons.com%2Fresearcher%2F1370497%2Fdr-mostafa-el-nazer%2F&userId=2262926&signature=d1f89bbbbbf5d597>*

*https://www.mendeley.com/impact/mostafa-el-nazer/
<https://mailtrack.io/trace/link/74b2d8633e6873e9827bfc8d6c28d1f9a1a65079?url=https%3A%2F%2Fwww.mendeley.com%2Fimpact%2Fmostafa-el-nazer%2F&userId=2262926&signature=e8bb9dfd87f6d1c3>
*

*https://researchgate.net/profile/Mostafa_El_Nazer2/
<https://mailtrack.io/trace/link/f8752b1e5b8348ccba02a6644c88e01402713736?url=https%3A%2F%2Fresearchgate.net%2Fprofile%2FMostafa_El_Nazer2%2F&userId=2262926&signature=643565114f8ff317>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20201124/4bc515c7/attachment.htm>
-------------- next part --------------
This script installs the netCDF/mpi librares in the

	 /home/mostafa/Regcm4.7

directory. If something goes wrong, logs are saved in

	/home/mostafa/Regcm4.7/logs

Downloading ZLIB library...
Downloading HDF5 library...
Downloading netCDF Library...
Downloading OPENMPI Library...
Compiling zlib Library.
Compiled zlib library.
Compiling MPI library.
Compiled MPI library.
Compiling HDF5 library.
Compiled HDF5 library.
Compiling netCDF Library.
Compiled netCDF C library.
Compiled netCDF Fortran library.

Done!

To link RegCM with this librares use:

./configure PATH=/home/mostafa/Regcm4.7/bin:$PATH CC="gcc" FC="gfortran" MPIFC="/home/mostafa/Regcm4.7/bin/mpif90" CPPFLAGS=-I/home/mostafa/Regcm4.7/include LDFLAGS=-L/home/mostafa/Regcm4.7/lib LIBS="-lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lz"

To run the model use these PATH and LD_LIBRARY_PATH variable:

export LD_LIBRARY_PATH=/home/mostafa/Regcm4.7/lib:$LD_LIBRARY_PATH
export PATH=/home/mostafa/Regcm4.7/bin:$PATH

or

setenv LD_LIBRARY_PATH /home/mostafa/Regcm4.7/lib:$LD_LIBRARY_PATH
setenv PATH /home/mostafa/Regcm4.7/bin:$PATH
rehash

Cleanup...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prereq_install.sh
Type: text/x-sh
Size: 7036 bytes
Desc: not available
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20201124/4bc515c7/attachment.sh>


More information about the RegCNET mailing list