Hello Sir, I am a Windows user and failed to find a solution for the installation of Drogon on windows on this page. Hope you'll help me to find out a solution. regards.
Drogon for Windows
12
Relevant Page: Installation
Naeem
1 year ago
Hi~, You could use vcpkg to install drogon on Windows.
install drogon on windows environment
method:
1. usin vcpkg:
-
clean up some environment variables:
- cmake
*if any, and make it sure it also not installed on your control panel/apps & features
- vcpkg
*if any
- cmake
-
create fresh vcpg:
- open your powershell/pwsh7/cmd as admin
- open your desire directory ( e.g.
c:/Dev
) - now follow this instruction and type:
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg.bat
<--- this will install vcpkg.exegit pull
- check your vcpkg.exe:
vcpkg.exe
orvcpkg
then,
add this path to your environment variables.
now,
assuming your vcpg dir. atC:/Dev/vcpkg
so, add that path to your environment variables.
cd
<--- this will open your home user directory to make it sure does your vcpkg.exe able to runvcpkg version
if there's an error, relaunch you terminal
then typecd; vcpkg version;
now, assume those steps are no errorvcpkg install drogon:x64-windows
or
vcpkg.exe install drogon:x64-windows
wait till all finish installed.
locate drogon_tool
normally if you install using this method, it will be located on:
C:\Dev\vcpkg\installed\x64-windows\tools\drogon
add this to your path environment variables.
if you want to use vscode add some installed bin and lib. If you following this instruction add this variables to your path
C:\Dev\vcpkg\installed\x64-windows\bin
C:\Dev\vcpkg\installed\x64-windows\include
C:\Dev\vcpkg\installed\x64-windows\lib
Note: installing independent CMake might be needed.drogon_ctl
ordrogon_ctl.exe
:- if this doesn't work, reopen your terminal.
2. usin wsl:
- open your ms store.
- search
linux
- install linux distro from Debian base:
- Debian
- Ubuntu
- Kali
- create user and password
- type
sudo apt update; sudo apt dist-upgrade
- now follow the instruction again
3. what the hell method
- buy new drive ( ssd || hdd )
- install linux distro ( Debian base )
- boot manually
- now follow the instruction again
If those steps/methods doesn't work for you. I don't know what todo.
🍻🍻🍻🍻
update:
for more info about vcpkg:
vcpkg.readthedocs.io/en/latest/examples/installing-and-using-packages
end of method
@pranar Thanks so much for such a detailed reply!
Anytime , man. For awesome frameworks. 🍻 @antao2002
@pranar, would you like to make a PR to https://github.com/an-tao/drogon-docs with the contents here? It will be updated to the wiki and documents in this web station. Thanks :)
@antao2002 just added with @prothegee from prothegee:drogon-vcpkg-windows
@pranar Thanks so much!
you shoud install drogon with the ctl feature--drogon[ctl]
