Gangmax Blog

Fix the Octopress "invalid ELF header in ffi" error

The error happened on Ubuntu Xenial with Octopress. The fix is to copy the needed “libpython2.7.so.1.0” to override the existing “libpython2.7.so.a” file.

1
2
3
4
cp /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 /home/gang/.pyenv/versions/2.7.10/lib/
cd /home/gang/.pyenv/versions/2.7.10/lib/
mv libpython2.7.a libpython2.7.a.backup
mv libpython2.7.so.1.0 libpython2.7.a

Comments