简体   繁体   English

尝试连接终端以识别TextMate的“配合”命令

[英]Trying to connect Terminal to recognize “mate” command for TextMate

Couldn't Create Link 无法建立连结

Creating the link “/usr/bin/mate” failed with the following reason: Operation not permitted 创建链接“ / usr / bin / mate”失败的原因如下:不允许操作

I am getting this error when I attempt to link the terminal usage with TextMate. 尝试将终端使用情况与TextMate链接时出现此错误。
I did this by going Help >> Terminal Usage... 我是通过转到帮助>>终端使用...来完成此操作的
And I tried to create a link in /usr/bin. 我试图在/ usr / bin中创建一个链接。

I think the problem is something to do with permission issue. 我认为问题与许可问题有关。
I am wondering if there is a way to work around this problem by changing bash file directly or something and make terminal recognize "mate" as a command. 我想知道是否有办法通过直接更改bash文件或其他方式使终端识别“ mate”作为命令来解决此问题。

Thank you for any suggestion. 感谢您的任何建议。

Assuming Textmate is installed in /Applications the following command in the terminal should manually create the link for you: 假设Textmate安装在/Applications中,则终端中的以下命令应为您手动创建链接:

$ sudo ln -s /Applications/TextMate.app/Contents/SharedSupport/Support/bin/mate /usr/bin

The command will ask you for your user account's password so it has the permissions necessary to create the link in /usr/bin/ 该命令将要求您提供用户帐户的密码,因此该命令具有在/usr/bin/创建链接所必需的权限。

There should be an option to create it in /usr/local/bin . 应该有一个选项可以在/usr/local/bin创建它。 Create it there. 在此创建。 Make sure /usr/local/bin is in your $PATH . 确保/usr/local/bin$PATH

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM