|
[Sponsors] |
[OpenFOAM.org] OpenFoam2.2: recipe for target failed due to FlexLexer |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 31, 2017, 08:05 |
OpenFoam2.2: recipe for target failed due to FlexLexer
|
#1 |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Hi All:
Due to interface smearing in micro-Tube spontaneous imbibition problems in the recent OpenFOAM versions versus good simulation with OpenFoam2.2 and foam-extend3, I preferred to install OpenFoam2.2 in my home directory as addition to openfoam2.4, extend-4, 4.x and five. However, I got the ./Allwmake bug shown in the inserted file. Any suggestion? Thanks https://www.cfd-online.com/Forums/ne...anageattach&p= |
|
November 1, 2017, 16:37 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick note: Not knowing which Linux Distribution and version you are using, limits our ability to fully diagnose the issue.
Quick answer: The critical error was this: Code:
/home/ali/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib/libtriSurface.so: undefined reference to `yyFlexLexer::yywrap()' Quote:
Side note: Many thanks to roenby for reminding me of this in OpenFOAM 2.3.0 ubuntu 16.04 - post #5
__________________
|
||
November 1, 2017, 16:48 |
|
#3 |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Thanks, genius. It worked!
|
|
November 1, 2017, 20:28 |
|
#4 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
Hi Bruno :- I would like to mention that, although that is a successful way of installing OpenFOAM, the run file will not be created and will not be accessed from the terminal by "run"! |
||
November 2, 2017, 11:33 |
|
#6 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
I have Ubuntu 16.04 and installed OpenFoam2.2 beginning from the article 2.7 of the link https://openfoamwiki.net/index.php/I...u#Ubuntu_15.10 After following your recommendation, I did:- #Go into OpenFOAM's main source folder cd $WM_PROJECT_DIR #Change how the flex version is checked find src applications -name "*.L" -type f | xargs sed -i -e 's=\(YY\_FLEX\_SUBMINOR\_VERSION\)=YY_FLEX_MINOR_V ERSION < 6 \&\& \1=' Then continued from step 9 of the aforementioned link. So, everything went fine until the successful installation to the last step. However, when I hit run in the terminal, it will not run due to not having an ali-2.2.0\run folder inside my home directory and instead, I have the folder OpenFOAM-2.2.2 inside my home directory as shown in the inserted picture. Hope that makes sense. |
||
November 2, 2017, 11:57 |
|
#7 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer: https://openfoamwiki.net/index.php/T...he_first_steps
Quote:
If it doesn't work, run: Code:
echo $FOAM_RUN echo $WM_PROJECT_DIR |
||
November 2, 2017, 17:51 |
|
#8 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
I run your last two lines and got the following:- ali@ali-HP-ENVY-TS-15-Notebook-PC:~$ echo $FOAM_RUN /home/ali/OpenFOAM/ali-2.2.2/run ali@ali-HP-ENVY-TS-15-Notebook-PC:~$ echo $WM_PROJECT_DIR /home/ali/OpenFOAM/OpenFOAM-2.2.2 ali@ali-HP-ENVY-TS-15-Notebook-PC:~$ run bash: cd: /home/ali/OpenFOAM/ali-2.2.2/run: No such file or directory ali@ali-HP-ENVY-TS-15-Notebook-PC:~$ |
||
November 3, 2017, 05:20 |
|
#9 | |
Member
Ricky
Join Date: Jul 2014
Location: Germany
Posts: 78
Rep Power: 12 |
Quote:
Hallo, Did you create run directory using command?: Code:
mkdir -p $FOAM_RUN Regards, Ricky
__________________
If it is easy, then something is fishy! |
||
November 4, 2017, 00:10 |
|
#10 |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |
[OpenFOAM] Paraview compilation failed due to not available files | Tobi | ParaView | 2 | July 5, 2014 16:39 |
grid check failed due to the merged zones | biksham | FLUENT | 0 | February 20, 2008 23:31 |