Install Sqitch Perl CPAN module on Windows - windows

I'm trying to install sqitch on Windows 10 after installing it with CPAN using latest Strawberry Perl.
cat NEWS >ReleaseNotes
'cat' is not recognized as an internal or external command,
operable program or batch file.
dmake.exe: Error code 129, while making 'ReleaseNotes'
GUIDO/libintl-perl-1.26.tar.gz
C:\Projects\STRAWB~1\c\bin\dmake.exe -- NOT OK
Stopping: 'install' failed for 'Locale::Messages'.
Unfortunately dependency Locale::Messages fails to install. Is it trying to invoke linux "cat" command on Windows? Is there a workaround?

I have just installed App::Sqitch on my copy of Strawberry Perl
It has created this file
C:\Strawberry\perl\site\bin\sqitch.bat
If you don't have that file then it sounds like your installation didn't work properly
If you do have that file, but you cannot run it without providing the full path, then C:\Strawberry\perl\site\bin isn't in your PATH

The module provides the sqitch command, which is documented here, call it from the command line like so:
sqitch [<options>] <command> [<command-options>] [<args>]
Note that the documentation has links to associated tutorials and other references to learn how to use it.
sqitch installed here by default:
root#test:~# which sqitch
/usr/local/bin/sqitch
Try searching for the file from the command line of Windows.
Just grab it from here and place it in your path:
https://github.com/theory/sqitch/blob/master/bin/sqitch

Related

CPAN "." is not recognized as an internal or external command - Windows 10

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.

Issues installing PhantomJS for windows: command not recognized

following the docs here: http://attester.ariatemplates.com/usage/phantom.html, I am trying to install phantomjs on my windows machine.
I tried adding multiple lines to my Path system variable, and yet, I get the same error in the command prompt when I type in phantomjs --version.
" 'phantomjs' is not recognized as an internal or external command, operable program or batch file."
I added the phantomjs.exe to C:\phantomjs\bin\, and added C:\phantomjs\bin\phantomjs to the path, and any variation that I could think of, such as:
C:\phantomjs\bin\phantomjs.exe\; C:\phantomjs\bin; C:\phantomjs\bin\phantomjs\;
How am I not installing this right?
You don't need to put all the directories to the environment PATH variable.
Add only following to your path and restart your command prompt.
C:\phantomjs\bin\
Add phantomjs.exe to C:\Windows\System32 folder.

Node.js install module on windows

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.

MacPorts Installation -- Shell Commands/Postflight Script

I had run the MacPorts installer (2.0.3) for my OS X Leopard (10.5.8) which finished "successfully". Unfortunately the port command was not available so I looked in the MacPorts Guide which says that the installer should have run a so-called "postflight" script that sets the necessary environment variables. I tried to run the postflight script manually (which I downloaded from here), but the execution fails with the following output:
Detected the bash shell.
Your shell already has the right PATH environment variable for use with
MacPorts!
Your shell already has the right MANPATH environment variable for use with
MacPorts!
Your shell already has the right DISPLAY environment variable for use with
MacPorts!
Adding [default] tag to sources.conf if needed...
couldn't read file "/Contents/Resources/upgrade_sources_conf_default.tcl": no
such file or directory
Updating port image format...
couldn't read file "/Contents/Resources/images_to_archives.tcl": no such file or
directory
Synchronizing the MacPorts installation with the project's rsync server...
-bash: __PREFIX__/bin/port: No such file or directory
An attempt to synchronize your recent MacPorts installation with the project's
rsync server failed!
Please run 'sudo port -d selfupdate' manually to find out the cause of the
error.
You have succesfully installed the MacPorts system, launch a terminal and try it
out!
Read the port(1) manual page and http://guide.macports.org for help,
http://www.macports.org/contact.php if you need to get in touch with The
MacPorts Project.
Any ideas?
First invoke the port command directly:
$ /opt/local/bin/port help
If that comes back with something reasonable (like the help text) then it's just that your $PATH isn't being used by your current shell. Try logging off and back on again to resolve that in the short term (this will test that your .bashrc file is correctly configured) or you could just modify the PATH environment variable directly (which doesn't test .bashrc):
$ export PATH=$PATH:/opt/local/bin
You downloaded the postflight script but it alone cannot access the accessory scripts in Contents/ because those are located into the install package.
Those missing Tcl scripts are for upgrading from an older install, the log says PATH was already correctly configured but the macports bin directory could have the wrong position in PATH variables, for instance being at the end of PATH.
If you are doing a fresh install you can just only need PATH and MANPATH -you want man pages provided by macports before system's ones- as per [1]
[1] http://guide.macports.org/#installing.shell.postflight

Run bin files on Ubuntu

I'm trying to run SQLiteStudio on Ubuntu. I'm getting error when I try to run it with terminal:
ubuntu#ubuntu:~/Desktop$ sqlitestudio-2.0.22.bin
sqlitestudio-2.0.22.bin: command not found
I tried other sqlite managers but SQLiteStudio has more options, I've used it on Windows.
You need a ./ in front of the command
./sqlitestudio-2.0.22.bin

Resources