It seems like version comparing script does not like the Unix part. Are there any solutions to this problems apart from downgrading?
That's not what's actually happening. yum
is complaining about the RPM dependencies:
Processing Dependency: httpd >= 2.2 for package: mod-pagespeed-beta-1.3.25.3-2556.x86_64
For some reason, it doesn't think that you have a modern Apache version installed. How did you install Apache 2.4? If you are using Redhat Enterprise Linux or a derivative (CentOS, Scientific Linux, etc), this is a very important question because 2.4 isn't available for the RHEL family in any official way. They ship with 2.2. You'd need to install 2.4 from a third-party RPM repository, or you'd need to compile it yourself.
Given that RPM naming is dead simple, I'm going to wager that you compiled it yourself. Compiling the package and directly installing it (without creating an RPM from the compiled binaries and installing that) will not satisfy the requirement given by the RPM.
Even if it did satisfy the requirement, your own native compiled Apache probably won't safely or sanely load the precompiled binaries from wherever you picked up that mod_pagespeed RPM.
If you compiled Apache 2.4 yourself, you're going to need to compile mod_pagespeed yourself.