Problems about rpm while installing http2 to apache

Issues related to applications and software problems
Post Reply
Recolic
Posts: 2
Joined: 2017/03/09 05:33:22

Problems about rpm while installing http2 to apache

Post by Recolic » 2017/03/09 06:16:55

uname -a:

Code: Select all

Linux VM_28_96_centos 3.10.0-327.36.3.el7.x86_64 #1 SMP Mon Oct 24 16:09:20 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
To install http2 to apache, I need to re-compile it or install apache-mod_http2-2.4.25-2.mga6.x86_64.rpm. Obviously the latter seems easier.

I just downloaded apache-2.4.25-2.mga6.x86_64.rpm and run 'rpm -ivh ...rpm'. As we know, it wouldn't work without its dependencies installed. Apache from yum repo is already out of date, which is impossible to support mod_http2. I think these methods below may help but all of them failed:

Firstly, I tried to let RPM install all its dependencies automatically. (I think this is the easiest solution. ) I tried lots of guides but all of them doesn't work at all. (Example: http://stackoverflow.com/questions/1387 ... pendencies) I've also tried to add a rpmfusion mirror to my yum repo. Are there any efficient solution? Thanks very much!

Besides, I do tried to recompile apache with --enable-http2. After compiling apache (and its dependencies) successfully, mod_http2 can't be loaded. systemctl status httpd.service indicates 'modules/mod_http2.so: Undefined reference: ......(I can't remember it clearly.)'. I have no confidence that I can solve it because little infomation are found from google. Maybe RPM is the only possible way for me.

All of these operation above are performed on a pure, newly-installed Centos 7.2. Re-installing OS is convenient on cloud.

Are there any reliable way to let RPM automatically solve/install its dependencies? I've been troubled by it for several days.

Thanks a lot for your help!

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problems about rpm while installing http2 to apache

Post by TrevorH » 2017/03/09 07:22:16

You will need to wait for 7.4 before http2 will work on CentOS. The version of openssl is too old to support it and changing that will break lots of stuff so you cannot do it, don't try. You also should not be using 7.2 at all - it's had no updates since 7.3 came out 3 months ago and now has several high severity security vulnerabilities.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Recolic
Posts: 2
Joined: 2017/03/09 05:33:22

Re: Problems about rpm while installing http2 to apache

Post by Recolic » 2017/03/09 09:17:33

TrevorH wrote:You will need to wait for 7.4 before http2 will work on CentOS. The version of openssl is too old to support it and changing that will break lots of stuff so you cannot do it, don't try. You also should not be using 7.2 at all - it's had no updates since 7.3 came out 3 months ago and now has several high severity security vulnerabilities.
Thanks for your help,
But, are there any other Linux distribution that supports http2? I'm really interested to it...

markhu
Posts: 2
Joined: 2017/03/24 17:08:38

Re: Problems about rpm while installing http2 to apache

Post by markhu » 2017/03/24 17:22:11

Trevor, by "7.4" did you mean CentOS 7.4 ?
How does that map the "7 (1611)" seen at the download site? https://wiki.centos.org/Download

User avatar
TrevorH
Site Admin
Posts: 33215
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Problems about rpm while installing http2 to apache

Post by TrevorH » 2017/03/24 18:48:46

Yes, 7.4, as in the unreleased and not yet even in beta next point release of RHEL/CentOS.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply