Open MarkKocherovsky opened 3 years ago
(Disclaimer: not an Emscripten maintainer)
Using sudo
will create a new environment that will not inherit the variables set by source ./ensdk_env.sh
. Instead, you may do sudo -s
to open a full shell as root, then execute source ./ensdk_env.sh
and then you may use the command as usual (without sudo
, as you are already root).
I'm no expert, but you probably don't want to run commands as root needlessly as it increases the risk and possible damage if something goes wrong. Instead, you may want to see if the files in question should be chmod
'ed to be readable (and, if necessary, writable) by other users.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 30 days. Feel free to re-open at any time if this issue is still relevant.
I am trying to install opencv js using the instructions in this link. I've followed the emscripten sdk instructions given here, and am trying to run
emcmake python ./opencv/platforms/js/build_js.py build_js
. This returns the following error:However, running
sudo emcmake python ./opencv/platforms/js/build_js.py build_js
returnssudo: emcmake: command not found
. I am using Windows 10 with the Ubuntu 20.04 terminal, and I have added the emcmake env variables to my PATH, which I have checked.