fixed curl cookbook
This commit is contained in:
parent
bb5d5fc2c0
commit
936b997dff
1 changed files with 11 additions and 2 deletions
|
|
@ -1,9 +1,18 @@
|
||||||
execute "download curl into usr/local" do
|
execute "download curl into usr/local" do
|
||||||
command "mkdir -p /usr/local && wget http://curl.haxx.se/download/curl-7.19.7.tar.gz"
|
command "mkdir -p /usr/local && cd /usr/local/ && wget http://curl.haxx.se/download/curl-7.19.7.tar.gz"
|
||||||
end
|
end
|
||||||
|
|
||||||
execute "configure, make, and install curl" do
|
execute "configure, make, and install curl" do
|
||||||
command "cd /usr/local/curl-7.19.7 && tar -xvzf curl-7.19.7.tar.gz && ./configure && make && make install"
|
command "tar -xvzf curl-7.19.7.tar.gz && cd /usr/local/curl-7.19.7 && ./configure && make && make install"
|
||||||
|
end
|
||||||
|
|
||||||
|
execute 'update dynamic loader cache for curl' do
|
||||||
|
command "echo '/usr/local/lib' >> /etc/ld.so.conf"
|
||||||
|
not_if "grep /usr/local/lib /etc/ld.so.conf"
|
||||||
|
end
|
||||||
|
|
||||||
|
execute 'run dynamic linker' do
|
||||||
|
command '/sbin/ldconfig'
|
||||||
end
|
end
|
||||||
|
|
||||||
execute 'add bundler line' do
|
execute 'add bundler line' do
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue