geodynamics / relax

Relax implements a semi-analytic Fourier-domain solver and equivalent body forces to compute quasi-static relaxation of stress perturbation.
GNU General Public License v3.0
25 stars 17 forks source link

Install geodynamics/relax #8

Open irmayolii opened 1 year ago

irmayolii commented 1 year ago

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

sbarbot commented 1 year ago

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.

irmayolii commented 1 year ago

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

sbarbot commented 1 year ago

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

irmayolii commented 1 year ago

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

sbarbot commented 1 year ago

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

irmayolii commented 1 year ago

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

sbarbot commented 1 year ago

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