Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hugo: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by hugo) #8955

Open
rrjanbiah opened this issue Sep 3, 2021 · 9 comments
Assignees
Labels
Milestone

Comments

@rrjanbiah
Copy link

@rrjanbiah rrjanbiah commented Sep 3, 2021

What version of Hugo are you using (hugo version)?

hugo_extended_0.88.0_Linux-64bit.deb

$ hugo version
hugo: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by hugo)

Does this issue reproduce with the latest release?

Yes

Context

  1. Installed hugo in Ubuntu 16.04 using sudo apt-get install hugo and that installed older version (0.16?? forgot it)
  2. Tried to setup 'portio' theme and came across SAAS not compiling issue (StaticMania/portio-hugo#17) and came to know that I have to install hugo extended from the releases using sudo dpkg -i hugo_extended_0.88.0_Linux-64bit.deb
  3. Then the whole hugo version command started to fail with: hugo: /lib/x86_64-linux-gnu/libm.so.6: version ``GLIBC_2.29' not found (required by hugo) hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version ``GLIBCXX_3.4.26' not found (required by hugo)
  4. Searched for solution and https://stackoverflow.com/questions/36816570/glibcxx-3-4-21-not-defined-in-file-libstdc-so-6-with-link-time-reference/60728921#60728921 fixed hugo: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version ``GLIBCXX_3.4.26' not found (required by hugo)
  5. After that, getting hugo: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by hugo)forhugo version'. Couldn't find any solution for GLIBC_2.29' not found error.
@jmooring
Copy link
Contributor

@jmooring jmooring commented Sep 3, 2021

Options: Workarounds:

  1. Upgrade your distribution to 19.04 or later

  2. Use snap (fast, easy)

    sudo snap install hugo --channel=extended/stable
  3. Use brew

    sudo apt-get install curl
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    # Then perform "Next steps" as shown
    brew install hugo

In the future, please use the forum (https://discourse.gohugo.io) for questions and troubleshooting. We prefer to use GitHub for verified bugs and vetted enhancements. Thanks.

@jmooring jmooring closed this Sep 3, 2021
@klakegg
Copy link
Contributor

@klakegg klakegg commented Sep 3, 2021

@jmooring, what changed in 0.88.0 from 0.87.0 regarding support for older Linux versions?

@jmooring
Copy link
Contributor

@jmooring jmooring commented Sep 3, 2021

Reopening. I did not realize that this was new behavior.

@jmooring jmooring reopened this Sep 3, 2021
@klakegg
Copy link
Contributor

@klakegg klakegg commented Sep 3, 2021

The 4th option is to download Hugo 0.88.0 from over here:
https://github.com/hugoguru/dist-hugo/releases/tag/v0.88.0

@chrisrummel
Copy link

@chrisrummel chrisrummel commented Sep 3, 2021

Yes this is a new behaviour, I am on Ubuntu 16.04 LTS here (can't update since it is a hosted vserver), 0.87 was fine, 0.88 throws the errors mentioned above. System is on glibc 2.23.

@bep bep self-assigned this Sep 3, 2021
@bep
Copy link
Member

@bep bep commented Sep 3, 2021

So, I got this on the Hugo Netlify builds as well {where the solution is to ugrade the never non-legacy builds). I will sew how can somehiw fiix---this, buy it does eventually show that you should upgrade your dstro. For securituties and styff.

(and notice that the last part was just my fingers free-balling)

@jakejarvis
Copy link
Contributor

@jakejarvis jakejarvis commented Sep 4, 2021

Vercel too, unfortunately. If anyone needs an urgent workaround it's always possible to build the site via GitHub Actions or another CI and push the output to Netlify/Vercel from there.

This will surely start affecting software other than Hugo too if this is a Go 1.17 change, right?

@bep bep added the Bug label Sep 4, 2021
@bep bep added this to the v0.88.1 milestone Sep 4, 2021
bep added a commit that referenced this issue Sep 4, 2021
Note that this commit has nothing to do with "Hugo not working with Go 1.17", but this is the simplest fix of some build related issues in Hugo 0.88.0.

Updates #8952
Updates #8955
@bep
Copy link
Member

@bep bep commented Sep 4, 2021

I have "fixed" this in 0.88.1 by downgrading the build image, but keep this issue open to track the "proper fix".

@brycewray
Copy link

@brycewray brycewray commented Sep 4, 2021

@jakejarvis Can confirm 0.88.1 fixes the Vercel build issue:
https://gm-typographer.vercel.app/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants