-
Notifications
You must be signed in to change notification settings - Fork 963
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
Zola won't run on Windows without the Visual C++ 2015-2017 Redistributable? #1585
Comments
Hu interesting. |
this old issue has a lot about needing tweaks to get libsass to build on windows #198 not sure if it is relevant or not as it is quite old. |
libsass should be built statically, it's only complicated if you are building from source afaik. |
The same sort of error is referenced in this issue where there seems to be a useful discussion Make a
i.e. with this sort of directory structure
Apparently static vs dynamic linking on windows especially is a problem. Sorry I'm not savvy enough with rust to be able to try it myself. |
A friend running
There was a change with the build image after 0.16.0 I think. Maybe something like this could be a solution? |
Hopefully we are going to switch out of libsass for 0.17 which means zola should be straightforward to build on Windows. #1535 for reference |
Had same issue except that zola silently failed. installed Visual C++ Redistributable then tried again. After that, zola magically started working 🤷 . |
Bug Report
Zola failed to run for me on Windows on my work computer. It complained about the following dlls being missing
VCRUNTIME140.dll
MSVCP140.dll
Saying:
where X is the two dlls above.
It works for me on my home computer (where I have admin rights)
I have tried copying the dlls above from my home machine onto my work machine in the same directory as the zola executable.
After that it stopped complaining about the dlls but says
Environment
Works on Windows 10 Pro at home version 20H2
Fails on Windows 10 Pro at work!!
Also Fails on Windows 7 Pro at work!! SP1
I have checked these versions
Zola version: 0.14 and 0.13
Expected Behaviour
"Forget dependencies. Everything you need in one binary."
It should work even if I don't have admin rights to install dependencies (even if they are very common dependencies!) I'm afraid I don't know enough to suggest a solution, maybe there are some compile options you can alter to include the dependencies?
Current Behaviour
The program won't even run so I can't get a Rust backtrace for you.
Step to reproduce
type
zola
on a windows computer that doesn't have the Visual C++ 2015-2017 Redistributable installedThe text was updated successfully, but these errors were encountered: