Skip to content

PyZMQ install problems on Debian

Thomas Jones edited this page Feb 9, 2016 · 2 revisions

The problem: Installing PyZMQ errors:

If you're having problems with installing PyZMQ with easy_install (this may also affect other packages), and you're getting this error:

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o: unrecognized relocation (0x2a) in section `.init'
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

The explanation:

Debian's bundled version of the binutils package for Debian Jessie 8.3 was recently updated, and includes new relocation types on x86_64/i386 architectures.

The solution:

Re-add the Sid repo to your /etc/apt/sources.list, and run sudo apt-get update; sudo apt-get -y install binutils, then remove the repository from /etc/apt/sources.list and re-run sudo apt-get update.