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

Installation fails at Compatibility Compiler Test 1 #47

Open
everdaniel opened this issue Jan 22, 2025 · 12 comments
Open

Installation fails at Compatibility Compiler Test 1 #47

everdaniel opened this issue Jan 22, 2025 · 12 comments

Comments

@everdaniel
Copy link

Describe the bug
I'm trying to install WRF using WRF-MOSIT on a clean AlmaLinux 9.5 server, the script fails when it reaches the "Compatibility Compiler Test 1":

Library Compatibility Tests
Test 1
01_fortran+c+netcdf_f.f:5: Error: Can't open included file 'netcdf.inc'
/usr/bin/ld: cannot find 01_fortran+c+netcdf_f.o: No such file or directory
/usr/bin/ld: cannot find -lnetcdff
/usr/bin/ld: cannot find -lnetcdf
collect2: error: ld returned 1 exit status
./WRF-MOSIT.sh: line 23044: ./a.out: No such file or directory
Compatibility Compiler Test 1 Failed

To Reproduce
Steps to reproduce the behavior:

  1. Install AlmaLinux 9.5
  2. Run WRF-MOSIT as per instructions in Github

Expected behavior
Script to finish successfully with the WRF model compiled

Screenshots
The script log is available here: https://gist.github.com/everdaniel/681e66e65223a70ec5cd89508a056e40

Desktop (please complete the following information):

  • OS: AlmaLinux
  • Version 9.5

Additional context
While running the script it failed several times as the system was missing some tools, so I had to install the following:
sudo dnf install git -y
sudo dnf install curl htop wget zip unzip
sudo dnf install epel-release
sudo dnf install tar
sudo dnf install gcc-gfortran
sudo dnf group install "Development Tools"

and I also needed to update automake and autoconf to the latest versions:
autoconf (GNU Autoconf) 2.72
automake (GNU automake) 1.16.5

@HathewayWill
Copy link
Owner

HathewayWill commented Jan 22, 2025 via email

@everdaniel
Copy link
Author

No worries thank you Will, I tried to do it with the Intel compilers but received a similar error as well:

Environment Testing 
Test 1
ifx: error #10236: File not found: 'TEST_1_fortran_only_fixed.f'
ifx: command line error: no files specified; for help type "ifx -help"
./WRF-MOSIT.sh: line 23990: ./a.out: No such file or directory
Environment Compiler Test 1 Failed

full log here: https://gist.github.com/everdaniel/33ea1026e0d13b4361cd3fb7a5ade098

@HathewayWill
Copy link
Owner

@everdaniel okay it looks like there is either a sudo password issue not being authorized on the machine. Are you the system admin for this sever and have sudo access?

Almalinux is a tricky one but I will try to install it over the weekend on one of my spare hard drives and see what's failing. It could be a simple fix like the checks for apt or dnf didn't work as expected.

@everdaniel
Copy link
Author

@everdaniel okay it looks like there is either a sudo password issue not being authorized on the machine. Are you the system admin for this sever and have sudo access?

Yes, I'm the system admin and I also have sudo access -- should I try to launch the script as sudo?

Almalinux is a tricky one but I will try to install it over the weekend on one of my spare hard drives and see what's failing. It could be a simple fix like the checks for apt or dnf didn't work as expected.

Oh I see, apologies I just double checked the README and it explicitily says "CentOS based systems not supported", I completely missed this bit very sorry. I'll just re-install the server and go with Ubuntu.

@HathewayWill
Copy link
Owner

HathewayWill commented Jan 23, 2025 via email

@HathewayWill
Copy link
Owner

@everdaniel okay it looks like there is either a sudo password issue not being authorized on the machine. Are you the system admin for this sever and have sudo access?

Yes, I'm the system admin and I also have sudo access -- should I try to launch the script as sudo?

Almalinux is a tricky one but I will try to install it over the weekend on one of my spare hard drives and see what's failing. It could be a simple fix like the checks for apt or dnf didn't work as expected.

Oh I see, apologies I just double checked the README and it explicitily says "CentOS based systems not supported", I completely missed this bit very sorry. I'll just re-install the server and go with Ubuntu.

I think I have found the source of the problem for AlmaLinux and all other RHL based systems. I am working on a fix now.

@everdaniel
Copy link
Author

@everdaniel okay it looks like there is either a sudo password issue not being authorized on the machine. Are you the system admin for this sever and have sudo access?

Yes, I'm the system admin and I also have sudo access -- should I try to launch the script as sudo?

Almalinux is a tricky one but I will try to install it over the weekend on one of my spare hard drives and see what's failing. It could be a simple fix like the checks for apt or dnf didn't work as expected.

Oh I see, apologies I just double checked the README and it explicitily says "CentOS based systems not supported", I completely missed this bit very sorry. I'll just re-install the server and go with Ubuntu.

I think I have found the source of the problem for AlmaLinux and all other RHL based systems. I am working on a fix now.

Hi Will, let me know if there is any way I can help, I would be more than happy to, should I try with RockyLinux?

@HathewayWill
Copy link
Owner

HathewayWill commented Jan 30, 2025 via email

@everdaniel
Copy link
Author

Good morning,

Which version of WRF did you want to install? WRF-ARW? Chem?

Yes Will, I was trying to install WRF-ARW

@HathewayWill
Copy link
Owner

HathewayWill commented Jan 30, 2025 via email

@HathewayWill
Copy link
Owner

HathewayWill commented Jan 30, 2025 via email

@everdaniel
Copy link
Author

Awesome will do that now

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

2 participants