Trying to install OpenCPU on CentOS 7 server running WHM & CloudLinux

306 views Asked by At

I'm trying to run OpenCPU on a CentOS 7 dedicated server that is already running WHM and CloudLinux.

The first step was to install dependencies :

yum install rpm-build make wget tar httpd-devel libapreq2-devel R-devel libcurl-devel protobuf-devel openssl-devel libxml2-devel libicu-devel libssh2-devel

One of the requirements of OpenCPU installation is "libapreq2-devel" which depends on "httpd-mmn" :

Error: Package: libapreq2-2.13-13.el7.x86_64 (epel)
           **Requires: httpd-mmn = 20120211x8664**
Error: Package: libapreq2-devel-2.13-13.el7.x86_64 (epel)
           **Requires: httpd-devel >= 2.0.48**

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

After I removed temporarily "httpd*" from the exclude list of yum configuration file (etc/yum.conf) and tried the command above again, I got this new error :

Error: **ea-apache24 conflicts with httpd-2.4.6-90.el7.cloudlinux.x86_64**

Error: Package: libapreq2-devel-2.13-13.el7.x86_64 (epel)
           **Requires: httpd-devel >= 2.0.48**
           Available: httpd-devel-2.4.6-18.el7_0.cloudlinux.x86_64 (cloudlinux-x86_64-server-7)

httpd-devel = 2.4.6-18.el7_0.cloudlinux
           Available: httpd-devel-2.4.6-30.el7.cloudlinux.x86_64 (cloudlinux-x86_64-server-7)

httpd-devel = 2.4.6-30.el7.cloudlinux
           Available: httpd-devel-2.4.6-31.el7.cloudlinux.x86_64 

...

...

(cloudlinux-x86_64-server-7)
               httpd-devel = 2.4.6-90.el7.cloudlinux

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

Before digging deeper, anyone tried to do the same and run OpenCPU alongside WHM installation ? And would that be a reliable solution to run on a production environment?

1

There are 1 answers

4
Jeroen Ooms On

I'm not sure what you did, but maybe you can see how the centos 7 docker image does it:

docker run -it opencpu/centos-7

If you install the opencpu-server precompiled binaries you don't need these -devel packages.