This doesn't do what you want (it sets PREFIX in a subshell and the that subshell exits, it does not affect the parent environment), you want something like `system "make", "PREFIX=#{prefix}", "install"`