> clang-tools-prebuilt@0.1.4 postinstall /home/youkous/EclassDB/node_modules/clang-tools-prebuilt
> node install.js
Downloading clang-tools-r298696-linux.tgz
[============================================>] 100.0% of 40.98 MB (16.39 MB/s)
unziping /root/.clang-tools/clang-tools-r298696-linux.tgz
> mediasoup@3.6.18 postinstall /home/youkous/EclassDB/node_modules/mediasoup
> node npm-scripts.js postinstall
npm-scripts.js [INFO] running task "postinstall"
npm-scripts.js [INFO] executing command: make -C worker
make: Entering directory `/home/youkous/EclassDB/node_modules/mediasoup/worker'
/bin/python2 ./scripts/configure.py -R mediasoup-worker
Traceback (most recent call last):
File "./scripts/configure.py", line 83, in <module>
(major, minor), is_clang = compiler_version()
File "./scripts/configure.py", line 36, in compiler_version
proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [default] Error 1
make: Leaving directory `/home/youkous/EclassDB/node_modules/mediasoup/worker'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mediasoup@3.6.18 postinstall: `node npm-scripts.js postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mediasoup@3.6.18 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
PS: i used the --unsafe-perm=true --allow-root cuz I had permission denied error.
cc is usually an alias/symlink for gcc or other compiler (can be clang) that OS configures for you when you install it (on Linux at least).
Try to find instructions for your OS on how to create an alias.
Also as a workaround you can try alias cc=”gcc” in the terminal.
They are supposed to be in lower case. Anyway, if you install the dev kit of your Linux distribution (as documented in the Installation page) you should be done instead of creating them manually
npm-scripts.js [INFO] running task "postinstall" npm-scripts.js [INFO] executing command: make -C worker make: Entering directory /home/youkous/EclassDB/node_modules/mediasoup/worker'** **python2 ./scripts/configure.py -R mediasoup-worker** **Traceback (most recent call last):** ** File "./scripts/configure.py", line 83, in <module>** ** (major, minor), is_clang = compiler_version()** ** File "./scripts/configure.py", line 36, in compiler_version** ** proc = subprocess.Popen(CC.split() + ['--version'], stdout=subprocess.PIPE)** ** File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__** ** errread, errwrite)** ** File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child** ** raise child_exception** **OSError: [Errno 2] No such file or directory** **make: *** [default] Error 1** **make: Leaving directory /home/youkous/EclassDB/node_modules/mediasoup/worker’
i thought that was a cc --version line 36 error as @nazar-pc suggested, i create the symlink for the cc as i mentioned above, but i had the same error!