|
[Sponsors] |
[OpenFOAM.org] OpenFOAM 5.x on Linux Mint Tara and FlexLexer issue |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 22, 2018, 13:41 |
OpenFOAM 5.x on Linux Mint Tara and FlexLexer issue
|
#1 |
New Member
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14 |
Dear All,
I would greatly appreciate if someone could help around with this issue which has never appeared before. Here is the problem: Code:
/home/vladj/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/src/surfMesh/surfaceFormats/stl/STLsurfaceFormatASCII.L.C:302:10: fatal error: FlexLexer.h: No such file or directory #include <FlexLexer.h> ^~~~~~~~~~~~~ compilation terminated. |
|
September 23, 2018, 20:19 |
Flex Package
|
#2 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Hi Vladimir,
I think that its looking for a specific development component in the GNU flex library: https://www.gnu.org/software/flex/ As for a new error is there something different in this install? Base OS, version of OF, changes in compiler search paths? I'm good at fiddling with my bash paths as I have multiple versions of OF installed at the same time. Sometimes there is confusion but usually they are isolated and plat nice. Cheers, -pete |
|
September 24, 2018, 04:02 |
|
#3 |
New Member
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14 |
Hello Pete,
I appreciate you're trying to help. Well, there is nothing unusual in the installation procedure for this version of OF which is 5.x. I did compile it without any problem on the Linux Mint version which was based on Ubuntu 16.04. However, now I switched to the latest Linux Mint (based on Ubuntu 18.04) and it aborts compilation. I have always followed this procedure: http://openfoamwiki.net/index.php/In...u#Ubuntu_18.04 and never had any problem until now. This is all I can say for the moment. Cheers and thanks again, Vladimir |
|
September 24, 2018, 04:18 |
Dev Packages
|
#4 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Hi,
I spend more time in RedHat land and have not used Mint myself but I'll see if I can give it a try when I get into the office tomorrow. Skimming that instruction set though I note that in RHEL I sometimes have to explicitly install both the base and *-devel packages to get the header files. Maybe Tara update changed that? Cheers, -pete |
|
September 25, 2018, 23:38 |
Package Check for libfl-dev
|
#5 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Hi,
Sorry for the delay in responding. I've not had time to spin up a Mint or Ubuntu to check. As far as I can tell the libfl-dev package is required to install this header. This package is not explicitly installed via the instruction set you linked to and it may have been installed through dependencies in the past. Can you check that this package is installed? Assuming it is then its back to checking the search paths. It looks like some packages have been rearranged as there is a "flex-old" package that contains the header you are missing. That package would have been installed under the old instructions. Hope that helps, -pete |
|
September 28, 2018, 16:25 |
|
#6 |
New Member
VladJ
Join Date: Feb 2012
Location: Belgium
Posts: 18
Rep Power: 14 |
Hello Pete!
As you suggested: sudo apt-get install libfl-dev and compilation went through the critical stage. So far so good. Thank you very much. I am back in business. Cheers, V |
|
September 30, 2018, 20:14 |
[SOLVED] with Package
|
#7 |
Member
Peter Brady
Join Date: Apr 2014
Location: Sydney, NSW, Australia
Posts: 54
Rep Power: 12 |
Great news. Have fun Foaming!
Cheers, -pete |
|
October 7, 2018, 09:23 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I was really intrigued what happened with the difficulties on Linux Mint, just because of one single package... and I've finally managed to figure out that it has to do with how Linux Mint has disabled the installation of recommended packages when using apt. By using this command: Code:
grep "APT::Install-Recommends" /etc/apt/apt.conf.d/*
Therefore, I've updated the instructions at openfoamwiki.net for 5.x, 6 and dev to install this package instead of just "flex". What I find strange is that this problem should have started since 2014, given that this kind of issue was already discussed back then here: https://forums.linuxmint.com/viewtopic.php?t=185770 - and I don't remember ever seeing this issue being reported in the past here on the OpenFOAM forum(s)... Best regards, Bruno
__________________
Last edited by wyldckat; October 7, 2018 at 09:25. Reason: finished what I had started writing... |
|
|
|