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

[OpenFOAM.org] Error installing openfoam on El Capitan

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By Pervispasco
  • 1 Post By windscion

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2016, 08:19
Default Error installing openfoam on El Capitan
  #1
New Member
 
Tommaso Pascon
Join Date: Mar 2016
Posts: 18
Rep Power: 10
Pervispasco is on a distinguished road
Hi,
i tried to compile OpenFoam 2.3.0 on my macbook pro with el capitan following this tutorial:

https://sourceforge.net/projects/ope...ormacyosemite/

Everything went fine without troubles, but when i try to use blockMesh to the cavity case i get this error:

dyld: Symbol not found: __ZN11yyFlexLexer6yywrapEv
Referenced from: /Users/tommasopascon/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libsurfMesh.dylib
Expected in: flat namespace
in /Users/tommasopascon/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libsurfMesh.dylib
Trace/BPT trap: 5

Can someone help me with this cause i tried to find some other threads for a possibile solution but i couldn't find anything suitable.

Thanks in advance for you help.
Pervispasco is offline   Reply With Quote

Old   March 30, 2016, 05:57
Default
  #2
Senior Member
 
rdbisme's Avatar
 
Ruben Di Battista
Join Date: May 2013
Location: Paris
Posts: 137
Rep Power: 12
rdbisme is on a distinguished road
Quote:
Originally Posted by Pervispasco View Post
Hi,
i tried to compile OpenFoam 2.3.0 on my macbook pro with el capitan following this tutorial:

https://sourceforge.net/projects/ope...ormacyosemite/

Everything went fine without troubles, but when i try to use blockMesh to the cavity case i get this error:

dyld: Symbol not found: __ZN11yyFlexLexer6yywrapEv
Referenced from: /Users/tommasopascon/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libsurfMesh.dylib
Expected in: flat namespace
in /Users/tommasopascon/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libsurfMesh.dylib
Trace/BPT trap: 5

Can someone help me with this cause i tried to find some other threads for a possibile solution but i couldn't find anything suitable.

Thanks in advance for you help.
Since the instructions listed on the site you provided are for 2.2.0, did you try to follow this on the wiki?
rdbisme is offline   Reply With Quote

Old   March 31, 2016, 05:30
Default
  #3
New Member
 
Tommaso Pascon
Join Date: Mar 2016
Posts: 18
Rep Power: 10
Pervispasco is on a distinguished road
Solved thanks!
I used docker instead...everything works fine now!
hjj3118 and pgh like this.
Pervispasco is offline   Reply With Quote

Old   May 18, 2016, 10:07
Default
  #4
New Member
 
Thomas Evans
Join Date: Dec 2015
Posts: 21
Rep Power: 10
windscion is on a distinguished road
Quote:
Originally Posted by Pervispasco View Post
Hi,
i tried to compile OpenFoam 2.3.0 on my macbook pro with el capitan following this tutorial:

https://sourceforge.net/projects/ope...ormacyosemite/

Everything went fine without troubles, but when i try to use blockMesh to the cavity case i get this error:

dyld: Symbol not found: __ZN11yyFlexLexer6yywrapEv
Referenced from: /Users/tommasopascon/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libsurfMesh.dylib
Expected in: flat namespace
in /Users/tommasopascon/OpenFOAM/OpenFOAM-2.3.0/platforms/darwinIntel64Gcc46DPOpt/lib/libsurfMesh.dylib
Trace/BPT trap: 5

Can someone help me with this cause i tried to find some other threads for a possibile solution but i couldn't find anything suitable.

Thanks in advance for you help.
This is caused by an obsolete version check on the flex library.
I used this hack to allow macport's flex (2.6.0) to work with the package:

from $HOME/OpenFOAM/OpenFoam-2.3.x, type
% find . -name '*.L' -print

then for each file found above, change
#if YY_FLEX_SUBMINOR_VERSION < 34
to
#if YY_FLEX_SUBMINOR_VERSION < 34 && YY_FLEX_MINOR_VERSION < 6
and then the code will work properly with flex 2.6. Or you can use flex 2.5.34, of course.
peter79634 likes this.
windscion is offline   Reply With Quote

Old   December 27, 2016, 22:05
Default
  #5
New Member
 
Chai Guo liang
Join Date: Dec 2016
Posts: 1
Rep Power: 0
peter79634 is on a distinguished road
Quote:
Originally Posted by windscion View Post
This is caused by an obsolete version check on the flex library.
I used this hack to allow macport's flex (2.6.0) to work with the package:

from $HOME/OpenFOAM/OpenFoam-2.3.x, type
% find . -name '*.L' -print

then for each file found above, change
#if YY_FLEX_SUBMINOR_VERSION < 34
to
#if YY_FLEX_SUBMINOR_VERSION < 34 && YY_FLEX_MINOR_VERSION < 6
and then the code will work properly with flex 2.6. Or you can use flex 2.5.34, of course.
Thank you VERY much!! I followed your procedures and solved my problem!! I've been working on installing OpenFOAM on my macbook pro for nearly a week and came across loads of problems. This is my last problem and you helped me solve it. You saved my day!!! Thanks again!!!
peter79634 is offline   Reply With Quote

Old   February 6, 2017, 06:48
Default
  #6
Senior Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17
matejfor is on a distinguished road
Hi,

if you want to use more recent version (the latest) of OpenFOAM, which I strongly recommend for many reasons, try the OpenFOAM+ by OpenCFD. For Mac you install everything easily into docker. It is smooth and easy. Have a look here: http://openfoam.com/download/install-binary-mac.php

Happy foaming
matejfor is offline   Reply With Quote

Reply

Tags
error. mac. dylib.


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
OpenFOAM Foundation releases OpenFOAMŪ 3.0.0 CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 1 November 7, 2015 15:16
OpenFOAM Foundation Releases OpenFOAM v2.3.0 opencfd OpenFOAM Announcements from OpenFOAM Foundation 3 December 23, 2014 03:43
[Gmsh] 2D Mesh Generation Tutorial for GMSH aeroslacker OpenFOAM Meshing & Mesh Conversion 12 January 19, 2012 03:52
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


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