inSileco / inSileco.github.io

:globe_with_meridians: Our blog powered by blogdown
https://blog.insileco.io/
GNU General Public License v3.0
8 stars 1 forks source link

On Travis => `GLIBCXX_3.4.20' not found #72

Closed KevCaz closed 5 years ago

KevCaz commented 5 years ago

I have been struggling for quite some time with this error:

hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by hugo)
hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by hugo)

As far as I understand libstdc++ comes with gcc and depending on the version of gcc you have a different version libstdc++ (and a different GLIBCXX). Newer versions of Hugo use Go 1.11 as explained in the readme of the GH project https://github.com/gohugoio/hugo:

Since Hugo 0.48, Hugo uses the Go Modules support built into Go 1.11 to build

And Go 1.11 may require a newer version of gcc (I may be totally wrong about this...). Anyway as Xenial is now available on Travis and given that it comes with gcc 5.4.0 I change dist: trusty for dist:xenial in the Travis settings and it worked!

KevCaz commented 5 years ago

See c53015bda68fc70c26cffc63bb7f869ddcf2a5d5