I am trying to install Rust. However I'm unable to complete the installation due to this error:
E:\My Projects\solana>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
'sh' is not recognized as an internal or external command,
operable program or batch file.
What does this error mean?
It seems that you are attempting to use a unix shell program (sh) to execute a script downloaded from curl on a Windows-based machine. This is unlikely to work. Look at this link instead: https://forge.rust-lang.org/infra/other-installation-methods.html
Related
Trying to install PAM module on Windows 10 machine. currently not having much luck. not sure why I'm getting this error.
cpan> install Authen::PAM
Running install for module 'Authen::PAM'
Checksum for C:\STRAWB~1\cpan\sources\authors\id\N\NI\NIKIP\Authen-PAM-0.16.tar.gz ok
Configuring N/NI/NIKIP/Authen-PAM-0.16.tar.gz with Makefile.PL
Checking if your kit is complete...
Looks good
'.' is not recognized as an internal or external command,
operable program or batch file.
Error in configuring the Authen::PAM module.
Warning: No success on command[C:\Strawberry\perl\bin\perl.exe Makefile.PL]
NIKIP/Authen-PAM-0.16.tar.gz
C:\Strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK
Stopping: 'install' failed for 'Authen::PAM'.
Failed during this command:
NIKIP/Authen-PAM-0.16.tar.gz : writemakefile NO 'C:\Strawberry\perl\bin\perl.exe Makefile.PL' returned status 512
The module doesn't support Windows.
Specifically, the error results from the module's installer being incompatible with Windows. It tries to executes a Bourne shell command to invoke a Bourne shell script, and there is no such shell on your machine. Even if you could install such a shell, it wouldn't help. The script is very much only intended for unixy systems.[1]
There are ways of creating unixy environments on Windows. Virtual environments such as those created by Windows Subsystem for Linux (WSL), Cygwin and MSYS may support the module, but the perl from within those environments would have to be used.
I am getting this kind of error when I execute any commands of Heroku such as heroku -v or heroku login.
'crumb' is not recognized as an internal or external command, operable
program or batch file.
'ruby.exe' is not recognized as an internal or external command,
operable program or batch file.
One of your errors complains about Ruby not being available. Based on that message I suspect you have the legacy Ruby-based CLI installed. It hasn't been supported for a very long time.
Remove it and then install the current CLI, which is built with Node.js.
I have git for windows installed, but I can't run curl commands in cmd. If I type in curl, I get the following error:
'curl' is not recognized as an internal or external command, operable program or batch file.
Curl is normally included in the Git package for Windows.
If you start "Git Bash", the command "curl" should be available in your bash window.
The curl executable is located in the "bin" directory, along with all the other applications installed with git.
I am trying to install mapr-client in window 7 64bit with link
I'm go to set java and mapr path both after that download the setup
and extracted while executing the below command getting an error.
server\configure.bat -N my.cluster.com -c -C node01:7222.
Have
changed it like below.
server\configure.bat -N Mapr.konexy.com -c -C 10.0.3.13:7222.
Below is the error that i am getting
'c:\opt\mapr' is not recognized as an internal or external command, Operable program or batch file.
Create a MAPR_HOME variable pointing to c:\opt\mapr, where the mapr client zip is extracted.
Cmd error: "sh" is not recognized as an internal or external command, operable program or batch file.
C:\Users\user>npm install -g node-curl
npm http GET https://registry.npmjs.org/node-curl
npm http 304 https://registry.npmjs.org/node-curl
> node-curl#0.1.4 install C:\Users\user\AppData\Roaming\npm\node_modules\node-cu
rl
> sh src/generate_curl_options_list.sh && node-waf configure build || true
"sh" is not recognized as an internal or external command, operable program or batch file.
"true" is not recognized as an internal or external command, operable program or batch file.
To expand on Florian's answer: You're on Windows, which doesn't have cURL or sh. You're trying to install a module that relies on your operating system offering the libcurl-library and sh, which is not shipped with Windows.
You have some options:
Write your own node-only implementation that behaves like curl.
See this question on SO: Curl equivalent in nodejs?
It goes into details of how to use the built-in http module, like curl.
Or install libcurl and sh on windows, with a tool like cygwin. I haven't tried this, and the npm module you're trying to install might still have dependencies on other unix tools that aren't solved by cygwin.
Or look for something else in http://search.npmjs.org/ that behaves like curl. Try httpsync or curly
I recommend option 1, it'll teach you basic http principles. The native modules in node already offer everything you might need curl for. :)
Well, using node-curl on windows, that doesn't have curl, is quite stupid.
Don't try.