I've followed the instructions from the OSRM backend GitHub here and when I go to run the command build-local.bat, I get the following message "CMAKE NOT OK - downloading new CMake 3.9.2"
I've tried the x64 and x86 versions of cmake 3.15.0-rc2 and 3.14.5 that can be downloaded from their website.
When I run build-local.dat as per the project OSRM instructions on [GitHub](https://github.com/Project-OSRM/osrm-backend/wiki/Windows-Compilation
), the output is as follows:
C:\Users\Derek\Documents\osrm\osrm-backend>build-local.bat
APPVEYOR_REPO_BRANCH: master
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PROJECT_DIR: C:\Users\Derek\Documents\osrm\osrm-backend
NUMBER_OF_PROCESSORS: 4
cmake:
cmake version 3.14.5
CMake suite maintained and supported by Kitware (kitware.com/cmake).
CMAKE NOT OK - downloading new CMake 3.9.2
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send.
At line:1 char:1
+ Invoke-WebRequest https://cmake.org/files/v3.9/cmake-3.9.2-win32-x86. ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc
eption
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:\Users\Derek\Documents\osrm\osrm-backend\appveyor-build.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~ ERROR C:\Users\Derek\Documents\osrm\osrm-backend\build-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERRORLEVEL: 1
~~~~~~~~~~~~~~~~~~~~~~ DONE C:\Users\Derek\Documents\osrm\osrm-backend\build-local.bat ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thats because you installed the new version of cmake 3.15.0 and 3.14. But on the appveyor-build.bat it checks for CMake version 3.9.2 only.
You can go to appveyor-build.bat to edit SET CMAKE_VERSION=3.15.0
Related
I'm facing issue while installing amazon-cloud-watch-agent through AWS system manager.Error details as follows.
install errors: & : The term 'C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1' is not recognized as the
name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.
At C:\ProgramData\Amazon\SSM\Packages_arnawsssmpackageamazoncloudwatchagent_2B_HP6ASKUGHXDL73H24T7UUUKNWXRDTKWGMMX5YMX
LDHWGQE2KUPXA====\1.247357.0b252275\install.ps1:23 char:3
& "${Cmd}" -Action cond-restart
+ CategoryInfo : ObjectNotFound: (C:\Program File...h-agent-ctl.ps1:String) [], ParentContainsErrorRecord
Exception
+ FullyQualifiedErrorId : CommandNotFoundException
failed to run commands: exit status 1
Failed to install package; install status Failed
I have tried install it manually.It also didn't work.
The error message you are seeing indicates that the installation script is having trouble locating the script included in the CloudWatch Agent installation package called amazon-cloudwatch-agent-ctl.ps1. This could occur if the CloudWatch Agent installation package was not downloaded completely or was downloaded to an unexpected location.
when i try to run any command at cli it gives this error:
vue : File C:\Users\john\AppData\Roaming\npm\vue.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see
about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1
vue create app1
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
any solution to solve it
If you only tried to run it with PowerShell, switch to CMD and run the command.
PS D:\> install npm
install : The term 'install' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ install npm
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (install:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
When trying to install npm in vscode version VSCodeSetup-x64-1.17.2 in windows 10 OS, I am getting the error.
Error Code from debugger is as below
3221225477 Signal: null
e._onExtensionHostCrashed # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:29
/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28 Extension host terminated unexpectedly.
e.doShow # /C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:28
Please advise how to resolve this error.
Thanks and Regards
Vijay
You're typing 'install npm install' but the first 'install' is not a binary for the CMD.
Try to install node (which includes npm):
https://nodejs.org/en/download/
Goto the environment path settings, at the "Path" in both user path and system path, there is a more ";" for visual studio code, remove the ";" and restart the VS code, everything is ok now.
I think it's a Microsoft bug.
This used to work before. When I try to create a nuget package from Package Manager Console using the following command
nuget.exe pack $testCoreProj -Build -OutputDirectory $outputPackagePath
I get this error
Attempting to build package from 'Test.PageObjects.csproj'.
MSBuild auto-detection: using msbuild version '15.0' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin'.
nuget.exe : Could not load file or assembly 'Microsoft.Build.Framework, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
At C:\Good\GIT\mg-alfa-dev\Test.Core\CreateNuGetPackage.ps1:26 char:1
+ nuget.exe pack $testPageObjectsProj -Build -OutputDirectory $outputPa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Could not load ...file specified.:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
Since you can run that commnad line in the Package Manager Console, you should add the path of nuget.exe into the environment path. Could please try to update the nuget.exe version (Above 4.0) in that path:
https://dist.nuget.org/win-x86-commandline/v4.3.0/nuget.exe
I am trying to get DNX projects building on VSO's host agent.
First thing is installing DNX. I have the following powershell script to do this:
dnx-upgrade.ps1:
dnvm upgrade -r clr -arch x86 -v 1.0.0-beta6
It successfully installs and PATH is updated:
Adding
C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin to
process PATH
Adding
C:\Users\buildguest.dnx\runtimes\dnx-clr-win-x86.1.0.0-beta6\bin to
user PATH
Then I need to restore the solution's packages with this script:
dnu-restore.ps1:
dnu restore
But I get the following error when executing dnu-restore.ps1:
[error]dnu : The term 'dnu' is not
recognized as the name of a cmdlet, function, script file, or operable
program. Check the
[error]spelling
of the name, or if a path was included, verify that the path is
correct and try again.
[error]At
C:\a\8ac4a4f6\Root\MyProject\Development\dnu-restore.ps1:1 char:1
[error]+ dnu restore
[error]+ ~~~
[error] + CategoryInfo :
ObjectNotFound: (dnu:String) [], CommandNotFoundException
[error] + FullyQualifiedErrorId :
CommandNotFoundException
Build tasks:
Why is this happening? Surely dnu should execute? Is there a better way to restore DNX project packages?
Using the Prebuild.ps1 script from this MSDN article solved the problem.
As Victor suggested, it may be because the steps are run in different processes.