How do I run Testacular on Windows? - angularjs

Working on Windows (x86 version, not cygwin)
I was able to install Testacular
npm list -g
C:\Users\myName\AppData\Roaming\npm
└─┬ testacular#0.4.0
etc....
But when I run testacular get ...
'testacular' is not recognized as an internal or external command,
operable program or batch file.
I have tried adding bin to path..
SET PATH=%PATH%;C:\Users\myName\AppData\Roaming\npm\node_modules\testacular\bin
but it doesn't work, there does not appear to be an executeable or batch file (testacular.bat, testacular.exe)
What am I missing?
Michael

You should use testacular.cmd :-)
In the command prompt, simply type testacular.cmd instead of just testacular. You must do the same for many node modules on windows.

Related

gcc is not recognized as a command in the vscode terminal

When I try to run some very basic code(literally 5 lines) I get the error: "'gcc' is not recognized as an internal or external command,
operable program or batch file." mingw is installed and added to path and when I type gcc --version in cmd everything is fine. I'm using the VSCode editor and I'm running Windows 10.
Try to restart VSCode. I know that if you add/remove anything from PATH and VSCode was already running, you need to re-launch it for any PATH changes to work.

What to install and how to run an executable file on Mac?

So I'm in terminal, and have a directory called CAPTURE on my desktop, I'm trying to run a program called 'testme'. I read that you need to have build-essential installed but I think that's only on Linux systems and I'm on a Mac so it wasn't necessary because it's already built in (I think). So, I navigated from ~ with:
cd Desktop/CAPTURE
Then, I tried running a bunch of different commands that I found while looking on the internet:
./testme
which returned zsh: exec format error: ./testme
xcode-select --install
which installed properly and I thought I could run the ./testme command but I got the same error as before. Then I tried navigating to the directory again and used
chmod +x ./testme
./testme
which also did not work. I've never run executables before so I really have no familiarity with these commands so they might be super wrong. If anyone can help me run the file properly, that would be much appreciated.
Since your question is tagged as C and Clang, and you are talking about build-essential, I will assume that you are attempting to build an application from source code.
Instead of build-essential, in macOS, you need Xcode. The Xcode CLI tools will work if the application is text-only or Curses, but you will need the entire Xcode IDE for any graphical application.
If running ./testme is telling you Executable format error is probably because it's a prebuilt executable, very likely a Linux ELF executable that will not run in macOS.
My suggestion is to try to build the software. Most C applications will build if you run make inside the directory. make is installed by default by Xcode. Other applications may need a third-party build system, such as CMake, but I do not know if that's the case.

Makefile not working, path not found to 'make' command

Im a first year university student learning how to use makefiles to compile and run my simple program. I set it up as instructed but when i type in "make" it pops up this error:
The term 'make' 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
Tried checking the path and uninstalled and reinstalled minGW using the installer. Should i try installing the gcc compiler a different way? Please keep in mind im pretty new to this stuff. Using C btw.
MinGW is just the compiler tools. But usually it comes with mingw32-make.
So you would try that, but the location of the MinGW .exe files you are trying to run must be in the PATH environment variable or it won't find them.
If you want to run make like they do on Linux/Unix I recommend you install MSYS2 shell from https://www.msys2.org/
Quick answer:
Use mingw32-make instead of make after installing mingw
If you don't have "make" command follow steps;
(First, make sure you have installed choco)
Run PowerShell as administrator
choco install make

New to C: Compiling in Visual Studio Code... error: gcc not recognized?

I am very new to coding (trying to teach myself C). I have some experience with MatLab, but I understand it is very different from C. I have Windows 10 with the newest version of Visual Studio Code (VSC) with the Run Code Extension and git extension (not sure what git does, but VSC prompted me to install). I am now familiar with the text editor, but do not know how to compile/run my code (apologies if I'm butchering the terminology, again, a newby). One friend recommended I determine the location in which the desired text file is located, type "gcc filename.c", enter, type "./a.out", and then the program should run. (Said friend has a Mac and I supposed the execution commands are different?) Regardless, I encountered "Run Code" extension on my google adventures and follow the steps I've seen online, but I am still getting the error pictured.
I can see how this would be an especially basic question, but if anyone can offer assistance/advice, I would be extremely grateful!
Thanks, All.
Sandy
P.S. In case the image doesn't load/work for whatever reason, this is the error:
"'gcc' is not recognized as an internal or external command,
operable program or batch file."
Works perfect in Visual Code. You need the following:
C/C++ extension in Visual Code.
msys64 installed in C:\
Add path to msys64 bin folder in environment variable
Instructions:
https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools
Important the msys64 path doesn't contain spaces so don't install it in Program Files.
You can search "Edit system environment variables" from the windows button, press button Environment Variables, and then add it as a System variable "Path". For me its located in
C:\msys64\mingw64\bin
Hey,,,
It will work for you I believe
Blockquote
First: open the link: https://www.msys2.org/
Go to the installation and download the installer .. install the exe file.
search mingw in windows search(windows start)
there is an app named--> MSYS2 MinGW {64/32}-bit
run it as administrator
Found command shell ---> type: pacman -Syu
Will ask you for some installation click on Y
Then again go to the same app MSYS2 MinGW {64/32}-bit and run as admin
and write--> pacman -Ss gcc (in shell that opend after click)
after clicking there will be bunch of things and now you have to care about your windows arch.. if it is 64 bit then write---> pacman -S mingw-w64-x86_64-gcc (and if its 32 you will find something like that where 64 will replaced by 32 in bunch of commands that are showing in your shell)
after executing this command gcc will be installed in your system to check write: gcc --version || g++ --version
After that to install the debugger write pacman -S mingw-w64-x86_64-gdb
to check write: gdb --version
**Every thing got installed in your system now find the mingW file or mysys2 file on C drive(whereever you r mingW file got saved) go the the minGW 64 || 32 accroding to your operating system there is a bin folder click on that and copy the path inside the bin folder and save it in environment variables path **
Blockquote
Enjoy vs code
My recommendation
You are on Windows right? So you can just install Visual Studio IDE (follow this tutorial). Which is better than vs code. This tutorial is for C++ but it works for C as well. Because C++ uses the same compiler as C but with some more things(simple explanation).
The solution for your problem
You are getting the massage 'gcc' is not recognized as an internal or external command, operable program or batch file because you do not have the gcc compiler installed on your computer. But if you want to install it, you can follow this tutorial. But I highly recommend you use Visual Studio IDE which I mentioned above.
Type gcc --version in the command prompt to check whether the C compiler is installed in your machine.
If it is installed then try adding gcc to the environment variables using this link:
https://www.youtube.com/watch?v=qLh84CmdBJ0
If it is not installed then install it using instructions using this link:
https://www.guru99.com/c-gcc-install.html
and then add it to the environment variables using the link above.
If it is installed and not recognized by VSCode then try to run VSCode from CMD by typing code in CMD.

visual studio 2015 command prompt '.' is not recognized as an internal or external command, operable program or batch file

I worked on GIS project and i need 64 bit gis lib.And than;
What did i?
I download lzo-2.10 file.
I run visual studio 2015 64x command prompt
cd C:\Users\user\Desktop\lzo-2.10
./configure
and ı got some error like that:
'.' is not recognized as an internal or external command,
operable program or batch file.
INSTALL.txt which include lzo-2.10 said that:
The simplest way to compile this package is:
cd' to the directory containing the package's source code and type
./configure' to configure the package for your system. If you're
using csh' on an old version of System V, you might need to type
sh ./configure' instead to prevent csh' from trying to execute
configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
Type `make' to compile the package.
Optionally, type `make check' to run any self-tests that come with
the package.
Type `make install' to install the programs and any data files and
documentation.
You can remove the program binaries and object files from the
source code directory by typing make clean'. To also remove the
files thatconfigure' created (so you can compile the package for
a different kind of computer), type make distclean'. There is
also amake maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
But I even couldn't first step. I searched but couldn't fix this situation.pls help me.
It looks like your GIS library require linux to be build. Given that you use VS2015 I assume you work on Windows instead.

Resources