Permalink
Browse files

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

…ake, & uname
  • Loading branch information...
1 parent d1afa93 commit dca58cefa038abdef9fe75711fa5cb50116d9c96 @moserke moserke committed Nov 29, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 recipes/install_from_source.rb
View
2 recipes/install_from_source.rb
@@ -52,13 +52,15 @@
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
creates "/usr/local/src/node-v#{node['nodejs']['version']}/node"
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']}" }

0 comments on commit dca58ce

Please sign in to comment.