[Solved] configure: error: cannot run C compiled programs. | MyThinkPond

Common error when you run configure before make && make install:

checking whether the C compiler works… configure: error: in /root/downloads/libzmq-master': configure: error: cannot run C compiled programs. If you meant to cross compile, use–host’.

Add the following into your /root/.bashrc or /home/{username}/.bashrc

[sourcecode language=“jscript”]

export CPATH=/usr/local/include export LIBRARY_PATH=/usr/local/lib export LD_LIBRARY_PATH=/usr/local/lib export LD_RUN_PATH=/usr/local/lib


Logout and login to reinitialize .bashrc or do the following:

[sourcecode language=“jscript”]

source /root/.bashrc


source /home/{username}/.bashrc


Return back to running “configure” and that should get you past the error.


Venkatt Guhesan avatar
About Venkatt Guhesan
Enterprise Software Architect currently working at DataDirect Networks developing a highly scalable monitoring solution called DDN Insight. My passions include all things Open Source including Linux (CentOS, Red Hat, Gentoo, Open Stack, Docker & Ubuntu), embedded ARM processors and microcontrollers (Arduino, UDOO, Cubieboard, BeagleBoard, OnionIO, TI's Zigbee). Coming from an Electrical and Computer Engineering background, working in developing and designing enterprise - distributed, highly scalable software requires a unique set of software skills with a good understanding of the hardware. This makes his work challenging and interesting. In his free time, he spends his time with his family and two children. He also enjoys researching on topics including - world ancient history and yoga. Visit the 'About' section for more details.
comments powered by Disqus