GLIBCXX_3.4.21 not defined in file libstdc++.so.6 with link time reference

前端 未结 4 1910
时光取名叫无心
时光取名叫无心 2021-02-14 02:30

Apologies, I understand questions very similar to this have been asked relatively often, although none of the solutions seem to work for me.When attempting to run any c++ code o

4条回答
  •  鱼传尺愫
    2021-02-14 03:12

    before_install:

    This workaround is required to avoid libstdc++ errors while running "extended" hugo with SASS support.

    • wget -q -O libstdc++6 http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/libstdc++6_5.4.0-6ubuntu1~16.04.10_amd64.deb
    • sudo dpkg --force-all -i libstdc++6

      install:

    • wget -q -O hugo.deb https://github.com/gohugoio/hugo/releases/download/v0.46/hugo_extended_0.46_Linux_64bit.deb

    • sudo dpkg -i hugo.deb

    I found this answer here, and it worked for me

提交回复
热议问题