Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add PATH to bash and execute resources to set locations for python, m…

…ake, & uname
  • Loading branch information...
commit dca58cefa038abdef9fe75711fa5cb50116d9c96 1 parent d1afa93
Kevin Moser moserke authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  recipes/install_from_source.rb
2  recipes/install_from_source.rb
View
@@ -52,6 +52,7 @@
bash "compile node.js" do
cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
code <<-EOH
+ PATH="/usr/local/bin:$PATH"
./configure --prefix=#{node['nodejs']['dir']} && \
make
EOH
@@ -59,6 +60,7 @@
end
execute "nodejs make install" do
+ environment({"PATH" => "/usr/local/bin:/usr/bin:/bin:$PATH"})
command "make install"
cwd "/usr/local/src/node-v#{node['nodejs']['version']}"
not_if {File.exists?("#{node['nodejs']['dir']}/bin/node") && `#{node['nodejs']['dir']}/bin/node --version`.chomp == "v#{node['nodejs']['version']}" }
Please sign in to comment.
Something went wrong with that request. Please try again.