C - C++ - gcc - cpp

How to configure and install ZeroMQ (libsodium) on CentOS 6.7?

When getting started on ZeroMQ (version 4.2.0 or above) can be quite challenging especially with all the prerequisites. I’ve spent a good two days to get the process ironed out. So I’m sharing this so that others can avoid the same pitfalls and can have a good head-start with setting up their environment. Pitfall #1: Develop for your platform. I’m accustomed to developing in Ubuntu 14.04.3 LTE but in this case my deployment environment happens to be CentOS 6.

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

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 [/sourcecode] Logout and login to reinitialize .bashrc or do the following: [sourcecode language=“jscript”] source /root/.bashrc or source /home/{username}/.