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

Problems installin OpenFoam-1.5-dev in Ubuntu 8

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2009, 16:16
Default Problems installin OpenFoam-1.5-dev in Ubuntu 8
  #1
New Member
 
Teresa Margarida Mata
Join Date: Sep 2009
Posts: 3
Rep Power: 17
tmata2002 is on a distinguished road
Hi Foamers,

I am trying to install OpenFoam-1.5-dev in Ubuntu 8. I have downloaded the developer version from the svn repository, using the comand svn checkout <path of the version>. After that I downloaded the Third Party version from the OpenCFD website.

I have decompressed both packages with no problems. I also made the changes in the .bashrc file settings.ch file, after some errors were reported by the foamInstalationCheck utility.

Then, I tried to compile with no sucess. After analysing the errors, I identified some problems that terminate the compilation.

1- It looks like that flex is needed in order to perform the compilation. Am I right? I remenber when I compiled version 1.5 I did not need it, but, of course, versions are different. The error message that I got that made me think that is the following

SOURCE=triSurface/interfaces/STL/readSTLASCII.L ; flex --c++ -f $SOURCE ; mv lex.yy.cc Make/linuxGccDPOpt/readSTLASCII.C ; g++ -m32 -Dlinux -DDP -DFOAM_DEV_REVISION_NUMBER=1433 -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/titio/OpenFOAM/ThirdParty/zlib-1.2.3 -IlnInclude -I. -I/home/titio/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/titio/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/readSTLASCII.C -o Make/linuxGccDPOpt/readSTLASCII.o
/bin/sh: flex: not found.

Besides flew, what other software I need that is not included in the Third Party Software?

2 - I noticed that many of compilation commands failed because libraries, like for example libfiniteVolume.so, could not be found. I think this problem is due to the flex problem. A typical error of this kind is

+ wmake libso meshTools
/usr/bin/ld: cannot find -ltriSurface
collect2: ld returned 1 exit status
make: *** [/home/titio/OpenFOAM/OpenFOAM-1.5-dev/lib/linuxGccDPOpt/libmeshTools.so] Error 1

Can anyone help me out here. I am reading other posts concerning but I can not figure out what is going on.

Good weekend to all and thanks in advance,

Teresa Mata
tmata2002 is offline   Reply With Quote

Old   September 19, 2009, 04:49
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Teresa,

1. The actual compilation of OpenFOAM needs some extra packages. Just look for and install the packages with "sudo apt-get" or Synaptic packege manager:
  • flex and flex++ (just grab anything with "flex")
  • binutils
  • zlibs (at least in Fedora, not sure about Ubuntu)
2. Problems with ld not finding things seem to be solved when compiling a second time, as the OpenFOAM Wiki suggests. I suggest to install the missing libraries above and then go through the install script line by line to find the problem (open the Allwmake script to find what it does).

Hope this is of any help. Just post following errors (if you get any ).

Regards,

Gijs
gwierink is offline   Reply With Quote

Old   September 23, 2009, 11:50
Default Everything o.k
  #3
Senior Member
 
Antonio Martins
Join Date: Mar 2009
Location: Porto, Porto, Portugal
Posts: 112
Rep Power: 17
titio is on a distinguished road
Send a message via MSN to titio Send a message via Skype™ to titio
Hi,

Everything compiled O.K, after four hours in my PC. Thanks,

Teresa Mata
titio is offline   Reply With Quote

Reply


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
[Commercial meshers] Boundary condition problems (OpenFOAM) Milos OpenFOAM Meshing & Mesh Conversion 13 October 13, 2016 20:58
OpenFOAM 1.5 installation on OpenSUSE 11.0 bigphil OpenFOAM Installation 16 April 29, 2009 07:28
Problems in representing convected derivatives in OpenFoam titio OpenFOAM Running, Solving & CFD 1 February 16, 2009 16:01
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 19:07
[General] OpenFoam - problems MateuszZb ParaView 8 July 21, 2008 17:16


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