Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on windows of 1.4.14 does not work ! Even after supplying missing DLL's it fails to start. #637

Closed
nurquhar opened this issue Dec 2, 2017 · 7 comments

Comments

@nurquhar
Copy link

@nurquhar nurquhar commented Dec 2, 2017

I have downloaded the windows installer for 1.4.14 and followed the instructions to source the 'missing' DLL's.

After installing on Win7 when I run mosquitto.exe I get the error that application will not start 0xC000007b

Issue 1 - The latest OpenSSL Light 1.1.0g after installation does not provide the required DLL's libeay32.dll ssleay32.dll. To get these I had install OpenSSL Light 1.0.2m instead.

Issue 2 - I also had to find VCRUNTIME140.dll because this was missing, no instruction are given that this is required or where to get it.

Issue 3 - After following all this it does not run !!!

Can someone please do a clean install with the latest available OpenSSL and pthreads and explain how to make it install and run. The current instructions do not work !

@nurquhar nurquhar changed the title Installation on windows of 1.4.14 does not work ! Even after supplting missing DLL's it fails to start. Installation on windows of 1.4.14 does not work ! Even after supplying missing DLL's it fails to start. Dec 2, 2017
@archerian

This comment has been minimized.

Copy link

@archerian archerian commented Dec 3, 2017

The 3rd party DLLs I use to run mosquitto on Windows 2008 are libeay32dll, ssleay32.dll, pthreadVC2.dll and the VC runtime. The pthreads dll is available from its sourceforge website, you seem to have got the other two. Dependency screenshot below.

image

@archerian

This comment has been minimized.

Copy link

@archerian archerian commented Dec 3, 2017

I noticed the 32 bit installer fails to install properly first time. What I do is run it once, then go to the mosquitto directory in Program Files and add the three 3rd party dlls to the folder and re-run the installer. Second time around it works fine, the service is added to Services and can be started. The initial failed install attempt creates the directory for mosquitto but doesnt have the 3rd party libs. I do all of this only after installing the VC runtime.

@nurquhar

This comment has been minimized.

Copy link
Author

@nurquhar nurquhar commented Dec 3, 2017

Problem is even after you solve the missing DLL's and re-run the installer it the exe's will not work, see my install and run below. You get the same error after running the installer also. 👍
image

@nurquhar

This comment has been minimized.

Copy link
Author

@nurquhar nurquhar commented Dec 3, 2017

You get the same error running the installer 👍
image

@archerian

This comment has been minimized.

Copy link

@archerian archerian commented Dec 3, 2017

Can you try installing the VC runtime via the installer? Try the 32 bit version, I'm using that one, ie the 32 bit mosquitto with the 32 bit 2015 runtime.

@nurquhar

This comment has been minimized.

Copy link
Author

@nurquhar nurquhar commented Dec 4, 2017

Would it not be normal practice to include such dependencys in the installer, MS say you can do this.
Determining Which DLLs to Redistribute
I am downloading the x86 VC2015 redist, I will let you know when its done if it works.

@nurquhar

This comment has been minimized.

Copy link
Author

@nurquhar nurquhar commented Dec 4, 2017

I have sourced VCRUNTIME140.dll from the SysWOW64 directory on another the Win7 m/c. This should be the 32bit version of the DLL.

Putting this in the mosquitto directory the installer now works correctly, thank-you.

My conclusion and recomendation to the developers would be this :

  1. The per-requisite instructions given by the installer need updating with regard to the OpenSSL. The latest installer available, OpenSSL Light 1.1.0g, does not provided the required DLL's. You have to use and older version OpenSSL Light 1.0.2m.

  2. VCRUNTIME140.dll is not indicated as a per-requisite in the installer. This either needs to be added as i) a referenced source with a download reference, ii) perhaps the mosquitto build could be altered to use a static library instead, iii) VCRUNTIME140.dll could be distributed by the installer.

@nurquhar nurquhar closed this Dec 4, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants
You can’t perform that action at this time.