I get an error message during installation of code_saturne, "Error during configure stage of CGNS."
I have attached the install_saturne.log file if anyone have the heart to look into it.
Best regards, Tommy
[SOLVED] Error during configure stage of CGNS
Forum rules
Please read the forum usage recommendations before posting.
Please read the forum usage recommendations before posting.
[SOLVED] Error during configure stage of CGNS
- Attachments
-
- install_saturne.log
- (3.99 MiB) Downloaded 619 times
Last edited by blckwtr on Mon Mar 28, 2022 1:54 pm, edited 1 time in total.
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Error during configure stage of CGNS
Hello,
The end of the error log indicates cmake is not installed. For the CGNS installation, you need to install cmake, which should be available as a package on your Linux distribution.
Best regards,
Yvan
The end of the error log indicates cmake is not installed. For the CGNS installation, you need to install cmake, which should be available as a package on your Linux distribution.
Best regards,
Yvan
Re: Error during configure stage of CGNS
Thanks, that was very helpful. I managed to install, but now when creating an alias to shortcut, I get this error message in terminal:
Traceback (most recent call last):
File "/usr/bin/code_saturne", line 67, in <module>
from cs_script import master_script
ModuleNotFoundError: No module named 'cs_script'
Traceback (most recent call last):
File "/usr/bin/code_saturne", line 67, in <module>
from cs_script import master_script
ModuleNotFoundError: No module named 'cs_script'
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Error during configure stage of CGNS
Hello,
Could you also post the setup file and the config.log file from the build directory of code_saturne itself (a subdirectory of your global build directory) ?
Regards,
Yvan
Could you also post the setup file and the config.log file from the build directory of code_saturne itself (a subdirectory of your global build directory) ?
Regards,
Yvan
Re: Error during configure stage of CGNS
I have attached the setup file and hopefully the correct location. I have a code_saturne.build folder where I got the setup file (attached as .txt), and the code_saturne-7.0.4.build where i found the config.log file. Is this correct?
I must also mention that I was forced to edit the .bashrc file with the following in order to use ./salome to run salome:
export PYTHONPATH=/home/blckwtr/Code_Saturne/7.0.4/code_saturne-7.0.4/arch/Linux_x86_64/lib/python3.8/site-packages
I must also mention that I was forced to edit the .bashrc file with the following in order to use ./salome to run salome:
export PYTHONPATH=/home/blckwtr/Code_Saturne/7.0.4/code_saturne-7.0.4/arch/Linux_x86_64/lib/python3.8/site-packages
- Attachments
-
- config.log
- (203.22 KiB) Downloaded 606 times
-
- setup.txt
- (46 Bytes) Downloaded 608 times
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Error during configure stage of CGNS
Hello,
Is there a Python binary in the SALOME build you are using ? If so, you are probably mixing PYTHONPATH with a Python version inside SALOME, and using the System Python, which could explain why modules are not found.
Did you try an install independent of SALOME ? You can still use salome prerequisites, such as MED, but do not need to run ./salome for that.
Best regards,
Yvan
Is there a Python binary in the SALOME build you are using ? If so, you are probably mixing PYTHONPATH with a Python version inside SALOME, and using the System Python, which could explain why modules are not found.
Did you try an install independent of SALOME ? You can still use salome prerequisites, such as MED, but do not need to run ./salome for that.
Best regards,
Yvan
Re: Error during configure stage of CGNS
I must check into that, but I was forced to use "python is python3" in order to finally install CGNS in code_saturne... Could it be this?
-
- Posts: 4206
- Joined: Mon Feb 20, 2012 3:25 pm
Re: Error during configure stage of CGNS
Hello,
In all cases, you must use Python3, but there may be a different Python3 in salome.
To avoid complex issues here, I recommend first building a working version without bothering with Salome's Python, so you should not need to modify your PYTHONPATH. Or if you need if for SALOME separately from code_saturne, unset it for the code_saturne build and tests.
Regards,
Yvan
In all cases, you must use Python3, but there may be a different Python3 in salome.
To avoid complex issues here, I recommend first building a working version without bothering with Salome's Python, so you should not need to modify your PYTHONPATH. Or if you need if for SALOME separately from code_saturne, unset it for the code_saturne build and tests.
Regards,
Yvan
Re: Error during configure stage of CGNS
I reinstalled OS, and made the installation from scratch. I think there was some anaconda paths corrupting the instakllation of CGNS, and further... The issue were solved using default paths...