CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

problem about installing FOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 1, 2004, 00:12
Default problem about installing FOAM
  #1
linux freshman
Guest
 
Posts: n/a
dear all

i'm a beginer for Linux. in order to use FOAM, i install linux. i do not known how to set the variance in .bash. anybody tell me a detailed installation. or show me the bash file. thanks.
  Reply With Quote

Old   November 1, 2004, 02:46
Default Re: problem about installing FOAM
  #2
Hrvoje Jasak
Guest
 
Posts: n/a
Heya,

The variables should have been already set up for you - all you need to do is:

cp -r foam2.3.2/.foam2.3.2 $HOME

and add the following line

. $HOME/.foam2.3.2/bashrc

into the ~/.bashrc file. Incidentally, the variable syntax you need for bash is something like this:

export WM_LINK_LANGUAGE=c++

You should have received the installation guide with your download, try looking there for more help.

Hrv
  Reply With Quote

Old   November 2, 2004, 02:39
Default Re: problem about installing FOAM
  #3
linux freshman
Guest
 
Posts: n/a
1. $HOME is where? 2. (. $HOME/.foam2.3.2/bashrc) the dot before $ is added there? 3. ~/.bashrc is where?
  Reply With Quote

Old   November 2, 2004, 09:56
Default Re: problem about installing FOAM
  #4
Hrvoje Jasak
Guest
 
Posts: n/a
Looks to me like you need Unix 101:

- $HOME is your home directory. You will get there if you type "cd"

- ~ is another name for your home directory. "cd ~" has got the same effect as cd

- (. $HOME/.foam2.3.2/bashrc): Yes, there is a dot before $HOME

I strongly recomment a basic book on unix or a little search for unix intro on the web.

Hrv
  Reply With Quote

Old   November 2, 2004, 09:58
Default Re: problem about installing FOAM
  #5
matej
Guest
 
Posts: n/a
$HOME is variable usually set by the system to represent home directory of the user. Typically it will be /home/<your_user_name> on a command line of the console type echo $HOME and you will see, where is your home.

your .bashrc file is located in your home directory.

. in bashrc file or in bash generally will do the same as command source would do.

Sorry to say so, but if you're going to work with FOAM on any unix/linux system,you'd better go to the library or google for some unix basics kick offs or some kind of tutorial to get familiar with the basics......

matej
  Reply With Quote

Old   November 4, 2004, 03:08
Default Re: problem about installing FOAM
  #6
linux freshman
Guest
 
Posts: n/a
dear all

i install foam as follows.

OS: REDHAT10 CPU:AMD32bit 3000+

fist,generate a new directory foam in /root and copy certain files to it: /root/foam(including two files and one sub-directory)

(file) foam2.3.General.gtgz

(file) foam2.3.linuxGcc340ptLAM.gtgz

(sub-directory)

linuxGcc340ptLAM

in sub-dir linuxGcc340ptLAM, five tar files were included, such as dx-4.3.2.gz, gcc-3.4.2.gz,gdb-6.1.1.gz,etc. then i tar this tar_files in the directory that including them. after this, a new directory foam2.3 was generated.

second,setting up a user

2.1: now,type cp -r foam2.3/.foam2.3 $HOME

2.2: vi $HOME/.foam2.3/bashrc, the first 4 lines as followed,

line1; export WM_PROJECT=foam

line2; export WM_PROJECT_VERSION=2.3

line3; export WM_PROJECT_LANGUAGE=c++

line4; export WM_PROJECT_INST_DIR=$HOME/$WM_PROJECT is it right?

2.3: after add . $HOME/.foam2.3/bashrc to the end, source $HOME/.foam2.3/bashrc. then . $HOME/.bashrc

after doing this i just find a getHostInfo file in /root/foam/foam2.3/applications/bin/linuxGcc340ptLAM directory. but after i type getHostInfo, os tell me that: error while loading shared libraries : libstdc++.so.6 : can not open shared object file: no such file or directory

the file (libstdc++.so.6 is located in the directory /root/foam/linuxGcc340ptLAM/gcc-3.4.2/lib.

I do not what wrong happened, please help me. i'm reading a linux basic book. thanks for your help. best regards.
  Reply With Quote

Old   November 4, 2004, 11:59
Default Re: problem about installing FOAM
  #7
Hrvoje Jasak
Guest
 
Posts: n/a
May I suggest you have a look at the archive/aks the question on the FOAM user forum:

http://tfdpc67.tfd.chalmers.se/foam/discus/index.html

Hrv
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 11 September 4, 2024 05:28
Sonic foam solver for a subsonic problem chable OpenFOAM Running, Solving & CFD 2 August 15, 2016 11:11
Problem Installing OF 1.6 Ubuntu 9.10 (64 bit) - How to use GCC 4.4.1 Future Science OpenFOAM Installation 43 November 10, 2011 08:17
Problem installing OpenFoam-version 1.7.1 on SuSE 11.3 using the RPM Pack lil_jam OpenFOAM Installation 5 April 28, 2011 15:09
Problem installing on Ubuntu 9.10 -> 'Cannot open : No such file or directory' mfiandor OpenFOAM Installation 2 January 25, 2010 10:50


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