You don’t even tell gcc or clang versions used to compile mediasoup. From the log it’s clear that it’s due to a non supported gcc version. Check mediasoup Installation requirements in the website and paste your versions here.
Honestly I don’t know. The issue about “invalid regex” is a well known issue when using gcc < 4.9. In your last screenshoot (why don’t you just paste text?) it looks like you are “selecting” gcc 5.0 but I don’t know what your system is then doing or which libs it take later when you run mediasoup.
I didn’t say “try gcc 4.9”. Any version > 4.8 should be fine. I just said “uninstall gcc 4.8 and g++ 4.8 from your system completely and recompile mediasoup”.