CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 15 on Mac OS X Leopard (https://www.cfd-online.com/Forums/openfoam-installation/57196-openfoam-15-mac-os-x-leopard.html)

gschaider March 13, 2009 11:09

Maybe you're not allowed to th
 
Maybe you're not allowed to the tutorials? I'd recommend leaving the installed tutorials untouched and make your own private copy as discribed in on the first page of chapter 2 in the UserGuide

Bernhard

gschaider March 16, 2009 07:16

Last post with the old message board and I managed to mess it up. The words "write to" have to be inserted in the first sentence to let it make any sense.

Bernhard

BTW: am I the only one who doesn't see the previous messages in this thread? All this clicking in the new software makes my head spin

bigphil March 19, 2009 06:53

Allwmake Error
 
Hi,

I am trying to install OpenFOAM 1.5 on my macbook pro intel core 2 Duo.

I have tried to followed the steps above (well, the steps that were above) and those on the wiki website.

I think everything went OK up until Allwmake.

The first error I get is:

Making distclean in test
make[1]: *** No rule to make target `distclean'. Stop.
make: *** [distclean-recursive] Error 1


I'm not entirely sure what I am doing, and any help would be much appreciated.

Thanks in advance for any help,
Philip C.

gschaider March 19, 2009 07:46

Hi Phil!

Which Allwmake are you using? Usually applications/test isn't part of the standard-build. So at least provide us with the information

a) which command you executed
b) in which directory

Bernhard

bigphil March 19, 2009 07:53

Hi Bernhard,

Thanks for helping me.

I ran ./Allwmake in the OpenFOAM/OpenFOAM-1.5 directory.

I wasn't quite sure if I set-up the gcc compiler correctly, as I already had xcode tools installed, but then I also tried install it in the OpenFOAM as it says in the README file.

Also, by the way, I get message:

This seems to be an Intel-Mac please tell me the output of 'uname -p'. Bernhard.

when I update the bashrc.


Philip.

gschaider March 19, 2009 11:02

Quote:

Originally Posted by bigphil (Post 210003)
Hi Bernhard,

Thanks for helping me.

I ran ./Allwmake in the OpenFOAM/OpenFOAM-1.5 directory.

I wasn't quite sure if I set-up the gcc compiler correctly, as I already had xcode tools installed, but then I also tried install it in the OpenFOAM as it says in the README file.

Once you installed XCode the compiler should be correctly set up.

The compiler is not the source of your problem I think. Don't know what make is doing in the test-directory and why it is trying to clean there. What you posted: is it the whole output of ./Allwmake?

Quote:

Originally Posted by bigphil (Post 210003)
Also, by the way, I get message:

This seems to be an Intel-Mac please tell me the output of 'uname -p'. Bernhard.

when I update the bashrc.


Philip.

That is from the days when I only had a PPC. You can ignore it or comment it out. Compilation should work anyway

bigphil March 19, 2009 11:14

Bernhard,

When I run ./Allwmake, it keeps running for quite a while, before exiting with an error, I just put up the first error.

I'm not sure if it helps but when I run ./Allwmake, here is the first part of what I get (with the first error bold):

dhcp-892b9661:OpenFOAM-1.5 philipcardiff$ ./Allwmake
+ cd .
+ cd wmake/src
+ make
make: Nothing to be done for `all'.
+ cd //Volumes/OpenFOAM/ThirdParty
+ ./Allwmake
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ wmake libso zlib-1.2.3
'//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libz.dylib' is up to date.
+ cd malloc
+ ./Allwmake
+ wmake libso hoard
'//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libhoard.dylib' is up to date.
+ wmake libo fbsdmalloc
'//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libfbsdmalloc.o' is up to date.
+ case "$WM_MPLIB" in
+ '[' -r //Volumes/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/darwinIntelDPOpt/lib/libmpi.so ']'
+ '[' -r //Volumes/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/darwinIntelDPOpt/lib/libmpi.a ']'
+ cd //Volumes/OpenFOAM/ThirdParty/openmpi-1.2.6
+ make distclean
Making distclean in test
make[1]: *** No rule to make target `distclean'. Stop.
make: *** [distclean-recursive] Error 1

+ rm -rf //Volumes/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/darwinIntelDPOpt
+ ./configure --prefix=//Volumes/OpenFOAM/ThirdParty/openmpi-1.2.6/platforms/darwinIntelDPOpt --disable-mpirun-prefix-by-default --disable-orterun-prefix-by-default --enable-shared --disable-static --disable-mpi-f77 --disable-mpi-f90 --disable-mpi-cxx --disable-mpi-profile
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes

================================================== ==========================
== Configuring Open MPI
=======================



I then control+c, to stop it.


Thanks for helping,
Philip

bigphil March 19, 2009 11:52

I let ./Allwmake run until it exits with an error, and many of the solvers seem to have been compiled but blockMesh has not been compiled so I cannot check are they actually working.

I can print out more of the errors if it helps or upload the Allwmake.log.

Philip

gschaider March 19, 2009 12:18

Ah. OK. That "distclean". That is not strictly an OF-problem that is while compiling OpenMPI (or before compiling it to be exact). Just ignore it and let the compilation continue. Later errors should worry you.

First test to see whether what you've got is actually working is to have a look into $FOAM_APPBIN and call any solver you might find there with -h. You should then at least see the logo and a help message

Bernhard

bigphil March 19, 2009 12:47

There are 147 apps in $FOAM_APPBIN, it seems to be missing some, such as blockMesh. (On my linux 1.4 installation, there are over 220)

When I run one of the solvers that are there, it seems to act normally and i see the OpenFOAM logo and a help message.

The next error seems to be:
+ cd conversion
+ ./Allwmake
+ wmake libso
+ wmake libso autoMesh
ld: library not found for -ldynamicMesh
collect2: ld returned 1 exit status
make: *** [//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libautoMesh.dylib] Error 1



Also if it helps, I get these warnings:

configure: WARNING: -fno-strict-aliasing has been added to CFLAGS
configure: WARNING: -finline-functions has been added to CXXFLAGS
configure: WARNING: *** Fortran 77 bindings disabled (could not find compiler)
configure: WARNING: *** Fortran 90/95 bindings implicitly disabled (because
configure: WARNING: *** Fortran 77 bindings were disabled)
configure: WARNING: *** The ROMIO io component requires the MPI profiling layer

Thanks for helping,
Philip.

gschaider March 19, 2009 16:12

Quote:

Originally Posted by bigphil (Post 210036)
There are 147 apps in $FOAM_APPBIN, it seems to be missing some, such as blockMesh. (On my linux 1.4 installation, there are over 220)

When I run one of the solvers that are there, it seems to act normally and i see the OpenFOAM logo and a help message.

That (bold in the quote) is my definition of "Works OK"

Quote:

Originally Posted by bigphil (Post 210036)
The next error seems to be:
+ cd conversion
+ ./Allwmake
+ wmake libso
+ wmake libso autoMesh
ld: library not found for -ldynamicMesh
collect2: ld returned 1 exit status
make: *** [//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libautoMesh.dylib] Error 1

There must be another error when linking libdynamicMesh.dylib further up the road

Quote:

Originally Posted by bigphil (Post 210036)
Also if it helps, I get these warnings:

configure: WARNING: -fno-strict-aliasing has been added to CFLAGS
configure: WARNING: -finline-functions has been added to CXXFLAGS
configure: WARNING: *** Fortran 77 bindings disabled (could not find compiler)
configure: WARNING: *** Fortran 90/95 bindings implicitly disabled (because
configure: WARNING: *** Fortran 77 bindings were disabled)
configure: WARNING: *** The ROMIO io component requires the MPI profiling layer

Thanks for helping,
Philip.

These warnings only concern OpenMPI. And if they were serious god would have created them as Errors ;)

bigphil March 20, 2009 07:34

Bernhard,

I'll looked again and found this error earlier on, I think this is the earliest error:


+ '[' -d //Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/openmpi-1.2.6 ']'
+ wmake libso parMetisDecomp
parMetisDecomp.dep:260: warning: overriding commands for target `Make/darwinIntelDPOpt/parMetisDecomp.o'
parMetisDecomp.dep:258: warning: ignoring old commands for target `Make/darwinIntelDPOpt/parMetisDecomp.o'
ld: duplicate symbol Foam::parMetisDecomp::decompose(Foam::Field<int>&, Foam::Field<int>&, Foam::Field<Foam::Vector<double> > const&, Foam::Field<int>&, Foam::Field<int>&, Foam::List<int> const&, Foam::List<int>&)in parMetisDecomp.o and parMetisDecomp.o
collect2: ld returned 1 exit status
make: *** [//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/openmpi-1.2.6/libparMetisDecompositionMethod.dylib] Error 1
+ wmake libso MGridGenGamgAgglomeration
MGridGenGAMGAgglomeration.dep:261: warning: overriding commands for target `Make/darwinIntelDPOpt/MGridGenGAMGAgglomeration.o'
MGridGenGAMGAgglomeration.dep:257: warning: ignoring old commands for target `Make/darwinIntelDPOpt/MGridGenGAMGAgglomeration.o'
MGridGenGAMGAgglomerate.dep:261: warning: overriding commands for target `Make/darwinIntelDPOpt/MGridGenGAMGAgglomerate.o'
MGridGenGAMGAgglomerate.dep:257: warning: ignoring old commands for target `Make/darwinIntelDPOpt/MGridGenGAMGAgglomerate.o'
ld: duplicate symbol Foam::MGridGenGAMGAgglomeration::MGridGenGAMGAgglo meration(Foam::lduMesh const&, Foam::dictionary const&)in MGridGenGAMGAgglomeration.o and MGridGenGAMGAgglomeration.o
collect2: ld returned 1 exit status
make: *** [//Volumes/OpenFOAM/OpenFOAM-1.5/lib/darwinIntelDPOpt/libMGridGenGAMGAgglomeration.dylib] Error 1


Hopefully this helps,
Philip

bigphil April 29, 2009 08:44

I got OF compiled and working but paraFoam still isn't as I said in the newer thread:
http://www.cfd-online.com/Forums/ope...-mac-os-x.html

gschaider April 29, 2009 14:33

Quote:

Originally Posted by bigphil (Post 214619)
I got OF compiled and working but paraFoam still isn't as I said in the newer thread:
http://www.cfd-online.com/Forums/ope...-mac-os-x.html

Somehow the paraview executable is not found in the PATH. On my machine (it may be different on yours) a "which paraview" gives
/Users/bgschaid/OpenFOAM/ThirdParty/Paraview-3.4.0/platforms/darwinIntel/bin/paraview
Look on your machine in a similar location (username and version-number might differ) for the executable and adapt the variables in etc/apps/paraview3/bashrc accordingly

Bernhard

PS: when refering to a specific post use the permalink in the upper right corner of that post (for instance http://www.cfd-online.com/Forums/ope...tml#post214617) this helps tremendously to quickly get to the point. Thanks


All times are GMT -4. The time now is 09:37.