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

OpenFOAM 1.7.x on Fedora 13

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2011, 10:26
Default
  #21
New Member
 
Join Date: Nov 2009
Posts: 17
Rep Power: 17
misakagan is on a distinguished road
Quote:
Originally Posted by Aurelien Thinat View Post
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?
misakagan is offline   Reply With Quote

Old   February 27, 2011, 19:18
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings misakagan,

Quote:
Originally Posted by misakagan View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   March 16, 2011, 10:59
Default
  #23
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
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 is offline   Reply With Quote

Old   March 16, 2011, 11:01
Default
  #24
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Quote:
Originally Posted by nuovodna View Post
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 ?
ruma is offline   Reply With Quote

Old   March 16, 2011, 19:04
Default
  #25
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   March 31, 2011, 21:41
Default
  #26
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
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.
ruma is offline   Reply With Quote

Old   April 1, 2011, 13:14
Default
  #27
New Member
 
Martin/Run DU
Join Date: Mar 2009
Location: Hong Kong
Posts: 25
Rep Power: 17
chnrdu is on a distinguished road
Send a message via Skype™ to chnrdu
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 $().
__________________
rdu
------------------
Martin/Run Du
chnrdu is offline   Reply With Quote

Old   April 1, 2011, 13:53
Default
  #28
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
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 is offline   Reply With Quote

Old   April 1, 2011, 16:20
Default
  #29
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Quote:
Originally Posted by l_r_mcglashan View Post
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 is offline   Reply With Quote

Old   April 1, 2011, 16:33
Default
  #30
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Here is log file
http://pastebin.com/sSE0jp8h

Attn: I hev problem installing gcc-G++4.5.2 fr source pack. Any help?
ruma is offline   Reply With Quote

Old   April 1, 2011, 16:41
Default
  #31
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Ruma,

Quote:
Originally Posted by ruma View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   April 20, 2011, 11:29
Default
  #32
New Member
 
ruma
Join Date: Mar 2011
Location: USA
Posts: 22
Rep Power: 15
ruma is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
ruma is offline   Reply With Quote

Old   April 21, 2011, 09:27
Default
  #33
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
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 ...
__________________
Regards, Gijs
gwierink is offline   Reply With Quote

Old   April 21, 2011, 18:58
Default
  #34
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________

Last edited by wyldckat; April 21, 2011 at 19:04. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Reply

Tags
1.7.x, fedora, installation


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
install openfoam in fedora Ahmed Khattab OpenFOAM Installation 32 September 23, 2011 12:11
Qt installation in Fedora for OpenFOAM......Required Urgently...... devesh.baghel OpenFOAM 1 November 17, 2009 10:08
Openfoam Installtion on Linux Fedora devesh.baghel OpenFOAM 1 November 16, 2009 18:43
Installation of OpenFOAM on Fedora 11 jits_aps90 OpenFOAM Installation 0 August 20, 2009 03:23
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 06:56


All times are GMT -4. The time now is 11:56.