I am attempting the CentOS 7 (Nginx) install of LibreNMS. This is the first time I have worked with LibreNMS. I successfully installed CentOS 7 minimal and updated it. I then added the epel and webstatic repositories as directed. I am able to install all the remaining required packages with yum except for composer, which generates the following error.
Error: php71w-common conflicts with php-common-5.4.16-42.el7.x86_64
Should I find composer in a different repository, or install it directly from the composer web site?
That’s nothing to do with composer. You’ve got php54 installed and are trying to install 71. You’ll need to remove 54 first then try and install all the required 71 modules.
There are only php 71 packages. It appears to me that composer is indicating that it requires php54 packages. That is why I asked whether I should get composer from an alternate source. Would there be a problem with installing it from the composer web site?
I have tried to dig into and make some progress. Composer has a lot of dependencies, so I started installing those separately until I was left with a few that require php-common-54. Since I have php71 installed, those dependencies cannot be met. Here is the latest output from my attempt to install composer. I’m not sure what to do at this point. I haven’t even gotten to the step where I install librenms.
[root@librenms dave]# yum install composer
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: repos.mia.quadranet.com
* epel: mirror.nodesdirect.com
* extras: mirrors.usinternet.com
* updates: bay.uchicago.edu
* webtatic: us-east.repo.webtatic.com
Resolving Dependencies
--> Running transaction check
---> Package composer.noarch 0:1.5.2-1.el7 will be installed
--> Processing Dependency: php-composer(symfony/process) < 4 for package: composer-1.5.2-1.el7.noarch
--> Processing Dependency: php-composer(symfony/filesystem) < 4 for package: composer-1.5.2-1.el7.noarch
--> Processing Dependency: php-composer(symfony/console) < 4 for package: composer-1.5.2-1.el7.noarch
--> Processing Dependency: php-composer(symfony/process) >= 2.7 for package: composer-1.5.2-1.el7.noarch
--> Processing Dependency: php-composer(symfony/filesystem) >= 2.7 for package: composer-1.5.2-1.el7.noarch
--> Processing Dependency: php-composer(symfony/console) >= 2.7 for package: composer-1.5.2-1.el7.noarch
--> Running transaction check
---> Package php-symfony-console.noarch 0:2.8.12-2.el7 will be installed
--> Processing Dependency: php-composer(symfony/event-dispatcher) = 2.8.12 for package: php-symfony-console-2.8.12-2.el7.noarch
--> Processing Dependency: php-posix for package: php-symfony-console-2.8.12-2.el7.noarch
---> Package php-symfony-filesystem.noarch 0:2.8.12-2.el7 will be installed
---> Package php-symfony-process.noarch 0:2.8.12-2.el7 will be installed
--> Running transaction check
---> Package php-process.x86_64 0:5.4.16-42.el7 will be installed
--> Processing Dependency: php-common(x86-64) = 5.4.16-42.el7 for package: php-process-5.4.16-42.el7.x86_64
---> Package php-symfony-event-dispatcher.noarch 0:2.8.12-2.el7 will be installed
--> Processing Dependency: php-composer(symfony/http-kernel) = 2.8.12 for package: php-symfony-event-dispatcher-2.8.12-2.el7.noarch
--> Processing Dependency: php-composer(symfony/dependency-injection) = 2.8.12 for package: php-symfony-event-dispatcher-2.8.12-2.el7.noarch
--> Running transaction check
---> Package php-common.x86_64 0:5.4.16-42.el7 will be installed
---> Package php-symfony-dependency-injection.noarch 0:2.8.12-2.el7 will be installed
--> Processing Dependency: php-composer(symfony/config) = 2.8.12 for package: php-symfony-dependency-injection-2.8.12-2.el7.noarch
---> Package php-symfony-http-kernel.noarch 0:2.8.12-2.el7 will be installed
--> Processing Dependency: php-composer(symfony/var-dumper) = 2.8.12 for package: php-symfony-http-kernel-2.8.12-2.el7.noarch
--> Processing Dependency: php-composer(symfony/browser-kit) = 2.8.12 for package: php-symfony-http-kernel-2.8.12-2.el7.noarch
--> Running transaction check
---> Package php-symfony-browser-kit.noarch 0:2.8.12-2.el7 will be installed
---> Package php-symfony-config.noarch 0:2.8.12-2.el7 will be installed
---> Package php-symfony-var-dumper.noarch 0:2.8.12-2.el7 will be installed
--> Processing Conflict: php71w-common-7.1.9-2.w7.x86_64 conflicts php-common < 7.1
--> Finished Dependency Resolution
Error: php71w-common conflicts with php-common-5.4.16-42.el7.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
That context would have helped originally. Don’t install composer by yum install. getcomposer.org has a trivial install process and doesn’t require dependancies likes that.
Thank you for the information. Since I wasn’t sure how to proceed with installing composer, I decided to perform an install on Ubuntu instead, which succeeded.