#解決したい問題
ターミナルでシンボリックリンクをつけたいのですが、リンクはつけることができるのですが、リンクで呼び出そうとするとcommand not found
とエラーとなってしまいます。
どうしたら上手くいきますか。
os : EL capitan
#試したこと
1, ~ homemac$ sudo ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/bin/subl ~ homemac$ subl -bash: subl: command not found ちなみにこれも試してみました。 ~ homemac$ /usr/bin/subl -bash: /usr/bin/subl: No such file or directory 2, ~ homemac$ sudo ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" subl ~ homemac$ subl -bash: subl: command not found
調べたところ、command not found
はpathがおかしいということなのでecho
でpathを表示してみました。
~ homemac$ echo $PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
3, ~ homemac$ sudo ln -s "/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl ~ homemac$ subl -bash: subl: command not found
ここから先がわからないので、シンボリックリンクがきちんと動作するよう教えて下さい。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/07 14:33