I recently installed OpenSSL via vcpkg, but it installed a different version than the one I had when I checked for the package, here is the version it should install:

Here is the version he installed:

What went wrong? How can I force vcpkg to install the latest version?
where openssl for windows or whereis openssl for linux?[vcpkg-root]\installed\[triplet]\tools\openssl to the windows/linux environment variable PATH, windows/linux will execute from the first place it finds an executable binary named openssl.cd [vcpkg-root]\installed\[triplet]\tools\openssl and enter .\openssl version windows or ./openssl version linux and what to you get?openssl-[unix/uwp/windows] has been deprecated and no longer used and are empty packages.vcpkg search shows an old version.cd [vcpkg-root]git pull to update vcpkg with latest changes.\bootstrap-vcpkg.bat for windows or ./bootstrap-vcpkg.sh for linuxvcpkg upgrade --no-dry-run to upgrade all packages with new updates or upgrades
- What do you get when you open a command and/or terminal prompt and enter
where opensslfor windows orwhereis opensslfor linux?- Unless you have added
[vcpkg-root]\installed\[triplet]\tools\opensslto the windows/linux environment variable PATH, windows/linux will execute from the first place it finds an executable binary named openssl.cd [vcpkg-root]\installed\[triplet]\tools\openssland enter.\openssl versionwindows or./openssl versionlinux and what to you get?- Note:
openssl-[unix/uwp/windows]has been deprecated and no longer used and are empty packages.I see your openssl in the
vcpkg searchshows an old version.
cd [vcpkg-root]git pullto update vcpkg with latest changes.\bootstrap-vcpkg.batfor windows or./bootstrap-vcpkg.shfor linuxvcpkg upgrade --no-dry-runto upgrade all packages with new updates or upgrades
Thanks, I noticed that OpenSSL was also installed by MinGW Installation Manager when I typed where openssl, I removed it, but now when I type 驶openssl`, an error appears on the console, is it normal?
@luizfernandonb, what error does it show in console?
For me:
F:vcpkgsrcinstalledx64-windowstoolsopenssl>openssl.exe version
OpenSSL 1.1.1g 21 Apr 2020
@luizfernandonb, what error does it show in console?
For me:
F:vcpkgsrcinstalledx64-windowstoolsopenssl>openssl.exe version
OpenSSL 1.1.1g 21 Apr 2020

'openssl' is not recognized as an internal command
or external, an operable program or a batch file.
Are we STILL having issues with OpenSSL?

@luizfernandonb You have to go to <vcpkgroot>/installed/<triplet>/tools/openssl to execute openssl.exe built by vcpkg. vcpkg does not magically add the path to the PATH env variable. Please lern how windows/cmd does binary/executable lookup via PATH environment. StarGate-One clearly explained how to execute openssl.exe built by vcpkg.
@PhoebeHui Just close the issue. This has nothing to do with vcpkg.
@Neumann-A, thanks for your commnents!
@luizfernandonb, feel free to open an new issue if you encounter some problems in vcpkg.
Most helpful comment
@luizfernandonb You have to go to
<vcpkgroot>/installed/<triplet>/tools/opensslto execute openssl.exe built by vcpkg. vcpkg does not magically add the path to the PATH env variable. Please lern how windows/cmd does binary/executable lookup via PATH environment. StarGate-One clearly explained how to execute openssl.exe built by vcpkg.@PhoebeHui Just close the issue. This has nothing to do with vcpkg.