4
4

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.

/usr/bin/env: ruby: そのようなファイルやディレクトリはありません

Last updated at Posted at 2014-05-03
$ sudo ruby -v
/usr/bin/env: ruby: そのようなファイルやディレクトリはありません

~/.bashrcに以下を追加

$ vi ~/.bashrc
# 以下を追記
export PATH=/usr/local/bin:$PATH
alias sudo="sudo env PATH=$PATH"
$ vi /etc/sudoers
# 以下の設定に「:/usr/local/bin」を追記、この場合、全体に影響する
Defaults    secure_path = /sbin:/bin:/usr/sbin:/usr/bin
4
4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?