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

Trouble sourcing the bashrc for 15x

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 21, 2009, 22:44
Default I've installed 1.5 on my syste
  #1
Member
 
Scott Ripplinger
Join Date: Mar 2009
Posts: 30
Rep Power: 7
sripplinger is on a distinguished road
I've installed 1.5 on my system (Ubuntu 8.04). When trying to source the 1.5.x bashrc file I get several messages saying that files are missing, all of them from a $HOME/OpenFOAM/OpenFOAM-dev directory. The 1.5.x files were all obtained through the git repository as per the instructions on the main website. Why is it looking for files in this directory?
sripplinger is offline   Reply With Quote

Old   January 22, 2009, 04:04
Default This looks like a minor error
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: http://olesenm.github.io/
Posts: 774
Rep Power: 17
olesen will become famous soon enough
This looks like a minor error in the patches sent to the git update (ie, not your fault).

You have two possible ways to get it working:

1) In the first few lines of the bashrc file, simply uncomment the following line:

Old:
# export WM_PROJECT_VERSION=1.5.x

New:
export WM_PROJECT_VERSION=1.5.x


2) As an alternative, you can also simply set
export WM_PROJECT_VERSION=1.5.x
*before* sourcing the bashrc file. You might even find this preferrable. Note that the bashrc file also respects the setting of the FOAM_INST_DIR environment variable. You could thus write something like this for a relocatable and failsafe method of sourcing the OpenFOAM files:

# point to the base of all the OpenFOAM versions:
export FOAM_INST_DIR=$HOME/OpenFOAM

# locate the newest (best?) OpenFOAM
for version in 1.5.x 1.5
do
foamrc=$FOAM_INST_DIR/OpenFOAM-$version/etc/bashrc
if [ -r "$foamrc" ]
then
export WM_PROJECT_VERSION=$version
. $foamrc
break
fi
done
olesen is offline   Reply With Quote

Old   January 22, 2009, 11:36
Default Thanks! I went with the first
  #3
Member
 
Scott Ripplinger
Join Date: Mar 2009
Posts: 30
Rep Power: 7
sripplinger is on a distinguished road
Thanks! I went with the first option there and it seems to have worked fine. Hopefully I don't have any issues compiling now ;)
sripplinger is offline   Reply With Quote

Old   January 22, 2009, 18:04
Default I tried to compile 1.5.x today
  #4
Member
 
Scott Ripplinger
Join Date: Mar 2009
Posts: 30
Rep Power: 7
sripplinger is on a distinguished road
I tried to compile 1.5.x today using Allwmake. This was unsuccessful. The original compile took several hours, but I don't seem to have any solvers or utilities available. I tried compiling again and recorded the output into a log. I've uploaded the log to rapidshare at:

http://rapidshare.com/files/187910101/make.log.html

I'm really baffled here and I'm starting to wonder if my system isn't set up right, or if the git update is still screwy.
sripplinger is offline   Reply With Quote

Old   January 22, 2009, 20:23
Default Here is a hint from your logfi
  #5
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 328
Rep Power: 12
mbeaudoin will become famous soon enough
Here is a hint from your logfile:

/bin/sh: flex: not found

Martin
mbeaudoin is offline   Reply With Quote

Old   April 7, 2009, 14:06
Default
  #6
New Member
 
Bill Rosemurgy
Join Date: Mar 2009
Location: Ann Arbor, MI
Posts: 20
Rep Power: 7
brosemu is on a distinguished road
I'm having trouble with the git repository as well, not sure if its the same problem as Scott or not.

/Volumes/openFOAM/OpenFOAM-1.5.x -> git pull
Updating ac96a58..e08258f
error: Entry 'etc/bashrc' not uptodate. Cannot merge.

Any suggestions?
brosemu 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
UDS trouble Jenny FLUENT 0 July 7, 2008 03:27
UDS trouble Jenny FLUENT 0 July 6, 2008 04:09
Bashrc for PS3 Fedora 6 and IBM sdk 21 mgarcia OpenFOAM Installation 0 November 2, 2007 14:24
How to compile OpenFOAM from scratch bashrc and cshrc danieltourde OpenFOAM Installation 2 December 15, 2006 09:30
udf trouble Eric FLUENT 1 July 6, 2004 14:49


All times are GMT -4. The time now is 14:15.