node.js "Command failed: execvp(): Permission denied" error on MasOS X - macos

I'm trying to run a program (e.g. "/Applications/Safari.app") from node using child_process.execFile but it fails with the error:
"Command failed: execvp(): Permission denied"
It works well on Ubuntu and Windows, but on MacOS this issue appears. Am I missing something?

/Applications/Safari.app is actually a directory (application bundle), not an executable file.
I think the simplest solution would be to use /Applications/Safari.app/Contents/MacOS/Safari instead.

Related

How can I resolve a package installation error in Julia on Windows?

I have just started using Julia on a Windows 10 machine, and I have been trying to install some very basic packages. When I use the Pkg.add() command, however, the command window returns the following error:
ERROR: SystemError: opening file C:\Users\username\.julia\environments\v1.0\Project.toml: Permission denied
The error message pops up even when using the Administrator mode. Any advice or tips would be appreciated! Thanks!
Delete .julia folder or set a new location for the JULIA_DEPOT_PATH.
Once done use a non-administrator account (the one you normally work with) to reinstall packages.

zsh: permission denied: reading anyway

this is the error its showing now
I was installing "Laravel" through a tutorial and now i am facing this error "zsh: locking failed for /users/vishnu.zsh_history: permission denied: reading anyway"
macos:- catalina v10.15
I am using macbook air,
I don't have any idea what happened it happened while I was installing composer and a file was missing to get that file I ran some "chown" command and now I cant even open my chrome browser
Please Help
-ThankYou
You can run this command :
sudo chown -R ${LOGNAME}:staff $HOME
to make sure the owner is correct for your files.

Modified Castlia 3.3 + omnetpp 5.3 on ubuntu- permission denied

I have compiled both castalia 3.3 with its modified version adapted to omnet 5.3 and everything was right but when running simulation using command line
/Castalia/Simulations/radioTest$ ../../bin/Castalia -c General
I got this error:
bash: ../../bin/Castalia : Permission denied
I added the path to .bashrc and .profile in ubuntu
export PATH=$PATH:/home/usr/../Castalia/bin
but still got the same error
How can I solve this problem ?
This problem is not related to Castalia specifically. You could have searched with "program permission denied" to find the general answer: Ubuntu says "bash: ./program Permission denied"
Adding Castalia in the path will not fix your problem. The system can find the Castalia script fine (you provide the absolute path in the first place). It just can't execute it.
Execute the command below in Castalia's bin directory. This will give the right permission to all 3 castalia scripts:
chmod u+x Castalia*

Kamailio installation error on MAC 10.9, what is this error?

I am trying install Kamailio 4.1 on mac OS10.9 by command:
make cfg; make all; make install
But I see on Terminal, it through:
mkdir -p /usr/local/etc/kamailio/
/bin/sh: -c: line 1: syntax error: unexpected end of file
make: *** [install-cfg] Error 2
What is this error? Do I missing anything else? Please guide me the correct way to achieve my objective.
Not clear from provided log messages, but I expect is about file system privileges. You need to run 'make install' via sudo (or as a privileged user that can create the directory /usr/local/etc/kamailio/).
I use kamailio on mac os x for few years now. Apart of installing some libraries via mac ports for various modules, all runs smooth.

Unable to understand a permission warning in Mac

I have 777 permissions for the app AquaLess installed by MacPorts.
I run
./AquaLess.app
I get
zsh: permission denied: ./AquaLess.app
This is a strange warning, since I have 777 permissions.
How can you use the program installed by MacPorts?
Type open AquaLess.app
A file with .app extension isn't an executable file. It's a directory that contains various resources in ways that Mac OS knows how to open.
You would get the same warning if you tried to execute $HOME.
Or you could run:
$ ./AquaLess.app/Contents/MacOS/AquaLess
Which runs the actual executable within the .app bundle.

Resources