CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Gerris question again (https://www.cfd-online.com/Forums/main/10300-gerris-question-again.html)

Mer November 16, 2005 11:25

Gerris question again
 
Hi, Is there any researcher who has compiled the gerris software successfully. I got some make errors when I try to install it. see my previous messages please!!!


Matze November 16, 2005 13:16

Re: Gerris question again
 
Hi I haven't installed gerris, but it seems to me that you are not very familiar with software compilation under linux.

So here are some hints:

*There are probably gts and glib library rpm-packages shipped with redhat. So you don't have to compile it manualy, if you have got the superuser password. (These libraries normally ends with *dev) -> install these

*the normal order for compilation is ./configure --OPTIONS; make; (su) you don't really need it; make install

hint: have a look at the prefix option of configure (./configure --help); Usage e.g. --prefix=/home/user/gerris

*Give more detailed information if you post something. What you have typed in, and the exact error messages

Harish November 18, 2005 23:45

Re: Gerris question again
 
You might want to do a make install the sequence would be ./configure make make install

the make install would make sure that everyone can run the software.

mer November 21, 2005 03:54

Re: Gerris question again
 
Hi, excuse me to response you so late.

Matze, yes I'm not so familiar with compilation under linux, but only one package was given and run in red hat but with an old version. The second, when I try to install gerris, it give me an error that gts was not installed.

about errors of compilation, please refers to my posted message on this forum on date: sat, 12 Nov 2005.

Harich, what do you meen with the sequence : ./configure make make install, is it for the libraries or for gerris. more details please.

thanks a lot.


Matze November 22, 2005 06:46

Re: Gerris question again
 
Hi

it will follow are more detailed information. But I have to say, that I haven't installed gerris. So all I say are just assumptions.

In your old post, I see that there is a warning that you haven't installed libnetpbm(needed for gts). But it is just a warning, so gts will probably work without.

now follows the commands to enter in bash shell.

#Directory for gts LIBRARY to install (type in) export GTS_LIBRARY_INST=/opt/gts #Directory for gerris (type in) export GERRIS_PATH=/opt/gerris

#Don't needed, but nice directory structure (type in) cd $HOME;mkdir src

#Download and unpack gts and gerris in ${HOME}/src

-------------- install gts #Enter the gts directroy (type in) cd ${HOME}/src/gts-???

#compile gts (type in) ./configure --prefix=$GTS_LIBRARY_INST (type in) make

#install gts to /opt/gts (as superuser) (type in) su (type in) mkdir $GTS_LIBRARY_INST (type in) make install (type in) exit (become normal user again)

------------- install gerris #Enter gerris src directory (type in) cd ${HOME}/src/gerris-???

#configure gerris (type in) ./configure --prefix=$GERRIS_PATH --other options to find gts library and header #look to ./configure --help to find out options to set where gts is installed(headers(*.h) probably in /opt/gts/include and library probably in /opt/gts/lib

#compile gerris (type in) make

#install gerris as superuser (type in) su (type in) mkdir $GERRIS_PATH (type in) make install (type in) exit (become normal user again) ------- #now everything should be installed #you just have to set some environment vars (type in)export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gts/lib:/opt/gerris/lib (type in)export PATH=/opt/gerris/bin:$PATH #you can add these to .bashrc if these things should be set next time you log in

------- Play a while if this don't work; If you need more help please send back via e-mail on cfd-online I made the assumption that glib is correctly installed



All times are GMT -4. The time now is 23:48.