1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

homebrewで導入したコマンドをNetbeansから使えるようにする

Last updated at Posted at 2016-09-12

homebrew でインストールしたコマンドは /usr/local/bin/ にインストールされるが、アプリケーションは~/.bashrcの指定は無視され独自のPATHが設定されるので使えない。

アプリ毎にPATHを指定する方がMacOSのバージョン毎に変わっており、よくわからなかったので、Netbeans起動スクリプトを直接開きPATHを追加で動いた。

起動スクリプト(Netbeans 8.1の場合)
/Applications/NetBeans/NetBeans 8.1.app/Contents/Resources/NetBeans/bin/netbeans

...
# However, if you add GPL Version 2 code and therefore, elected the GPL
# Version 2 license, then the option applies only if the new code is
# made subject to such option by the copyright holder.

#
# /usr/local/bin/ をPATHに追加
#
export PATH=/usr/local/bin/:$PATH

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?