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

OpenFOAM13 for Mac OSX Darwin 104

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2006, 10:19
Default Dear All, The updated Mac v
  #1
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,902
Rep Power: 33
hjasak will become famous soon enough
Dear All,

The updated Mac version has finally arrived: you can download it from my personal Mac pages

http://homepage.mac.com/h.jasak/ in the OpenFOAM-1.3 directory.

Now that I know what I'm doing, everything apart from FoamX is operational.

Installation instructions:
1) download the disk images
2) mount them (double-click the disk image file). This should produce a /Volumes/darwin and /Volumes/OpenFOAM-1.3 directory
3) create a directory ~/OpenFOAM
4) in the directory, make soft links to the disk images:

cd ~/OpenFOAM
ln -s /Volumes/darwin .
ln -s /Volumes/OpenFOAM-1.3 .

5) set up the environment in your bashrc/cshrc in the usual way:

cd ~
cp -r ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3 ~

Into your .cshrc file add:

source ~/.OpenFOAM-1.3/cshrc

and you're done!

I would appreciate a success/failure report from any Mac lovers.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 5, 2006, 14:33
Default Hi, I'm new to Mac and OpenFOA
  #2
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi, I'm new to Mac and OpenFOAM. I did everything correct, but I receiving two erros. (I don't kown if it has anymore errors)

First Error- When I check foamInstallationTest I receive this error:
gcc 3.3
WARNING: Conflicting installations:
foam settings: /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

Second Error - When I tried to run blockMesh on a tutorial I received this error:
dyld: Library not loaded: /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Referenced from: /Users/JMB/OpenFOAM/OpenFOAM-1.3/applications/bin/darwinDPOpt/blockMesh
Reason: image not found
Trace/BPT trap

Does OpenFOAM have to be run in X11 or can be run in Terminal?
How can I correct this problems?

Thanks,

Julio Barros
jmb_jr is offline   Reply With Quote

Old   May 5, 2006, 16:00
Default Hi, You don't need to worry
  #3
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,902
Rep Power: 33
hjasak will become famous soon enough
Hi,

You don't need to worry about foamInstallationTest - OS X is a very closely contorlled environment and I get the same.

For me, icoFoam and various other tools run both from the terminal and xterm. However, paraFoam (paraview) needs X and will only run from the xterm.

As for the problem with the libary, it all works here and I am running off a disk image. Please check that you've got DYLD_LIBRARY_PATH set (in OpenFOAM-1.3/.cshrc). By the way, which shell are you running?

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   May 5, 2006, 17:42
Default Hi, I'm running bash shell.
  #4
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi,

I'm running bash shell.

Thanks for the help!

Julio
jmb_jr is offline   Reply With Quote

Old   May 5, 2006, 17:54
Default Hi, Sorry for the double po
  #5
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi,

Sorry for the double post, but I forgot to tell about the variable. (I couldn't edit the post... Sorry!!)

There is a DYLD_LIBRARY_PATH, but when I check it (echo $DYLD_LIBRARY_PATH) I got nothing set...

Thanks again,

Julio
jmb_jr is offline   Reply With Quote

Old   May 5, 2006, 18:00
Default Looks like I've messed up the
  #6
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,902
Rep Power: 33
hjasak will become famous soon enough
Looks like I've messed up the setup. In ~/OpenFOAM/OpenFOAM-1.3/.bashrc
it should say

export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH


Try setting in by hand and all will be well. I will re-pack it in the next few days...

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 1, 2006, 12:35
Default Hi, all First of all, I wan
  #7
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi, all

First of all, I want to thank Hrv for making OpenFOAM running in MacOSX.

But I'm facing a small problem. I want to compile a new solver. I think I did everything correctly, but the wmake fails with thousand of errors. As I'm new to OpenFOAM I don't know what this error could be.
I did all the steps above to run OpenFOAM and I thought the problem could be the mounted image, so I manage to copy this images to my disk (command: "cp -R")

Is it possible to compile anything in OpenFOAM running MacOsX?

Thanks a lot,

Julio Barros
jmb_jr is offline   Reply With Quote

Old   August 1, 2006, 13:41
Default Hi Julio! Your last questio
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Julio!

Your last question first: Yes, it is (possible to compile stuff on Mac OS X).

It's very hard to judge what kind of problem you have by the number of compiler errors (but it is greatly appreciated that you don't post all thousand of them here). But if you paste the first few (and the last few lines) here, maybe someone can help you.

About "cp -R to my disk": Could you specify (I don'T fully understand what youz mean with that)? Because I guess you are aware of the TheFileSystemOnMySystemDiskIsNotCaseSensitiveButOp enFoamIs-problem.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   August 1, 2006, 16:23
Default Hi, Bernhard. The last erro
  #9
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi, Bernhard.

The last errors are:
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:99: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:102: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:105: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:117: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:120: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:131: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:132: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/UListIO.C:134: error: 'const class Foam::UList<foam::scalar>' has no member named 'size'
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/token.H: At global scope:
/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude/token.H:370: warning: inline function 'void Foam::token::operator=(int*)' used but never defined
make: *** [Make/darwinDPOpt/myicoFoam.o] Error 1

I don't know if I mess the files with this command "cp -R ". For what I understood in the "man cp" this -R substitutes the -r. But I know the Mac isn't CaseSentitive.

I think the best way is what should I do to compile stuff on Mac?

Thanks,

Julio Barros
jmb_jr is offline   Reply With Quote

Old   August 2, 2006, 05:02
Default Actually, there is a number of
  #10
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,902
Rep Power: 33
hjasak will become famous soon enough
Actually, there is a number of name clashes in the OpenFOAM source files if you use a case-insensitive filing system and this is the problem you are facing. If you have a look at the disk image I provide, you will see it is actually formatted as case-sensitive. This was the easiest way to get OpenFOAM to work and keep it consistent.

What you should do is to use the case-sensitive filing system for your installation and build your stuff into FOAM_USER_APPBIN and FOAM_USER_LIBBIN. This allows you to work with the installation without changing any of the files. I have just tested this on my Mac and all is well.

Good luck,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 2, 2006, 13:09
Default Hi, Hrvoje and All You mean
  #11
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi, Hrvoje and All

You mean that I have to reformat my HD to be case-sensitive or I can do something else?

I did what you told: to compile the stuff in FOAM_USER_APPBIN, and I'm getting new errors! :'( (I'm back linking the OpenFOAM image)

Some are of those type:
#################
from myicoFoam.C:33:
/usr/lib/gcc/powerpc-apple-darwin8/4.0.0/include/limits.h:122:61: error: limits.h: No such file or directory
#################

Others are:
######
/usr/include/gcc/darwin/4.0/c++/cstdlib:93: error: '::div_t' has not been declared
#####

Could it still be the CaseSensitiveProblemThing ????

I'm really interesting to run OpenFOAM smoothly in my Mac. So if you all could help me out I'd be very grateful. (I don't want to install a linux in my Mac Mini ;-) )

Thanks very much,

Julio Barros
jmb_jr is offline   Reply With Quote

Old   August 2, 2006, 13:28
Default No, you do not reformat the di
  #12
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,902
Rep Power: 33
hjasak will become famous soon enough
No, you do not reformat the disk to be case-sensitive. The operating system is likely to get very upset if you do that. Mac has got this utility of creating disk images and this is what I distribute. The mistake you did was to copy the OpenFOAM installation out of the disk image - no need to do that.

What you need to do is mount a disk image the way I've described and then run your stuff in local space. You do not need to format your local space to be case sensitive.

As for the problems you report now, this is to do with the development environment on a Mac. If you haven't done so already, you need to go to the Apple web site, register and download the development environment - I think it's called Xcode (but Bernhard may know better).

Good luck,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 2, 2006, 15:29
Default Hi, all. I have the Xcode i
  #13
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi, all.

I have the Xcode installed in my Mac. I don't know if I need anything else ?!?!?!

I'll try to install the new Xcode to see if it works.

Thanks a lot,

Julio Barros
jmb_jr is offline   Reply With Quote

Old   August 2, 2006, 16:18
Default Hi Sorry for the spam, but
  #14
New Member
 
Julio Manuel Barros Jr.
Join Date: Mar 2009
Location: Rio de Janeiro, Rio de Janeiro, Brazil
Posts: 11
Rep Power: 17
jmb_jr is on a distinguished road
Hi

Sorry for the spam, but just to inform that I making progress!!

I manage to clean some of the errors by just uninstalling and reinstalling the Xcode Tools

But know the errors are different

Making dependency list for source file myicoFoam.C
could not open file fvBoundaryMesh.H for source file myicoFoam.C
could not open file surfaceInterpolation.H for source file myicoFoam.C
could not open file scalarIOField.H for source file myicoFoam.C
could not open file volFieldsFwd.H for source file myicoFoam.C
could not open file surfaceFieldsFwd.H for source file myicoFoam.C
could not open file slicedVolFieldsFwd.H for source file myicoFoam.C
could not open file slicedSurfaceFieldsFwd.H for source file myicoFoam.C
could not open file lduAddressing.H for source file myicoFoam.C

SOURCE_DIR=.
SOURCE=myicoFoam.C ; g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -c $SOURCE -o Make/darwinDPOpt/myicoFoam.o
/Users/JMB/OpenFOAM/OpenFOAM-1.3/wmake/bashScripts/mkObjectDir /Users/JMB/OpenFOAM/JMB-1.3/applications/bin/darwinDPOpt/myicoFoam
g++ -Ddarwin -DDP -Wall -W -Wno-unused-parameter -Wold-style-cast -O3 -ffast-math -DNoRepository -ftemplate-depth-30 -I/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/finiteVolume/lnInclude -I/Users/JMB/OpenFOAM/OpenFOAM-1.3/src/OpenFOAM/lnInclude -IlnInclude -I. -fPIC -lpthread Make/darwinDPOpt/myicoFoam.o -L/Users/JMB/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt \
-lfiniteVolume -lOpenFOAM -lpthread -L/Users/JMB/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/dummy -lPstream -o /Users/JMB/OpenFOAM/JMB-1.3/applications/bin/darwinDPOpt/myicoFoam
/usr/bin/ld: warning can't open dynamic library: /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libtriSurface.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libfoamUser.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: warning can't open dynamic library: /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libz.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
/usr/bin/ld: Undefined symbols:
Foam::polyMeshAdder::addWithoutPatches(Foam::polyM esh&, Foam::polyMesh const&, Foam::faceCoupleInfo const&)referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::polyMeshAdder::polyMeshAdder()referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::mapAddedPolyMesh::oldCellMap() const referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::mapAddedPolyMesh::oldFaceMap() const referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::mapAddedPolyMesh::addedCellMap() const referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::mapAddedPolyMesh::addedFaceMap() const referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int,> > const&, bool)referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::patchWave::~patchWave()referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::cellDistFuncs::getPatchIDs(Foam::word const&) constreferenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
_gzclose referenced from libOpenFOAM expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libz.dylib
_gzopen referenced from libOpenFOAM expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libz.dylib
_gzread referenced from libOpenFOAM expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libz.dylib
_gzwrite referenced from libOpenFOAM expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libz.dylib
Foam::wallPoint::greatPoint referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::operator<<(Foam:stream&, Foam::wallPoint const&)referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::operator>>(Foam::Istream&, Foam::wallPoint&)referenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<in t,> > const&) constreferenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::cellDistFuncs::correctBoundaryFaceCells(Foam ::HashSet<int,> > const&, Foam::Field<double>&, Foam::Map<int>&) constreferenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
Foam::cellDistFuncs::correctBoundaryPointCells(Foa m::HashSet<int,> > const&, Foam::Field<double>&, Foam::Map<int>&) constreferenced from libfiniteVolume expected to be defined in /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libmeshTools.dylib
collect2: ld returned 1 exit status

I think know the problem must be some of the environment variables.

I'm almost there!

Thanks,

Julio Barros
jmb_jr is offline   Reply With Quote

Old   August 9, 2006, 19:49
Default Hi Julio! Is the file /Us
  #15
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Julio!

Is the file
/Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libtriSurface.dylib
at exactely that location on your hard-drive? I doubt it (if Hrv had direct access to your computer you wouldn't contact him through the message board ;) ) I think it's at /Users/JMB/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/libtriSurface.dylib. I have some idea what could be the problem, but the quickest (and dirtiest) solution is to use a symbolic link ("ln -s /User/JMB /User/hjasak" assuming that Hrv doesn't regulary work on your computer). The other one involves recompiling the OpenFOAM on your Harddisk.

Disclaimer: I havne't tested it (and the problem is that sometimes I'm under the impression that even global warming can be fixed with a well placed symbolic link. Problem is: nobody knows where)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   November 5, 2006, 15:55
Default I have the same troblem too. I
  #16
vivekjoshi
Guest
 
Posts: n/a
I have the same troblem too. I have a 32 bit SUSE 10.1 linux installation. I am not able to get rid of the critical error.
gcc 4.1.0
WARNING: Conflicting installations:
foam settings: /home/joshi/OpenFOAM/linux/gcc-4.1.0/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR
I check the following to make sure my PATH is correct
echo $PATH
/home/joshi/OpenFOAM/OpenFOAM-1.3/src/lam-7.1.1/platforms/linuxGcc4DPOpt/bin:/ho me/joshi/OpenFOAM/OpenFOAM-1.3/src/mico-2.3.11/platforms/linuxGcc4DPOpt/bin:/hom e/joshi/OpenFOAM/linux/j2sdk1.4.2_05/bin:/home/joshi/OpenFOAM/linux/gcc-4.1.0/bi n:/home/joshi/OpenFOAM/linux/gcc-4.1.0/../gdb-6.4/bin:/home/joshi/OpenFOAM/joshi -1.3/applications/bin/linuxGcc4DPOpt:/home/joshi/OpenFOAM/OpenFOAM-1.3/applicati ons/bin/linuxGcc4DPOpt:/home/joshi/OpenFOAM/OpenFOAM-1.3/wmake:/home/joshi/OpenF OAM/OpenFOAM-1.3/bin:/home/joshi/OpenFOAM/linux/bin:/home/joshi/OpenFOAM/OpenFOA M-1.3/src/lam-7.1.1/platforms/linuxGcc4DPOpt/bin:/home/joshi/OpenFOAM/OpenFOAM-1 .3/src/mico-2.3.11/platforms/linuxGcc4DPOpt/bin:/home/joshi/OpenFOAM/linux/j2sdk 1.4.2_05/bin:/home/joshi/OpenFOAM/linux/gcc-4.1.0/bin:/home/joshi/OpenFOAM/joshi -1.3/applications/bin/linuxGcc4DPOpt:/home/joshi/OpenFOAM/OpenFOAM-1.3/applicati ons/bin/linuxGcc4DPOpt:/home/joshi/OpenFOAM/OpenFOAM-1.3/wmake:/home/joshi/OpenF OAM/OpenFOAM-1.3/bin:/usr/local/bin:/usr/bin:/home/joshi/bin:/usr/X11R6/bin:/bin :/usr/games:/opt/gnome/bin:/opt/kde3/bin:/opt/cross/bin:/usr/lib/qt3/bin:/home/j oshi/OpenFOAM/linux/paraview-2.4.2/bin
  Reply With Quote

Old   November 6, 2006, 05:17
Default - are you running BASH (uses $
  #17
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
- are you running BASH (uses $PATH) or (t)csh (uses $path)?
- which gcc returns what?
- does it still run?
- check one by one the directories in the $PATH for a gcc which is executable and readable etc.
mattijs is offline   Reply With Quote

Old   March 8, 2007, 14:55
Default Hi all, I've been trying ve
  #18
New Member
 
Chris Harvey
Join Date: Mar 2009
Posts: 2
Rep Power: 0
charvey is on a distinguished road
Hi all,

I've been trying very hard to get openfoam running on my macbook. I've downloaded the binaries and followed the instructions but no matter which program I run, I always get errors like this:

chris-harveys-computer:~ charvey$ /Volumes/OpenFOAM-1.3/applications/bin/darwinDPOpt/autoRefineMesh; exit
dyld: Library not loaded: /Users/hjasak/OpenFOAM/OpenFOAM-1.3/lib/darwinDPOpt/dummy/libPstream.dylib
Referenced from: /Volumes/OpenFOAM-1.3/applications/bin/darwinDPOpt/autoRefineMesh
Reason: image not found

For some reason it appears to be trying to access libraries on the "hjasak" username. I've checked all the environment variables and all of them point to the correct locations (as far as I can see). When I open the binaries up in textedit I can see (scattered among all the machine code) paths which have "hjasak" in them. It appears to have been hardcoded in. However when I check the uncompiled source code that came with the download, I can't find "hjasak" in there anywhere. None of the bashrc or cshrc files appear to have any references to this username in them either. I just don't know why I'm getting these problems.

Can anyone shed any light on this please?

I've tried it using both the bash and csh shells btw.

Any help will be greatly appreciated. The prospect of running CFD on my mac is just too fantastic to give up on this.

Thanks very much,
Chris
charvey is offline   Reply With Quote

Old   March 8, 2007, 15:08
Default I followed Bernhard's suggeste
  #19
New Member
 
Martin Karlsson
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 13
Rep Power: 17
martin is on a distinguished road
I followed Bernhard's suggesten with a soft link (se the post above) when I had the same problem.

Martin
martin is offline   Reply With Quote

Old   March 8, 2007, 15:40
Default Alternatively, you can rebuild
  #20
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,902
Rep Power: 33
hjasak will become famous soon enough
Alternatively, you can rebuild OpenFOAM yourself from scratch. Just make a complete case-sensitive read-write disk image, move all the stuff from the compressed image into the new one, do wcleanAll and Allwmake and you're in business.

I am pretty certail that all you seed is

setenv DYLD_LIBRARY_PATH $LD_LIBRARY_PATH

That fixed it for me when I built on an external disk. However, if this does not work (and there are indications that people had trouble), just rebuild the lot.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differences OpenFOAM12 and OpenFOAM13 lr103476 OpenFOAM Running, Solving & CFD 43 July 22, 2008 17:46
OpenFOAM14 for Mac OSX Darwin 104 gschaider OpenFOAM Installation 118 July 20, 2008 06:19
Problems in OpenFOAM13 srcthermophysicalmodelsliquid aderliner OpenFOAM Running, Solving & CFD 1 March 18, 2007 02:33
What is wrong with the OpenFOAM13 on Cygwin151 waynezw0618 OpenFOAM Installation 0 November 6, 2006 21:31
Help%7e%7einstall openfoam13 on fc5%7e%7e aderliner OpenFOAM Installation 2 September 11, 2006 08:24


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