-
Notifications
You must be signed in to change notification settings - Fork 78
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
Windows 8.1 SDK + Platform Toolset v140 obscure requirements for building on a fresh Windows install #439
Comments
One other thing I forgot to mention: If your windows user folder ("c:\Users\Your Name") has spaces on it, the process also fails. It seems that spaces are not properly escaped inside one of the scripts, so you need to run this from an account that has no spaces on its home path -OR- change your current account home path, which might be a little bit nerve wracking. |
Hi @raphaabreu, thanks for the detailed feedback! That helps a lot since I don't have access to a Windows build environment myself at the moment. I've verified that the specific Windows SDK + Toolset version is a dependency of the Aerospike C Client SDK. The developer is checking to see whether it's feasible to support more recent versions. In the meantime I will update the Windows README for the Node.js client as you suggested. I'll also check and see whether I can find the code where the file names need to be quoted to support spaces. Thanks again! |
@raphaabreu Can you take a look at the updated readme and let me know if this looks good to you? https://github.com/aerospike/aerospike-client-nodejs/blob/439-windows-readme/README_WINDOWS.md |
Thanks a lot @jhecking, that looks great! I wish I had saved the logs when I was having the issues with spaces in the windows user home path, but since that was a huge pain with other apps as well, I decided to do a fresh install and to make sure that I had no spaces in my home folder. As to where the issue manifested, it surfaced on this line:
It seemed to me whatever was calling the 'build-c-client.ps1' was not scaping or using " " to pass arguments, because the arguments seemed to be out of order when the msbuild was being invoked. Moving the project to a folder outside of my home did not help either because one of the paths was pointing to my npm folder insite my user/appdata. |
I have merged the changes to the Windows readme. As for the issue with the spaces in the user folder, the
It sounds like in your case |
Yes, I believe so! When installing windows, if I go for a local account and put my first and last name, my user folder will have spaces on it, so everything under AppData, including user-level installs and temp folders would also have them and I do believe that this is the case. I can totally do a fresh windows install to try to use this lib just to ensure that the dev experience is as expected. Just let me know when the appropriate versions get published to npm. |
I've filed a separate ticket for the issue with the spaces in the directory name: #441. |
While trying to install this package on Windows 11 I had several dificulties, the biggest of all was finding out that I needed to install this specific version of the toolset, required by one of the solutions. This toolset is not installed by default using any of the methods mentioned in the readme.
It would be good if the readme could be updated to point to the Visual Studio 2017 build tools:
https://visualstudio.microsoft.com/vs/older-downloads/
Also, to explicitly point out that you need to go on "Individual Components" and select "Windows 8.1 SDK" and "VC++ 2015.3 v14.00 (V140)"
Here are the logs I was only able to extract once I modified "build-c-client.ps1" to be verbose:
To replicate: I started from a fresh Windows 11 install and went installing nodejs and the aerospike client. Everything coming from the current LTS versions.
The text was updated successfully, but these errors were encountered: