[zeromq-dev] ZMQ::LibZMQ3 Installation in windows

sudheer kumar sudheerkumar_m at ymail.com
Mon Feb 11 22:07:00 CET 2013


I think installation went fine, below is the error with pthread I got while I build zeromq-3.2.2 with MinGW: (I only receive pthread error with 3.2.2 i see that for 2.2.0 it is fine.)

I'm also attaching error I received while I try to build perl module ZMQ-LibZMQ3-1.09 on windows, Does anyone had similar kind of error with installing perl module in windows. 

make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/perf'
  CXX    local_lat.o
  CXXLD  local_lat.exe
  CXX    remote_lat.o
  CXXLD  remote_lat.exe
  CXX    local_thr.o
  CXXLD  local_thr.exe
  CXX    remote_thr.o
  CXXLD  remote_thr.exe
  CXX    inproc_lat.o
  CXXLD  inproc_lat.exe
  CXX    inproc_thr.o
  CXXLD  inproc_thr.exe
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/perf'
Making all in tests
make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/tests'
 cd .. && /bin/sh ./config.status tests/Makefile depfiles
config.status: creating tests/Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/tests'
make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/tests'
  CXX    test_pair_inproc.o
  CXXLD  test_pair_inproc.exe
  CXX    test_pair_tcp.o
  CXXLD  test_pair_tcp.exe
  CXX    test_reqrep_inproc.o
  CXXLD  test_reqrep_inproc.exe
  CXX    test_reqrep_tcp.o
  CXXLD  test_reqrep_tcp.exe
  CXX    test_hwm.o
  CXXLD  test_hwm.exe
  CXX    test_reqrep_device.o
  CXXLD  test_reqrep_device.exe
  CXX    test_sub_forward.o
  CXXLD  test_sub_forward.exe
  CXX    test_invalid_rep.o
  CXXLD  test_invalid_rep.exe
  CXX    test_msg_flags.o
  CXXLD  test_msg_flags.exe
  CXX    test_connect_resolve.o
  CXXLD  test_connect_resolve.exe
  CXX    test_connect_delay.o
test_connect_delay.cpp:28:21: fatal error: pthread.h: No such file or directory
compilation terminated.
make[1]: *** [test_connect_delay.o] Error 1
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/tests'
make: *** [all-recursive] Error 1

C:\zeromq-3.2.2\zeromq-3.2.2>make install
 cd . && /bin/sh ./config.status Makefile
config.status: creating Makefile
Making install in src
make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/src'
make[2]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/src'
test -z "C:/zmq/lib" || /usr/bin/mkdir -p "C:/zmq/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c   libzmq.la 'C:/zmq/lib
'
libtool: install: /usr/bin/install -c .libs/libzmq.dll.a C:/zmq/lib/libzmq.dll.a

libtool: install: base_file=`basename libzmq.la`
libtool: install:  dlpath=`/bin/sh 2>&1 -c '. .libs/'libzmq.la'i; echo libzmq.dl
l'`
libtool: install:  dldir=C:/zmq/lib/`dirname ../bin/libzmq.dll`
libtool: install:  test -d C:/zmq/lib/../bin || mkdir -p C:/zmq/lib/../bin
libtool: install:  /usr/bin/install -c .libs/libzmq.dll C:/zmq/lib/../bin/libzmq
.dll
libtool: install:  chmod a+x C:/zmq/lib/../bin/libzmq.dll
libtool: install:  if test -n '' && test -n 'strip --strip-unneeded'; then eval
'strip --strip-unneeded C:/zmq/lib/../bin/libzmq.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/libzmq.lai C:/zmq/lib/libzmq.la
test -z "C:/zmq/include" || /usr/bin/mkdir -p "C:/zmq/include"
 /usr/bin/install -c -m 644 ../include/zmq.h ../include/zmq_utils.h 'C:/zmq/incl
ude'
test -z "C:/zmq/lib/pkgconfig" || /usr/bin/mkdir -p "C:/zmq/lib/pkgconfig"
 /usr/bin/install -c -m 644 libzmq.pc 'C:/zmq/lib/pkgconfig'
make[2]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/src'
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/src'
Making install in doc
make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/doc'
make[2]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/doc'
make[2]: Nothing to be done for `install-exec-am'.
test -z "C:/zmq/share/man/man3" || /usr/bin/mkdir -p "C:/zmq/share/man/man3"
test -z "C:/zmq/share/man/man7" || /usr/bin/mkdir -p "C:/zmq/share/man/man7"
make[2]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/doc'
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/doc'
Making install in perf
make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/perf'
make[2]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/perf'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/perf'
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/perf'
Making install in tests
make[1]: Entering directory `/c/zeromq-3.2.2/zeromq-3.2.2/tests'
  CXX    test_connect_delay.o
test_connect_delay.cpp:28:21: fatal error: pthread.h: No such file or directory
compilation terminated.
make[1]: *** [test_connect_delay.o] Error 1
make[1]: Leaving directory `/c/zeromq-3.2.2/zeromq-3.2.2/tests'
make: *** [install-recursive] Error 1

C:\zeromq-3.2.2\zeromq-3.2.2>



C:\ZMQ-LibZMQ3-1.09>C:\Perl\bin\perl.exe Makefile.PL
Set up gcc environment - gcc.exe (tdm-1) 4.5.2
Cannot determine perl version info from lib/ZMQ/LibZMQ3.pm
Probing environment variables:
 + Detected ZMQ_INCLUDES from ZMQ_HOME...
 + Detected ZMQ_H from ZMQ_HOME...
 + Detected ZMQ_LIBS from ZMQ_HOME...
Probing libzmq via pkg-config ...
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
 - No libzmq found...
Probing zeromq3 via pkg-config ...
'pkg-config' is not recognized as an internal or external command,
operable program or batch file.
 - No zeromq3 found...
Detected the following ZMQ settings:
 + ZMQ_HOME = C:\zmq
 + ZMQ_H = C:\zmq\include\zmq.h
 + ZMQ_INCLUDES = C:\zmq\include
 + ZMQ_LIBS = -LC:\zmq\lib
 + ZMQ_TRACE = (null)
Detecting zmq version...
 + Detected libzmq version 3.2.2
Writing ppport.h
Set up gcc environment - gcc.exe (tdm-1) 4.5.2
Note (probably harmless): No library found for -lzmq
CHECK: Does your zmq have zmq_ctx_destroy...      0 [main] make 2064 fhandler_ba
se::dup: dup(some disk file) failed, handle 13, Win32 error 87
 NO
CHECK: Does your zmq have zmq_ctx_get...      0 [main] make 3660 fhandler_base::
dup: dup(some disk file) failed, handle 13, Win32 error 87
 NO
CHECK: Does your zmq have zmq_ctx_new...      0 [main] make 2120 fhandler_base::
dup: dup(some disk file) failed, handle 13, Win32 error 87
 NO
CHECK: Does your zmq have zmq_ctx_set...      0 [main] make 1488 fhandler_base::
dup: dup(some disk file) failed, handle 13, Win32 error 87
 NO
CHECK: Does your zmq have zmq_device...Terminating on signal SIGINT(2)

C:\ZMQ-LibZMQ3-1.09>
.



Thanks,
Sudheer

________________________________
 From: Ian Barber <ian.barber at gmail.com>
To: daisuke at endeworks.jp; ZeroMQ development list <zeromq-dev at lists.zeromq.org> 
Cc: sudheer kumar <sudheerkumar_m at ymail.com> 
Sent: Friday, 8 February 2013 7:44 AM
Subject: Re: [zeromq-dev] ZMQ::LibZMQ3 Installation in windows
 



2013/2/8 sudheer kumar <sudheerkumar_m at ymail.com>
>
>
>>
>>I followed http://www.zeromq.org/build:mingw for building ZMQ with MinGW :   and I get the error: 
>>
>>
>>test_connect_delay.cpp:28:21 fatalerror:pthread.h: No such file or directory 
>>
>>

Hmm, we may have to ifdef that test out if there's no pthread on mingw - I do think that is a bit of a linux specific lib.

Ian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130212/157bd398/attachment.html>


More information about the zeromq-dev mailing list