Skip to content

Commit

Permalink
curl-devel on RHEL 4 has broken dependencies, so work around this. Is…
Browse files Browse the repository at this point in the history
…sue #554.
  • Loading branch information
FooBarWidget committed Jan 2, 2011
1 parent 1ddd48c commit 2f444ea
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/phusion_passenger/dependencies.rb
Expand Up @@ -492,7 +492,17 @@ def self.asciidoc_required?
"<b>apt-get install libcurl4-openssl-dev</b> " +
"or <b>libcurl4-gnutls-dev</b>, whichever you prefer."
elsif tags.include?(:redhat)
dep.install_command = "yum install curl-devel"
begin
release = File.read("/etc/redhat-release")
rescue
release = nil
end
if release =~ /release 4/
# http://code.google.com/p/phusion-passenger/issues/detail?id=554
dep.install_command = "yum install zlib-devel e2fsprogs-devel krb5-devel libidn-devel"
else
dep.install_command = "yum install curl-devel"
end
end
end
end
Expand Down

0 comments on commit 2f444ea

Please sign in to comment.