I am trying to use Mac's JavaScriptCore to run some JavaScript scripts without using HTML or a website. When I tried to make a link using $ sudo ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc /bin/jsc
I got a message saying ln: /bin/jsc: Operation not permitted
. Does anyone know how to fix this problem? If it's not fixable, should I just install Rhino or install Homebrew and get Google's V8 engine?
我正在尝试使用Mac的JavaScriptCore来运行一些JavaScript脚本而不使用HTML或网站。当我尝试使用$ sudo ln -s /System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc / bin / jsc建立链接时,我收到一条消息说ln:/ bin / jsc:操作不允许。有谁知道如何解决这个问题?如果它不可修复,我应该安装Rhino还是安装Homebrew并获得Google的V8引擎?
1 个解决方案
#1
0
Root is not all powerful any more, so put it in /usr/local/bin
. In any case you should not be editing /bin
or /usr/bin
or other system maintained directories.
Root不再是强大的,所以把它放在/ usr / local / bin中。在任何情况下,您都不应该编辑/ bin或/ usr / bin或其他系统维护的目录。
#1
0
Root is not all powerful any more, so put it in /usr/local/bin
. In any case you should not be editing /bin
or /usr/bin
or other system maintained directories.
Root不再是强大的,所以把它放在/ usr / local / bin中。在任何情况下,您都不应该编辑/ bin或/ usr / bin或其他系统维护的目录。