To use the scheme epgm:// or pgm:// you must configure libzmq 3.x (HEAD) using the --with-pgm.
./configure --with-pgm
./make
./make install
Remember to set you LD_LIBRARY_PATH to the location of the libzmq installation parameter For bash:
export LD_LIBRARY_PATH=/usr/local/lib
To compile publisher.c and subscriber.c
gcc -lzmq -lczmq -o publisher publisher.c
gcc -lzmq -lczmq -o subscriber subscriber.c
@ggitau, you can refer to this location for curve implementation but that might require some improvements.