CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > SU2 > SU2 Installation

SU2 build from source on WSL (invalid syntax in

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By milowangjinhong

LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2023, 12:49
Default SU2 build from source on WSL (invalid syntax in
New Member
Join Date: Mar 2022
Posts: 2
Rep Power: 0
milowangjinhong is on a distinguished road

I am new to SU2 and I am trying to install and build from the source code of SU2 on WSL Ubuntu 16.04. However, I kept getting errors in the meson build process on the website. It might be something stupid but I would appreciate it if anyone could help me with it.

I firstly cloned the GitHub repo to the local directory by:
git clone

then I run the meson file
./ build

The code seems to be running for a while, downloading something (I assume they are prerequisites) in subprojects/ folder. Then I got this error in the following:

$ ./ ./build
Checking connectivity... done.
Submodule path 'externals/mel': checked out '2484cd3258ef800a10e361016cb341834ee7930b'
ninja executable not found. Building ...
bootstrapping ninja...
warning: A compatible version of re2c (>= 0.11.3) was not found; changes to src/* will not affect your build.
bootstrap complete. rebuilding...
[29/29] LINK ninja
Traceback (most recent call last):
File "./", line 83, in <module>
from mesonbuild import mesonmain
File "/mnt/c/Users/NAME/Work/Code/SU2/externals/meson/mesonbuild/", line 191
mlog.error(f'Error in {script_name} helper script:')
SyntaxError: invalid syntax

I am not sure what is happening here. Could anyone please help with me? Thank you very much.
milowangjinhong is offline   Reply With Quote

Old   April 27, 2023, 06:17
New Member
Join Date: Mar 2022
Posts: 2
Rep Power: 0
milowangjinhong is on a distinguished road
Thanks guys I just figured it out. It is the python version's issue. I was using Python3.5 but meson requires at least Python 3.7. Apologies for the confusions.
milowangjinhong is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Other] Adding solvers from DensityBasedTurbo to foam-extend 3.0 Seroga OpenFOAM Community Contributions 9 June 12, 2015 17:18
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16

All times are GMT -4. The time now is 20:34.