UJP - 環境変数の設定

Life is fun and easy!

不正IP報告数

Okan Sensor
 
メイン
ログイン
ブログ カテゴリ一覧

  • カテゴリ サイト構築 の最新配信
  • RSS
  • RDF
  • ATOM

ブログ - 環境変数の設定

環境変数の設定

カテゴリ : 
サイト構築
ブロガー : 
ujpblog 2017/5/25 1:13
 取り急ぎ.bash_profileと.bashrcファイルを確認.
zeus:~ server$ cd 
zeus:~ server$ ls -la .bash_profile
ls: .bash_profile: No such file or directory
zeus:~ server$
zeus:~ server$ ls -la .bashrc
ls: .bashrc: No such file or directory
zeus:~ server$ 
 どっちもないのか..bash_profileはログインの時..bashrcはシェルを起動する都度呼ばれる.brewで追加したパッケージは,.bashrcにファイル検索パスを追加する.

echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> ~/.bashrc
echo 'export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"' >> ~/.bashrc
echo 'export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"' >> ~/.bashrc
cat .bashrc
 実行結果は,これ.
zeus:~ server$ cat .bashrc
export PATH="/usr/local/opt/openssl/bin:$PATH"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
zeus:~ server$ 

トラックバック


広告スペース
Google