Building Hugo Extended on AWS CodeBuild

After upgrading my Hugo theme to the Hyde inspired Hyde-Hyde theme I also needed to switch from the standard Hugo build to the extended build in order to use the pipes feature.

After successfully installing the new theme locally I hit into problems running the extended version of Hugo on AWS CodeBuild. First I received the following error:

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

Which I was able to fix by adding the following line to my buildspec file:

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

On the next build I then received the following error:

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

Which I was able to fix by adding the following line:

- wget http://security.ubuntu.com/ubuntu/pool/main/g/gcc-5/gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
- dpkg -i gcc-5-base_5.4.0-6ubuntu1~16.04.10_amd64.deb
comments powered by Disqus