aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/system_config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/system_config.rb b/Library/Homebrew/system_config.rb
index 3e1acd4ff..063f7f34f 100644
--- a/Library/Homebrew/system_config.rb
+++ b/Library/Homebrew/system_config.rb
@@ -73,7 +73,7 @@ class SystemConfig
end
def describe_perl
- describe_path(which("perl"))
+ describe_path(which("perl", ENV["HOMEBREW_PATH"]))
end
def describe_python
@@ -96,7 +96,7 @@ class SystemConfig
end
def describe_ruby
- ruby = which "ruby"
+ ruby = which "ruby", ENV["HOMEBREW_PATH"]
return "N/A" if ruby.nil?
ruby_binary = Utils.popen_read ruby, "-rrbconfig", "-e", \
'include RbConfig;print"#{CONFIG["bindir"]}/#{CONFIG["ruby_install_name"]}#{CONFIG["EXEEXT"]}"'