relax
                                
                                
                                
                                    relax copied to clipboard
                            
                            
                            
                        Install geodynamics/relax
Hi everyone!
I wanna ask about installing, when I try to source setup.sh the result is error like this
sorry for very basic question
Best to compile the code directly with ./waf configure followed by ./waf. Once that compiles successfully, add the build directory to your PATH environment variable. You should then be ready to run the examples.
I see that your configuration was not successful. You need to provide the path to netcdf. Type ./waf --help to see how this is done.
Hi Prof. Barbot I am a bit confused, how to install "relax". Is there any tutorial guide for installing by ubuntu?. I try "source setup.sh" process on ubuntu, the result always error like that (on the picture). Sorry for very basic questions

The ‘INSTALL’ file gives you the procedure to compile and install the code, with examples for different platforms. Have you looked at it? Are you able to compile the code?
From: irmayolii @.> Sent: Tuesday, February 14, 2023 6:38:05 AM To: geodynamics/relax @.> Cc: Sylvain Barbot @.>; Comment @.> Subject: Re: [geodynamics/relax] Install geodynamics/relax (Issue #8)
Hi Prof. Barbot I am a bit confused, how to install "relax". Is there any tutorial guide for installing by ubuntu?. I try "source setup.sh" process on ubuntu, the result always error like that (on the picture). Sorry for very basic questions
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/8*issuecomment-1429849395__;Iw!!LIr3w8kk_Xxm!oK7G-aZ-6FyOAAYOOKGt_cGtEVqhYqIMsWWKuEPK2VYRsTMr0gaW4P7vRjy0fPYMnITjPT4jGoe1DMiSGgXVAog$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWCXRU7X25FBQ6SKJSLWXOKE3ANCNFSM6AAAAAAUIQF6AA__;!!LIr3w8kk_Xxm!oK7G-aZ-6FyOAAYOOKGt_cGtEVqhYqIMsWWKuEPK2VYRsTMr0gaW4P7vRjy0fPYMnITjPT4jGoe1DMiSUpTjB_8$. You are receiving this because you commented.Message ID: @.***>
I already install by source setup.sh and it success to be "ready to run relax". But when I try to run use ./run1.sh in the folder example/tutorials, it always error "relax: command not found" like in the picture. I also try another file *.sh in folder example and the result is same that "relax: command not found".

Can you respond to my question? The ‘INSTALL’ file gives you the procedure to compile and install the code, with examples for different platforms. Have you looked at it? Are you able to compile the code?
From: irmayolii @.***> Sent: Thursday, February 16, 2023 7:26 AM To: geodynamics/relax Cc: Sylvain Barbot; Comment Subject: Re: [geodynamics/relax] Install geodynamics/relax (Issue #8)
I already install by source setup.sh and it success to be "ready to run relax". But when I try to run use ./run1.sh in the folder example/tutorials, it always error "relax: command not found" like in the picture. I also try another file *.sh in folder example and the result is same that "relax: command not found".
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/8*issuecomment-1433262621__;Iw!!LIr3w8kk_Xxm!owwfM9qjl_6zyQkinFKCNvothqcFsgW4dQXtEaXdeXu9IttR6QVg5t4JPP3gp8RoL7Dg8EtinhDy3s9enKiZqQg$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWFBDIUW6W7MZ7JVTJ3WXZBIZANCNFSM6AAAAAAUIQF6AA__;!!LIr3w8kk_Xxm!owwfM9qjl_6zyQkinFKCNvothqcFsgW4dQXtEaXdeXu9IttR6QVg5t4JPP3gp8RoL7Dg8EtinhDy3s9evtMX268$. You are receiving this because you commented.Message ID: @.***>
I already configure waf successfully. But when I try to build waf, the result is error like in the picture. How to solve it?


Check the examples in INSTALL. You are probably missing some command-line options, such as  --check-c-compiler=icc and --check-fortran-compiler=ifort.
Were you able to compile relax? I am trying to compile relax using gfortran on ubuntu and I am having the same "undefined reference" errors. I've been wondering if the errors are due to using gfortran, since the INSTALL file mentions that using certain versions of gfortran causes compiler errors when compiling viscoelastic3D.f90. However, I get the same errors as you posted when waf is linking build/relax, whereas viscoelastic3D.f90 processes without errors.
Can you include the procedure you follow and the error message in context so we can help you? Are you using ./waf configure and ./waf?
From: Jarett @.> Sent: Friday, July 26, 2024 6:58:52 AM To: geodynamics/relax @.> Cc: Sylvain Barbot @.>; Comment @.> Subject: Re: [geodynamics/relax] Install geodynamics/relax (Issue #8)
Were you able to compile relax? I am trying to compile relax using gfortran on ubuntu and I am having the same "undefined reference" errors.
— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/8*issuecomment-2251536329__;Iw!!LIr3w8kk_Xxm!of4fjNPpMRE6P_fi1zyKWLOz5BaW1lCHHuX4zJ-YIgbrEL1XsWSJDmIO80UHFWt_Eqecki6Ct_Txot43fi6Pwak$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWFNM3OG4QFOVXENXHTZOF7KZAVCNFSM6AAAAABLPOF346VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJRGUZTMMZSHE__;!!LIr3w8kk_Xxm!of4fjNPpMRE6P_fi1zyKWLOz5BaW1lCHHuX4zJ-YIgbrEL1XsWSJDmIO80UHFWt_Eqecki6Ct_Txot43ZJyvD80$. You are receiving this because you commented.Message ID: @.***>
Sure, I have downloaded and installed gmt 4.5.18 and netcdf 4.1.3 manually by downloading their .tar files and building the libraries using their configure and make scripts. I am using aptitude to install "libmkl-dev" in order to use MKL with relax.
I am running ./waf configure with the following flags: --netcdf-incdir=/usr/local/include --netcdf-libdir=/usr/local/lib --mkl-incdir=/usr/include/mkl --mkl-libdir=/usr/lib/x86_64-linux-gnu --openmp-flag=-fopenmp
which appears to run successfully and produces this output:
then, when I run ./waf, here is the error:
It seems that ./waf is failing to link all of the required files. This seems to be a similar error to the one which the author of this issue experienced.
Do you recommend installing ifort and using '--check-fortran-compiler=ifort'? When I run ./waf configure with --check-fortran-compiler=gfortran, I have the same error.
Is ifort required to compile relax?
Thank you!
You might need to link in pthread. I think you can do this by changing
--openmp-flag=-fopenmp
to
--openmp-flag="-fopenmp -pthread"
                                    
                                    
                                    
                                
Thank you for the tip. When I follow your suggestion, ./waf configure can no longer find MKL. This is confusing since the script had no problem finding MKL beforehand.
Here's the output:
Any ideas? Thank you