6

I've been trying to set up MQTT broker on windows but with not results. I am not very experience in this topic. I've downloaded the mosquitto files from http://mosquitto.org/download/ but I haven't get the server running. I downloaded the binary files for windows and followed the instructions but I can only get the broker run but I can't subscribe. It says "pthreadVC2.dll is missing" and I've tried install it but I do not know how to do it. If you are able to suggest me how to get the broker running I appreciate your help. Thank you

Fernando
  • 71
  • 1
  • 1
  • 3

4 Answers4

7

Please see http://git.eclipse.org/c/mosquitto/org.eclipse.mosquitto.git/tree/readme-windows.txt

Dependencies - win32

If this doesn't solve the problem, you may need to install Visual Studio redistributables. The packaged Mosquitto versions are compiled with Visual Studio 2010, which can be found here: https://www.microsoft.com/en-gb/download/details.aspx?id=8328

ralight
  • 11,033
  • 3
  • 49
  • 59
  • Thanks for replying. This is what I've been trying but I can no get to install the pthreadVC2.dll – Fernando Apr 01 '15 at 11:44
  • You should just need to download the zip, extract, and copy pthreadVC2.dll to the mosquitto_[sp]ub directory. – ralight Apr 01 '15 at 15:16
  • Hi. I get the following error those steps. The application was unable to start correctly (0xc000007b) – Mani Jul 01 '15 at 10:57
  • I've added some more details to the answer. – ralight Jul 01 '15 at 11:39
  • 1
    Worked for me, just had to chose the right pthreadVC2.dll to add to mosquitto directory. In my case it was the x86. If I try the x64 I got the same complains as you @Mani – Christian Jul 21 '16 at 18:37
  • Died in dependency hell. I get back to linux for my broker using `apt-get install mosquitto mosquitto_clients` – domih Jun 27 '17 at 15:18
3

Check this link: https://sivatechworld.wordpress.com/2015/06/11/step-by-step-installing-and-configuring-mosquitto-with-windows-7/

You have to include these files(libeay32.dll, ssleay32.dll and pthreadVC2.dll) in mosquitto folder (C:\Program Files (x86)\mosquitto) and reinstall the mosquitto server. After reinstalling check the services to see if Mosquitto is running as a service. Then use the command netstat -an in command prompt. That will show the active connection and its status.

The above link gives a step by step installation procedure.

Rose
  • 71
  • 6
  • 1
    Instead of posting links as answer add some text to explanation how this answer help to OP in fixing current issue.Thanks – ρяσѕρєя K May 19 '16 at 05:39
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/low-quality-posts/12403756) – QoP May 19 '16 at 08:26
  • 1
    @QoP the essential part is there, right below the link. – CherryDT May 19 '16 at 09:11
  • Be note to use the correct installer of Win32 OpenSSL (1.0.2k), otherwise it will not work. – Thinhbk Mar 02 '17 at 01:43
1

There's the open-source and scalable MQTT broker I'm personnally involved with: emitter.io. It's built using .NET Core and LibUV - github.com/emitter-io/emitter.

There's also a nice list of MQTT brokers available here: https://github.com/mqtt/mqtt.github.io/wiki/servers

Kel
  • 1,217
  • 11
  • 21
0

this link will bring you to the pThreads: ftp://sources.redhat.com/pub/pthreads-win32/dll-latest/dll/x86/

where you can donwload it directly:

and then copy-paste the dll in your mosquito installation folder enter image description here

ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97