relax icon indicating copy to clipboard operation
relax copied to clipboard

Install geodynamics/relax

Open irmayolii opened this issue 2 years ago • 12 comments

Hi everyone! I wanna ask about installing, when I try to source setup.sh the result is error like this image sorry for very basic question

irmayolii avatar Jan 27 '23 10:01 irmayolii

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.

sbarbot avatar Jan 27 '23 20:01 sbarbot

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

image

irmayolii avatar Feb 14 '23 14:02 irmayolii

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

[image]https://urldefense.com/v3/__https://user-images.githubusercontent.com/80675405/218768438-adb79178-16ce-4562-9a8f-3d4a1221821c.png__;!!LIr3w8kk_Xxm!oK7G-aZ-6FyOAAYOOKGt_cGtEVqhYqIMsWWKuEPK2VYRsTMr0gaW4P7vRjy0fPYMnITjPT4jGoe1DMiSGL8sRYE$

— 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: @.***>

sbarbot avatar Feb 14 '23 14:02 sbarbot

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".

image

irmayolii avatar Feb 16 '23 15:02 irmayolii

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".

[image]https://urldefense.com/v3/__https://user-images.githubusercontent.com/80675405/219410442-257dd810-859f-4e01-a0b3-9805016e7ba3.png__;!!LIr3w8kk_Xxm!owwfM9qjl_6zyQkinFKCNvothqcFsgW4dQXtEaXdeXu9IttR6QVg5t4JPP3gp8RoL7Dg8EtinhDy3s9elnv60lI$

— 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: @.***>

sbarbot avatar Feb 16 '23 16:02 sbarbot

I already configure waf successfully. But when I try to build waf, the result is error like in the picture. How to solve it?

WhatsApp Image 2023-02-20 at 17 32 36(1)

WhatsApp Image 2023-02-20 at 17 32 36

irmayolii avatar Feb 20 '23 10:02 irmayolii

Check the examples in INSTALL. You are probably missing some command-line options, such as --check-c-compiler=icc and --check-fortran-compiler=ifort.

sbarbot avatar Feb 20 '23 22:02 sbarbot

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.

JarettBakerDunn avatar Jul 25 '24 22:07 JarettBakerDunn

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: @.***>

sbarbot avatar Jul 30 '24 02:07 sbarbot

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: Screenshot from 2024-08-08 18-55-13

then, when I run ./waf, here is the error: Screenshot from 2024-08-08 18-57-53

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!

JarettBakerDunn avatar Aug 09 '24 02:08 JarettBakerDunn

You might need to link in pthread. I think you can do this by changing

--openmp-flag=-fopenmp

to

--openmp-flag="-fopenmp -pthread"

wlandry avatar Aug 09 '24 04:08 wlandry

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: Screenshot 2024-08-21 at 4 49 02 PM

Any ideas? Thank you

JarettBakerDunn avatar Aug 22 '24 00:08 JarettBakerDunn