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 1.7.x on Fedora 13 (https://www.cfd-online.com/Forums/openfoam-installation/78360-openfoam-1-7-x-fedora-13-a.html)

nuovodna July 19, 2010 16:42

OpenFOAM 1.7.x on Fedora 13
 
Hi, i m trying to compile OF 1.7.x but i have some problems.

This is the first of error on output


-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/sheldon/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/potentialFoam
/usr/bin/ld: Make/linux64GccDPOpt/potentialFoam.o: undefined reference to symbol 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
/usr/bin/ld: note: 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)' is defined in DSO /home/sheldon/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so so try adding it to the linker command line
/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/potentialFoam] Error 1
make[2]: Leaving directory `/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/basic/potentialFoam'
make[1]: *** [potentialFoam] Error 2

chnrdu July 19, 2010 20:22

Please add the line to the EXE_LIBS option in the file ./Make/options in the solver directory.

$(FOAM_MPI_LIBBIN)/libPstream.so

and this option should be

EXE_LIBS = -lfiniteVolume \
$(FOAM_MPI_LIBBIN)/libPstream.so


then remake it.

Some other errors like this should be edit the options file like the above.

Because the DSO link library should be declared explicitly in Fedora 13.

Does any one have other solutions?

nuovodna July 20, 2010 06:45

It works!! Thanks

It should be great to set up a script that add the line on all files interested by the issue

lewisb2 July 20, 2010 12:22

Question
 
Where exaclty are the files that need to be changed?

nuovodna July 20, 2010 12:28

I guess they are in applications/solvers directories

~/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/*/*/Make/options

Example:

~/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/compressible/sonicFoam/Make/options

ashishnedungadi July 20, 2010 16:45

Is the libPstream.so the only error you get? I am trying to compile on Fedora 13 and I get many, many complaints about libCompressibleTurbulenceModel , and libIncompressibleTurbulenceModel, etc. etc.

I don't think this is so simple to find all the places where the LINK_EXE needs to be changed.

Does anyone know a better fix for this? It is a Fedora 13 issue. Anyone else running across this problem?

Thanks!

Ashish

nuovodna July 20, 2010 16:56

Following this guide (made by chnrdu) i have only libPstream.so problem

http://www.idurun.com/?p=544

l_r_mcglashan July 29, 2010 07:26

I found it easier to just edit the wmake/rules/linux64Gcc/general file than edit all the options files:

Code:

PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so

nuovodna July 29, 2010 09:28

Thanks!! Great tip!!

tawhiri July 30, 2010 16:43

Following on from Laurence's post, the other libraries that gave me problems when trying to compile openFOAM 1.7.0 on Fedora 13 were libcompressibleTurbulenceModel.so, libincompressibleTurbulenceModel.so, and libmeshTools.so.

The fix was to also add these to the wmake/rules/linuxGcc/general file, as per Laurence's post, using $(FOAM_LIBBIN)/libcompressibleTurbulenceModel.so, etc.

l_r_mcglashan July 30, 2010 18:18

I never had problems with those libraries. Can you post the error messages that they generated up? Was it the git repository or the source packs?

Aurelien Thinat August 6, 2010 08:35

Hi everybody,

I have to install OF 1.7 on a cluster running with red hat. I have a problem with the "zlib" library.

When I'm running the command "wmake libso OpenFOAM" I get :

Quote:

SOURCE=db/IOstreams/IOstreams/IOstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/IOstream.o
SOURCE=db/IOstreams/IOstreams/Istream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/Istream.o
SOURCE=db/IOstreams/IOstreams/Ostream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/Ostream.o
SOURCE=db/IOstreams/Sstreams/ISstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/ISstream.o
SOURCE=db/IOstreams/Sstreams/OSstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/OSstream.o
SOURCE=db/IOstreams/Sstreams/SstreamsPrint.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/SstreamsPrint.o
SOURCE=db/IOstreams/Sstreams/readHexLabel.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/readHexLabel.o
SOURCE=db/IOstreams/Sstreams/prefixOSstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/prefixOSstream.o
SOURCE=db/IOstreams/gzstream/gzstream.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-40 -I/home_crash/thinata/OpenFOAM/ThirdParty-1.7.0/zlib-1.2.3 -IlnInclude -I. -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home_crash/thinata/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/gzstream.o
In file included from db/IOstreams/gzstream/gzstream.C:29:
db/IOstreams/gzstream/gzstream.h:35:18: error: zlib.h: No such file or directory
In file included from db/IOstreams/gzstream/gzstream.C:29:
db/IOstreams/gzstream/gzstream.h:62: error: ‘gzFile’ does not name a type
db/IOstreams/gzstream/gzstream.C: In member function ‘gzstreambuf* gzstreambuf::open(const char*, int)’:
db/IOstreams/gzstream/gzstream.C:61: error: ‘file’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C:61: error: ‘gzopen’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C: In member function ‘gzstreambuf* gzstreambuf::close()’:
db/IOstreams/gzstream/gzstream.C:72: error: ‘file’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C:72: error: ‘gzclose’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C:72: error: ‘Z_OK’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C: In member function ‘virtual int gzstreambuf::underflow()’:
db/IOstreams/gzstream/gzstream.C:90: error: ‘file’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C:90: error: ‘gzread’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C: In member function ‘int gzstreambuf::flush_buffer()’:
db/IOstreams/gzstream/gzstream.C:107: error: ‘file’ was not declared in this scope
db/IOstreams/gzstream/gzstream.C:107: error: ‘gzwrite’ was not declared in this scope
make: *** [Make/linux64GccDPOpt/gzstream.o] Error 1
Does anyone have any idea ? Thank you for your help.

l_r_mcglashan August 11, 2010 04:36

Can you 'locate zlib'? If it's not on your system, then install zlib; either ask whoever admins that cluster or install it locally.

Aurelien Thinat August 11, 2010 05:04

Thank you Laurence, I already fixed this problem. Anyway you are right, it was the problem.

jaber_6010 August 19, 2010 09:00

Another Problem in compiling OF-1.7.0 in Fedora 13
 
Hi
I get errors when compiling OF-1.7.0 in Fedora 13.
I have all required tools to proceed to the installation and already set the environment variables
when I run:
Code:

wmake ./applications/solvers/basic/laplacianFoam/
I get the following:
Code:

g++ -m32 -Dlinux -DWM_DP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3  -DNoRepository -ftemplate-depth-40 -I/home/jaber/OpenFOAM/OpenFOAM-1.7.0/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/jaber/OpenFOAM/OpenFOAM-1.7.0/src/OpenFOAM/lnInclude -I/home/jaber/OpenFOAM/OpenFOAM-1.7.0/src/OSspecific/POSIX/lnInclude  -fPIC Make/linuxGccDPOpt/laplacianFoam.o -L/home/jaber/OpenFOAM/OpenFOAM-1.7.0/lib/linuxGccDPOpt \
        -lfiniteVolume -lOpenFOAM -liberty -ldl /home/jaber/OpenFOAM/OpenFOAM-1.7.0/lib/linuxGccDPOpt/openmpi-1.4.1/libPstream.so  -lm -o /home/jaber/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/laplacianFoam
/usr/bin/ld: cannot find -lfiniteVolume
collect2: ld returned 1 exit status
make: *** [/home/jaber/OpenFOAM/OpenFOAM-1.7.0/applications/bin/linuxGccDPOpt/laplacianFoam] Error 1


I already included the suggestion of Laurence. I alsa set the environment variables.

Any ideas?

Many thanks,
Jaber

l_r_mcglashan August 19, 2010 11:00

The finiteVolume library probably hasn't been built. Go to src/finiteVolume and try wmake libso. Post the error up here.

jaber_6010 August 19, 2010 14:08

Thank you Laurence
I tried your idea and this is the error I get after a long compilation output which I can not include here:
Code:

/usr/bin/ld: cannot find -ltriSurface
collect2: ld returned 1 exit status
make: *** [/home/jaber/OpenFOAM/OpenFOAM-1.7.0/lib/linuxGccDPOpt/libfiniteVolume.so] Error 1

By the way, the compilation does last a long time, more than one hour I would say. Is that normal?

l_r_mcglashan August 20, 2010 09:48

Yes. You can speed it up by running it on multiple processors if you have them by setting the environment variable WM_NCOMPPROCS to however many processors you have.

Your compilation is failing very early. The start is like:

'/home/userspace/lrm29/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/dummy/libPstream.so' is up to date.

Note: ignore spurious warnings about missing mpicxx.h headers
/openmpi-system/libPstream.so' is up to date.
/libOSspecific.o' is up to date.
/libOpenFOAM.so' is up to date.
/liblagrangian.so' is up to date.
/libtriSurface.so' is up to date.

Pipe Allwmake to a file and grep for the error.

l_r_mcglashan September 2, 2010 08:23

For everyone's information, this Fedora Gcc issue has been fixed in the Git repository of OpenFOAM:

http://www.openfoam.com/bugs/ See Issue 15

and

http://lrm29.github.com/openfoam/fed...sue-fixed.html

nuovodna October 9, 2010 05:54

OF 1.7.x in Fedora 14
 
Hi, i m compiling OF 1.7.x on Fedora 14 and everything work fine except the genericPatchFields part.

I have this error:
http://pastebin.com/40G1CpCD

Gcc version:
Name : gcc
Arch : x86_64
Version : 4.5.1
Release : 4.fc14

EDIT: solved deleting and renewing the ThirdyParty package

misakagan February 23, 2011 09:26

Quote:

Originally Posted by Aurelien Thinat (Post 270535)
Hi everybody,

I have to install OF 1.7 on a cluster running with red hat. I have a problem with the "zlib" library.

When I'm running the command "wmake libso OpenFOAM" I get :



Does anyone have any idea ? Thank you for your help.


I have the same problem. As far as I know zlib is included in third party software. So what could be the reason for this problem?

wyldckat February 27, 2011 18:18

Greetings misakagan,

Quote:

Originally Posted by misakagan (Post 296562)
I have the same problem. As far as I know zlib is included in third party software. So what could be the reason for this problem?

The library zlib was included in the ThirdParty folder in OpenFOAM 1.6, but it isn't in 1.7.0/1. Now it's assumed that it's already installed in the system. You'll need to install both the library and the headers for it. Possibly installing the package zlib-devel or zlib-dev will solve the problem.
If not, you can copy the zlib version that is in the old ThirdParty-1.6 source package - available here - to the ThirdParty-1.7.* folder, then run:
Code:

wmake libso zlib
or similar, because I'm not sure what was the complete folder name.

Best regards,
Bruno

ruma March 16, 2011 09:59

I need help. Pls help how did you build source. I have gcc 4.5 version . My system is fedora 13 (64bit). I kept the pack /usr/local/OpenFOAM-1.7.1


There wmake . I added the line link in my .bashrc (followed their instruction).
But how did you you build that. Do I have to use wmake , it is nt doing anyhting.

ruma March 16, 2011 10:01

Quote:

Originally Posted by nuovodna (Post 268078)
Hi, i m trying to compile OF 1.7.x but i have some problems.

This is the first of error on output


-lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/sheldon/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/potentialFoam
/usr/bin/ld: Make/linux64GccDPOpt/potentialFoam.o: undefined reference to symbol 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)'
/usr/bin/ld: note: 'Foam::OPstream::write(Foam::Pstream::commsTypes, int, char const*, long)' is defined in DSO /home/sheldon/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so so try adding it to the linker command line
/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[2]: *** [/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/potentialFoam] Error 1
make[2]: Leaving directory `/home/sheldon/OpenFOAM/OpenFOAM-1.7.x/applications/solvers/basic/potentialFoam'
make[1]: *** [potentialFoam] Error 2


Hi Could you build the source? Will you pls help ?

wyldckat March 16, 2011 18:04

Greetings Ruma and welcome to the forum!

Start by reading this post: http://www.cfd-online.com/Forums/ope...tml#post286214

For more details about each step, start reading from this post: http://www.cfd-online.com/Forums/ope...tml#post282463

Best regards and good luck!
Bruno

ruma March 31, 2011 20:41

HI everyone,
I am getting lots of err from LibPstream.so . I am attaching the wmake.log file fr ./Allwmake run.


/home/ruma/OpenFOAM/OpenFOAM-1.7.x/src/finiteVolume/lnInclude/readPISOControls.H:14: warning: unused variable ‘nOuterCorr’
/usr/bin/ld: cannot find -ldl/home/ruma/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so
collect2: ld returned 1 exit status
make[2]: *** [/home/ruma/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/rhoCentralDyMFoam] Error 1
make[1]: *** [rhoCentralFoam] Error 2
/usr/bin/ld: cannot find -ldl/home/ruma/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so
collect2: ld returned 1 exit status
make[2]: *** [/home/ruma/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/rhoPisoFoam] Error 1
make[1]: *** [rhoPisoFoam] Error 2

Making dependency list for source file electrostaticFoam.C
/usr/bin/ld: cannot find -ldl/home/ruma/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so
collect2: ld returned 1 exit status
make[2]: *** [/home/ruma/OpenFOAM/OpenFOAM-1.7.x/applications/bin/linux64GccDPOpt/rhoPorousSimpleFoam] Error 1
make[1]: *** [rhoPorousSimpleFoam] Error 2

The errors are mainly due to /usr/bin/ld: cannot find -ldl/home/ruma/OpenFOAM/OpenFOAM-1.7.x/lib/linux64GccDPOpt/openmpi-1.4.1/libPstream.so


Hi Luvdna, I tried to follow ur help link [ failure of DSO link] I didnt understand how to make changes.


Pls suggest me. Also, I hve gcc 4.4.5 version. I tried to install gcc-g++ 4.5.2 version, download it but couldnt install it
Pls suggest me.

chnrdu April 1, 2011 12:14

I guess the problem is the wmake general rule.

Please try this

cd ~/OpenFOAM/OpenFOAM-1.7.x/wmake/rules/linux64Gcc
edit general

change the stuff in the "PROJECT_LIBS = ... " over to

PROJECT_LIBS = -l$(WM_PROJECT) -liberty -ldl $(FOAM_MPI_LIBBIN)/libPstream.so

don't miss the space between -ldl and $().

ruma April 1, 2011 12:53

Hi,

Thnx a lot. Did you follow OF bug issues
I am trying to follow to change /solver/s Make/option file

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = -lfiniteVolume

to

EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude

EXE_LIBS = -L$(FOAM_MPI_LIBBIN) \
-lPstream \
-lfiniteVolume

http://www.openfoam.com/mantisbt/view.php?id=15

ruma April 1, 2011 15:20

Quote:

Originally Posted by l_r_mcglashan (Post 269593)
I never had problems with those libraries. Can you post the error messages that they generated up? Was it the git repository or the source packs?

This thread is xtreme useful thread
HI,
Finally I could install OF-1.7.x with Thirdparty-1.7.x on my Fedora 13 X_86_64 system with gcc 4.4.5 version.
After 4 trial , sucessful(perhaps)
Though in $FOAM_RUN(following git repo instructions: ) I tried to run
Run the first example case of incompressible laminar flow in a cavity:
  • cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity
  • blockMesh
  • icoFoam
  • paraFoam
paraFoam crashed. But I hve Paraview(viewer) 3.8.0 . here is my all log file . \


Now Step II: run each appl. (solver) (spe incompressible) separately and see if runs perfectly.

P.S : Dear l_r_mcglashan --- Thnk u so much. With all ur help, I could install it. In ur bug report, as Mattis proposed to add the http://www.openfoam.com/mantisbt/view.php?id=15


Thanks for the reference. What a strange behaviour to make default.

Can you try adding -Xlinker --add-needed to the link line? So in $WM_DIR/rules/linux64Gcc/c++ change LINKLIBSO to:

LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed

Can you let us know if this works?
--- Do I need to add /rules/linux64Gcc/c++ ; change the LINKLIBSO though I didnt get any error. I need to check each module. paraFoam dint run(crashed) .

./foamInstallationtest went well without ERROR.


I posted here & thre couple of times, Can anyone pls delete those and keep only this one.

ruma April 1, 2011 15:33

Here is log file
http://pastebin.com/sSE0jp8h

Attn: I hev problem installing gcc-G++4.5.2 fr source pack. Any help?

wyldckat April 1, 2011 15:41

Greetings Ruma,

Quote:

Originally Posted by ruma (Post 301889)
I hev problem installing gcc-G++4.5.2 fr source pack. Any help?

Check this blog post of mine: Automated scripts for building gcc 4.4.x and 4.5.x for using with OpenFOAM 1.7 series

Good luck!
Bruno

ruma April 20, 2011 10:29

Quote:

Originally Posted by wyldckat (Post 301891)
Greetings Ruma,


Check this blog post of mine: Automated scripts for building gcc 4.4.x and 4.5.x for using with OpenFOAM 1.7 series

Good luck!
Bruno

HI Bruno,
Thnks for all ur help. I hve still problem with installing gcc-g++-4.5.2 . I downloaded gcc-g++-4.5.2.tar.gz from gnu (ftp) site. And I untared it /usr/local/ . so it gives the dir
gcc-4.5.2 under which there is 2 dirs gcc/ libstdc++-v3/ . I dont see any .config file
to build up source. How to do tht step by step . I need gcc4.5.2 version in my 64 bit system. Pls help.

thnkx
ruma

gwierink April 21, 2011 08:27

Hi Ruma,

Try the following, it should work (type in line by line):
Code:

cd $HOME
mkdir gcc452
cd gcc452
wget http://ftp.gnu.org/gnu/gcc/gcc-4.5.2/gcc-4.5.2.tar.gz
tar xzf gcc-4.5.2.tar.gz
./configure
make
su -c 'make install'

At the last command you are asked for your root password. Possibly you need the mpfr and gmp libraries for building, depends ...

wyldckat April 21, 2011 17:58

Greetings to all!

@Ruma: If you don't network access on the machine where you are installing OpenFOAM, then you can still run "./build-gcc45", because it will give you a list of the files that need to be downloaded and where you need to place them for running the script again, after you have them.


edit: OK, maybe I didn't make myself very clear. If you don't have internet access on your machine, then follow these steps:
  1. Run "./build-gcc45" on your machine where you don't have internet access.
  2. The script will then tell you something like this:
    Code:

    It seems that some files were not downloaded with success. Please see the file:
    .......
    for more instructions.

    Follow the instructions on that file, namely download the listed files and place them where it tells you to.
  3. Run "./build-gcc45" on your machine again, after you've got the files where it asked you to place them.
I'm sorry for not making this clear on the blog post.

Best regards,
Bruno


All times are GMT -4. The time now is 16:47.