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

OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 30, 2010, 22:34
Question OpenFOAM 1.7.1 installation on LINUX UBUNTU 10.10
  #1
New Member
 
Jonathan Sharon
Join Date: Oct 2010
Posts: 6
Rep Power: 6
electrosin is on a distinguished road
Hi everyone
I'm just installed UBUNTU 10.10 and downloaded the OpenFOAM 1.7.1
I'm new in linux and I'm trying to install the OpenFOAM.

I've followed the installation instruction from OpenFOAM website but I
can't get it installed on my computer. It seems like the command they
show in their site (which has to be typed in terminal) is different from the UBUNTU 10.10 version that I'm actually use (or maybe not, since I'm newbie)

can you tell me how to install it on LINUX UBUNTU 10.10 ?
or maybe there's already a thread for this problem...
if it so, then I'm sorry for making this thread
(and please tell me show me the thread if it exist)

Thx
electrosin is offline   Reply With Quote

Old   October 31, 2010, 09:25
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Jonathan,

There are indeed more threads on these things, e.g. here, here, and here. But it is probably useful to see what's exactly the problem. Where do you get stuck in the standard installation instructions? What error messages do you get etc?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   November 1, 2010, 08:34
Default
  #3
New Member
 
Jonathan Sharon
Join Date: Oct 2010
Posts: 6
Rep Power: 6
electrosin is on a distinguished road
I'm actually get stuck in environment variable settings where the instruction tell me to run a file named bashrc. when I try to run it, it gave me comment like 'no such directory or file exist'

And by the way can I install it on LINUX MINT 9? I mean it's just the same with Ubuntu isn't it

Thx for your help
electrosin is offline   Reply With Quote

Old   November 1, 2010, 10:51
Default
  #4
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Jonathan,

Quote:
I'm actually get stuck in environment variable settings where the instruction tell me to run a file named bashrc. when I try to run it, it gave me comment like 'no such directory or file exist'
Ok, good, this is something concrete . What you need to do is add a line to a file called $HOME/.bashrc (note the dot before "bashrc"). This file is sourced every time you open a terminal or tell it to be sourced. Sourcing simply means that the environment variables (simply put, rules with names for paths and some programs etc) are updated. The dot before "bashrc" (that is ".bashrc") makes the file normally not visible in your home directory, so it looks less messy. So, the thing is that you need to make bashrc update OpenFOAM's rules together with the rules (environment variables) of your system. You do this as follows:

Open a terminal and type (don't forget the dot!)
Code:
gedit $HOME/.bashrc
This opens the file .bashrc in your home directory. Then, in that file, add a line that makes .bashrc source OpenFOAM's own bashrc. So, add this line:

(dont't forget the dot at the start and note there's a space between the dot and /opt/....)
Code:
. /opt/openfoam171/etc/bashrc
That is, if you used the Ubuntu method as described here. Then, save and close the file. After that you need to source .bashrc by typing in the terminal:

(note, two dots this time and also a space between the first dot and $HOME/.bashrc)
Code:
. $HOME/.bashrc
Quote:
can I install it on LINUX MINT 9?
Yes, no problem. Although I am not sure whether you can use the "sudo apt-get" method as described on the OpenFOAM website. Mint is, like Ubuntu, a Debian derivative and very similar to Ubuntu. You might be able to use the same method, but I am not sure. If not, you can either download the OpenFOAM binaries or compile it yourself. Both no problem.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   November 9, 2010, 11:00
Default
  #5
New Member
 
Faiez
Join Date: Nov 2010
Posts: 1
Rep Power: 0
emix101 is on a distinguished road
Hi evrybody; I'm new here.
done searching all over the internet for answer on how to install openfoam on my ubuntu 10.10,my problem is also the same with electrosin..

I tried to follow gwirink guide but when i run
. $HOME/.bashrc

the output was like this
Quote:
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamEtcFile: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/settings.sh: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/aliases.sh: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/apps/paraview3/bashrc: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/etc/apps/ensight/bashrc: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamCleanPath: No such file or directory
I install this using source pack and under root command.

Anyone couls help me??
emix101 is offline   Reply With Quote

Old   November 9, 2010, 13:04
Default
  #6
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Faiez,

Quote:
I install this using source pack and under root command.
Why? I think this is a bad idea. It's better to do it as a normal user.

Quote:
bash: /root/OpenFOAM/OpenFOAM-1.7.1/bin/foamEtcFile: No such file or directory
Well, it looks like you may have compiled as root, but not in the root directory, but e.g. in your user home. So, when you then source bashrc you're sourcing root's bashrc, but have the OpenFOAM line in your user's bashrc.
I suggest you install/compile as normal user. But if you explicitely want to install as root, you need to source OpenFOAM in root's bashrc, i.e.

Code:
su
gedit /root/.bashrc &
Then add
Code:
. /opt/openfoam171/etc/bashrc
(or whatever version you have ...), save and close the file.
And finally source root's bashrc by typing as root
Code:
. $HOME/.bashrc
But again, I really think it's better to install as user ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   December 24, 2010, 16:40
Default Urgent
  #7
New Member
 
abdelsalam
Join Date: Dec 2010
Posts: 1
Rep Power: 0
prof_eng_abdelsalam is on a distinguished road
Please Iím new in this field of OpenFOAM and I need your help .How I can

install this Programme on my computer . I need the details such as what

operating system I should use, and all other instruction

(I donít know anything).


Iíll use it in my doctorial studies so I need help quickly as possible.

Thanks.
prof_eng_abdelsalam is offline   Reply With Quote

Old   December 25, 2010, 04:27
Default
  #8
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Dear Abdelsalam,

Probably the easiest to start with would be Ubuntu, since it is a quite easy system to use, lots of documentation, and OpenCFD has released a Debian package of OpenFOAM (i.e. works on Ubuntu out of the box). Just follow the links and have a go.
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   January 6, 2011, 10:07
Default
  #9
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 7
morard is on a distinguished road
Hello all,
I am trying to install OpenFOAM 1.7.1 on my UBUNTU 10.10, but there is a problem:

/usr/bin/ld: cannot find -liberty
collect2: ld returned 1 exit status

Do you know how to solve this?
morard is offline   Reply With Quote

Old   January 6, 2011, 10:22
Default
  #10
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 918
Rep Power: 16
akidess will become famous soon enough
Dejan, this question has been asked and answered numerous times, eg. Problems with compiling.
akidess is offline   Reply With Quote

Old   January 6, 2011, 11:14
Unhappy
  #11
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 7
morard is on a distinguished road
Sorry....

Thanks for the liberty, it works now.
But, I have problems with Paraview. When I execute ./Allclean, this happens:

++ rm -rf 'platforms/build-*'
++ cd openmpi-1.4.1
++ make distclean
make: *** No rule to make target `distclean'. Stop.
.....
.....

/bin/sh: gmake: not found

This is probably again something trivial, but I have very little experience with ubuntu.
morard is offline   Reply With Quote

Old   January 6, 2011, 11:18
Default
  #12
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 7
morard is on a distinguished road
I solved problems.
morard is offline   Reply With Quote

Old   January 19, 2011, 13:29
Default gmake not found
  #13
New Member
 
rlobosco
Join Date: Nov 2009
Posts: 5
Rep Power: 7
rlobosco is on a distinguished road
Hi morard,
How did you solve the problem of gmake not found?
I have the same problem.
With best regards,
rlobosco
rlobosco is offline   Reply With Quote

Old   January 19, 2011, 14:30
Default
  #14
Member
 
Dejan Morar
Join Date: Nov 2010
Posts: 78
Rep Power: 7
morard is on a distinguished road
Hi rlobosco,

if I remember correctly, I've done the following:

sudo aptitude install Qt

I found this somewhere on the forum. inform me if this works.

Best
morard is offline   Reply With Quote

Old   January 19, 2011, 19:30
Default
  #15
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,511
Blog Entries: 33
Rep Power: 74
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings to all!

@rlobosco: About gmake, I've already mentioned this before in another thread:
Quote:
Originally Posted by wyldckat View Post
The error associated to gmake is an ironic error: gmake stands for GNU make, which is the version usually packed with Linux distributions and always named as make. So, the simplest fix is to make a symbolic link of gmake to make; a simple non-root way to do this is:
Code:
ln -s `which make`  $WM_PROJECT_DIR/bin/gmake
This should create a symbolic link of make to the link gmake in OpenFOAM's bin folder.
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 26, 2011, 08:41
Default
  #16
New Member
 
Join Date: Jan 2011
Posts: 1
Rep Power: 0
blubberino is on a distinguished road
Hi everyone,

i want to install openFOAM on Ubuntu 10.10. All systemupdates are installed.
When I type the command "sudo apt-get install openfoam171" I get the following error:

openfoam171: Hšngt ab: libncurses5 (>= 5.7+20100313) aber 5.7+20090803-2ubuntu3 soll installiert werden
E: Kaputte Pakete
blubberino is offline   Reply With Quote

Old   January 26, 2011, 08:49
Default
  #17
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 918
Rep Power: 16
akidess will become famous soon enough
To put your problem into more human readable form: The openfoam deb package specifies a dependency of libncurses that comes with ubuntu 10.10, but then asks the package manager to install the package from ubuntu 10.04 (20090803).

A solution might be that you manually install libncurses from your package manager, after which the dependency will be satisfied before the installer can trip over it.
akidess is offline   Reply With Quote

Old   February 6, 2011, 12:32
Default Problem with First Code on Open Foam
  #18
New Member
 
Rogelio Chovet
Join Date: Feb 2011
Posts: 4
Rep Power: 5
chichovet is on a distinguished road
I'm getting started with the ubuntu and open foam.
I already got a problem with the first step for installing the OpenFoam. When I introduce the code in the terminal. it gives me this answer.
sh: cannot open maverick: No such file
I got Ubuntu 10.10 and i have looked everywhere for answers, but hadn't find anything.
Can someone tell me what to do
Thanx
Rogelio
chichovet is offline   Reply With Quote

Old   February 7, 2011, 05:33
Default
  #19
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 382
Rep Power: 8
gwierink is on a distinguished road
Hi Rogelio,

Quote:
When I introduce the code in the terminal. it gives me this answer.
sh: cannot open maverick: No such file
Can you explain in detail what you have done and what command you give that results in the error?
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   February 7, 2011, 11:09
Default
  #20
New Member
 
Rogelio Chovet
Join Date: Feb 2011
Posts: 4
Rep Power: 5
chichovet is on a distinguished road
Quote:
Originally Posted by gwierink View Post
Hi Rogelio,


Can you explain in detail what you have done and what command you give that results in the error?
Hi,
As it says at the openfoam page i introduced in the terminal this code:

sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu <maverick> main >> /etc/apt/sources.list"

after that the terminals gives me the error tha i writed above.
Thanks for the help
chichovet 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
OpenFOAM 1.7 installation on Redhat linux maxims OpenFOAM Installation 2 November 30, 2012 05:29
Compiling OpenFOAM 1.7.1 on Ubuntu 10.10 samiam1000 OpenFOAM Installation 4 November 24, 2010 09:00
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 15:25


All times are GMT -4. The time now is 08:29.