CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

OF 1.6 installation on SUSE 11.2

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   April 14, 2010, 16:53
Default OF 1.6 installation on SUSE 11.2
  #1
New Member
 
Eugen
Join Date: May 2009
Location: Russia, Obninsk
Posts: 10
Rep Power: 8
jonya is on a distinguished road
I have got some experience with Installation OF 1.6 on SUSE 11.2 and wat to share it here.
Also I have OF 1.6 Ubuntu 9.10 installation guide here on Russian for now.
I hope it will be usefull.

Upd http://www.extra.os-cfd.ru/ - now you coul find this guides here.

Last edited by jonya; May 4, 2010 at 16:06.
jonya is offline   Reply With Quote

Old   April 15, 2010, 01:02
Default
  #2
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
It looks familiar

Anyway thanks for making a PDF out of it.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   April 15, 2010, 07:25
Default
  #3
New Member
 
Eugen
Join Date: May 2009
Location: Russia, Obninsk
Posts: 10
Rep Power: 8
jonya is on a distinguished road
Hi, alberto!
Sorry for copy without reference to you. I've corrected the file.
Sincerely,
Eugen Varseev
jonya is offline   Reply With Quote

Old   April 15, 2010, 10:15
Default
  #4
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
No problem
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   April 16, 2010, 15:13
Default
  #5
New Member
 
Eugen
Join Date: May 2009
Location: Russia, Obninsk
Posts: 10
Rep Power: 8
jonya is on a distinguished road
I updated PDF versions of Guides for OF Ubuntu 9.04 Installation on Russian and English here
jonya is offline   Reply With Quote

Old   May 1, 2010, 17:44
Default
  #6
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Quote:
Originally Posted by jonya View Post
I have got some experience with Installation OF 1.6 on SUSE 11.2 and wat to share it here.
Also I have OF 1.6 Ubuntu 9.10 installation guide here on Russian for now.
I hope it will be usefull.
following is the reply when i am trying to check my installation. can you please he


vishal@linux-tle1:~/OpenFOAM/OpenFOAM-1.6.x/bin> ./foamInstallationTest
Executing ./foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------

FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:

<OpenFOAM installation dir>/OpenFOAM-1.6/README

to source the OpenFOAM environment.

vishal@linux-tle1:~/OpenFOAM/OpenFOAM-1.6.x/bin>

why is it happning even if i edited the bashrc file in etc dir

please let me know.....
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   May 1, 2010, 20:59
Default
  #7
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
You should not modify that file if not to change the compiler (if you want to use the system compiler).

Usually the error you get comes out when you didn't source that bashrc file in your system bashrc (~/.bashrc), as explained in the README file.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   May 2, 2010, 04:11
Default
  #8
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Quote:
Originally Posted by alberto View Post
You should not modify that file if not to change the compiler (if you want to use the system compiler).

Usually the error you get comes out when you didn't source that bashrc file in your system bashrc (~/.bashrc), as explained in the README file.

Best,
Thanks,

you mean to say i need to put following line in my ~/.bashrc file

. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc

but, when i try to open bashrc file i get following error

vishal@linux-tle1:~/OpenFOAM> ~/.bashrc
bash: /home/vishal/.bashrc: Permission denied

i know it some ACCESS ISSUE, but i really don't know how could i get it. i guess then it should work.

can you please help.
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"

Last edited by vishal; May 2, 2010 at 04:28.
vishal is offline   Reply With Quote

Old   May 2, 2010, 07:07
Default
  #9
New Member
 
Eugen
Join Date: May 2009
Location: Russia, Obninsk
Posts: 10
Rep Power: 8
jonya is on a distinguished road
Quote:
Originally Posted by vishal View Post
Thanks,

you mean to say i need to put following line in my ~/.bashrc file

. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc

but, when i try to open bashrc file i get following error

vishal@linux-tle1:~/OpenFOAM> ~/.bashrc
bash: /home/vishal/.bashrc: Permission denied

i know it some ACCESS ISSUE, but i really don't know how could i get it. i guess then it should work.

can you please help.
Hi,
Use Sudo command. Like this:
Code:
sudo gedit
And then open bashrc file.
Eugeny
jonya is offline   Reply With Quote

Old   May 2, 2010, 11:14
Default
  #10
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Hi,

following is the erroe i am facing
and i am using system compiler for compilation.

vishal@linux-tle1:~/OpenFOAM/OpenFOAM-1.6.x> sudo kate bashrc
root's password:
kate: cannot connect to X server

what to do now...... ???
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   May 2, 2010, 12:52
Default
  #11
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,172
Blog Entries: 34
Rep Power: 83
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Vishal,

Quote:
Originally Posted by vishal View Post
you mean to say i need to put following line in my ~/.bashrc file

. $HOME/OpenFOAM/OpenFOAM-1.6.x/etc/bashrc
Yes, so far so good...

Quote:
Originally Posted by vishal View Post
but, when i try to open bashrc file i get following error

vishal@linux-tle1:~/OpenFOAM> ~/.bashrc
bash: /home/vishal/.bashrc: Permission denied
Ah, because "~/.bashrc" isn't an executable, it's a file with environment definitions. For using it directly, you should follow the same method used with OpenFOAM's bashrc, namely sourcing the file, like this:
Code:
. ~/.bashrc
or this
Code:
source ~/.bashrc
Remember when foamInstallationTest gave you:
Quote:
Originally Posted by vishal View Post
Please refer to the installation section of the README file:

<OpenFOAM installation dir>/OpenFOAM-1.6/README

to source the OpenFOAM environment.
I also thought at first that the term "source" meant "edit" in this context, but it actually
Quote:
is a way of getting commands to run in your current shell (from: The Source command)
But the best way is to start a new terminal, since it will start with a clean environment and it will (or at least should) source the ~/.bashrc file on it's own.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 2, 2010, 17:55
Default
  #12
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
I tried the same but i am still having following problem.

vishal@linux-tle1:~/OpenFOAM> . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/etc/bashrc: No such file or directory
vishal@linux-tle1:~/OpenFOAM> source ~/.bashrc
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/etc/settings.sh: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/etc/aliases.sh: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/etc/apps/paraview3/bashrc: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/etc/apps/ensight/bashrc: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
bash: /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/foamCleanPath: No such file or directory
vishal@linux-tle1:~/OpenFOAM>

What am i really suppose to do when they say following in Installation README file

if running bash or ksh (if in doubt type echo $SHELL), source the etc/bashrc file by adding the following line to the end of your $HOME/.bashrc file:
  • . $HOME/OpenFOAM/OpenFOAM-1.6/etc/bashrc
Then update the environment variables by sourcing the $HOME/.bashrc file by typing in the terminal:
  • . $HOME/.bashrc
i am really sorry for sounding so stupid.....
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   May 2, 2010, 19:01
Default
  #13
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,172
Blog Entries: 34
Rep Power: 83
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hello Vishal,

This is starting to look very strange indeed... it seems that there is something else missing.

OK, let's take a few steps back:
  • What instruction guide have you followed?
  • What files have you downloaded and unpacked?
  • What commands did you use to unpack?
  • Did you run the commands in normal user or super-user/root?
  • Have you checked if those files that it says "No such file or directory" do really exist? And what permissions do they have? Try running:
    Code:
    ls -l /home/vishal/OpenFOAM/OpenFOAM-1.6/etc/
    ls -l /home/vishal/OpenFOAM/OpenFOAM-1.6/bin/
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   May 2, 2010, 21:41
Default
  #14
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
I would suggest to get the sources from git repository, after deleting the OpenFOAM-1.6 directory. In this way you get a clean and updated source tree.

It would be better also to read some introductory guide to UNIX and Linux, so to become familiar with the environment. If you use openSUSE, there are introductory guides here:

http://www.novell.com/documentation/opensuse112/

No idea about ubuntu, since I don't use it (maybe when they stop forcing wrong practices on users like sudo...)

Good luck
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   May 3, 2010, 00:37
Default
  #15
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Hi everyone,

Finally i got the software installed the ./foamInstellationTest ran successfully for me.

THanks for all your help.
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Old   May 3, 2010, 05:05
Thumbs up
  #16
Member
 
Vishal Jambhekar
Join Date: Mar 2009
Location: University Stuttgart, Stuttgart Germany
Posts: 90
Blog Entries: 1
Rep Power: 8
vishal is on a distinguished road
Hi,

I have just followed the instructions in README and did everything from the begining.

This time i have used the OpenFOAM compiler for compilation.

The road block i was having was, i did not know how to open ".bashrc" file and thes i was trying very sutpid attempts.

finally i tried this :

vishal@linux-tle1:~> sudo kate .bashrc
(asked for password)
kate: cannot connect to X server (This messege i got)

again i put
vishal@linux-tle1:~> kate .bashrc

this worked and i got the file open.


after this i set the environmental variables by following commend

vishal@linux-tle1:~> . ~/.bashrc

and filally compiled the program using
vishal@linux-tle1/OpenFOAM:~> ./Allwmake

OpenFOAM is working fine for me

Thanks for your help.......
__________________
Cheers,

Vishal Jambhekar...
"Simulate the way ahead......!!!"
vishal is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OF 1.6 installation on Ubuntu 7.04 mstfl OpenFOAM Installation 12 March 29, 2010 00:18
OpenSuSE 11.2 installation phsieh2005 OpenFOAM Installation 26 January 8, 2010 08:31
OpenFOAM 1.6 installation in Ubuntu 9.1 jsm OpenFOAM Installation 4 January 3, 2010 23:53
OpenFOAM install on Suse 11.1 and 11.2 mkt OpenFOAM Installation 5 October 14, 2009 02:20
Installation OpenFoam on SuSe 101 mephisto OpenFOAM Installation 1 November 8, 2006 03:15


All times are GMT -4. The time now is 17:43.