The term 'METEOR_PACKAGE_DIRS=packages' is not recognized as the name of a cmdlet, function, script file, or operable program - meteor

I ran this METEOR_PACKAGE_DIRS="packages" meteor --settings config/orthancDICOMWeb.json this in my ohif application root. but it gives a error "METEOR_PACKAGE_DIRS=packages : The term 'METEOR_PACKAGE_DIRS=packages' 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".My packege file is located in the project root.My OS is windows 10.

The command
METEOR_PACKAGE_DIRS="packages" meteor --settings config/orthancDICOMWeb.json
seems to be in unix/linux format.
On windows you may use set to first set the environment variables (wrapping your code in a small batch script):
set METEOR_PORT=3090
set METEOR_SETTINGS=config/orthancDICOMWeb.json
set METEOR_PACKAGE_DIRS=packages
call meteor --port=%METEOR_PORT% --settings %METEOR_SETTINGS$

Related

Error that says Rscript is not recognized as an internal or external command, operable program or batch file [duplicate]

shell_exec("Rscript C:\R\R-3.2.2\bin\code.R ");
This is the call to script.On calling the above script, the error occurs.
I am trying to call my R script from the above path but no output is being shown. While checking the error logs of PHP, it says 'Rscript' is not recognized as an internal or external command, operable program or batch file.' The script is working fine on the Rstudio but not running on the command line.
Add the Rscript path to your environment variables in Windows:
Go to Control Panel\System and Security\System and click Advanced System Settings, then environment variables, click on path in the lower box, edit, add "C:\R\R-3.2.2\bin"
Restart everything. Should be good to go. Then you should be able to do
exec('Rscript PATH/TO/my_code.R')
instead of typing the full path to Rscript. Won't need the path to your my_code.R script if your php file is in the same directory.
You need to set the proper path where your RScript.exe program is located.
exec ("\"C:\\R\\R-3.2.2\\bin\\Rscript.exe\"
C:\\My_work\\R_scripts\\my_code.R my_args";
#my_args only needed if you script take `args`as input to run
other way is you declare header in your r script (my_code.r)
#!/usr/bin/Rscript
and call it from command line
./my_code.r
If you are running it in Git Bash terminal, you could follow a revised version of the idea suggested by #user5249203: in the first line of your file my_code.R, type the following
#!/c/R/R-3.2.2/bin/Rscript.exe
I assumed that your path to Rscript.exe is the one listed above C:\R\R-3.2.2\bin. For anyone having a different path to Rscript.exe in Windows, just modify the path-to-Rscript accordingly. After this modification of your R code, you could run it in the Git Bash terminal using path-to-the-code/mycode.R. I have tested it on my pc.
I faced the same problem while using r the first time in VS Code, just after installing the language package (CRAN).
I restart the application and everything worked perfectly. I think restarting would work for you as well.

error in running jupyter notebook

I installed anaconda prompt on my computer and then tried to run the following in windows
C:\Users\Richard Boire>jupyter notebook
Listed below is the error message
'jupyter' is not recognized as an internal or external command,
operable program or batch file.
It's a typical message telling you that windows cannot find the executable corresponding to the keyword 'jupyter' you told it to execute.
The solution is to add the absolute path of jupyter.exe in "PATH" variable in environment variable:
How to set the path and environment variables in Windows
For me, the installation path is: C:\Users\username\AppData\Local\Continuum\Anaconda3\Scripts\jupyter.exe
What you need to do is to add C:\Users\username\AppData\Local\Continuum\Anaconda3\Scripts\jupyter.exe
to the PATH variable.
Note that if the PATH variable already has value assigned. First add a separator ";", then append the new path after the separator .

Could not run an R Script from command prompt in Windows

I could not run my R Script from command prompt . Even if I have updated the path in environment variables.
It is displaying the following error message:
'rscript' is not recognized as an internal or external command, operable program or batch file
What could be the issue behind this?

Spark Windows wont start

I am trying to start ab Spark but I got following error message
is not recognized as an internal or external command,
operable program or batch file.
Java/ Scala is installed
Also I set following user variables and system Path
But I get this error when running sparkR
the path to spark does not allow for spaces, so i just moved it to c:\spark, works fine now

Windows Command prompt shell for sqlite3

The documentation states that there is a command-line shell for sqlite3:
To start the sqlite3 program, just type "sqlite3" followed by the name the file that holds the SQLite database."
When I try this, in the Windows Command Prompt I get the error message:
'sqlite3' is not recognized as an internal or external command,
operable program or batch file.
Windows explorer reveals several 'Sqlite3" folders in various places:
backends(C:/Python26/Lib/site-packages/django/db)
Lib(C:/Python26)
backends(C:/Django-1.1.1/Django-1.1.1/build/lib/django/db
backends(C:/Django-1.1.1/Django-1.1.1/django/db)
How do I access the shell, can anyone help?
Download sqlite3 binary for windows here. Unzip it and put it somewhere in your path.
That's the error message you get if you try to run any executable that's not in your current directory or in the path.
To correct the problem, find the SQLite executable (SQLITE3.EXE), and run it from the directory in which it resides, or add SQLITE3.EXE to your PATH environment variable.
You have to properly set your PATH environment variable to include one of the locations where sqlite3.exe resides. Usually SQLite seems to set that environment variable upon install but the list of paths where you found it indicates that it just came as a library for various other applications. Therefore it's not too surprising that the path isn't set.
I have sqlite3 on my machine, and as others have mentioned it must be located within a folder specified by your PATH environment variable. Since I use it a lot, I threw it in windows\system32, which is where I place a lot of utilities like pstools.

Resources