You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-05-25 15:53:40

mendezr23
Member
Registered: 2018-05-25
Posts: 3

run "composer install --no-dev" in the glpi tree

Hello friends
I try to try the version glpi-9.2.3.tar from my local PC, when I enter by browser localhost / glpi / the shows the following error "run "composer install --no-dev" in the glpi tree" Could you help me solve it? what should I do. thank you very much

Offline

#2 2018-05-25 16:01:18

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: run "composer install --no-dev" in the glpi tree

You have a file "composer.lock". You should not have this. If you have a normal production system. (you need this for development)
You can search here in forum or github for more information.

delete composer.lock and run again

more information
https://github.com/glpi-project/glpi/issues/2777

Last edited by KKAdmin (2018-05-25 16:02:03)


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#3 2018-05-25 17:47:59

mendezr23
Member
Registered: 2018-05-25
Posts: 3

Re: run "composer install --no-dev" in the glpi tree

Hello KKadmin

delete the file "composer.lock". and I went back to execute and it shows me the same error, your beam presented that error?

Offline

#4 2018-05-25 22:52:26

KKAdmin
Member
From: Germany
Registered: 2010-03-05
Posts: 959

Re: run "composer install --no-dev" in the glpi tree

Is there another composer file ?


You can mark this threat as [resolved] in subject of your threat. (This is only available edit of the first post.) It is good for users who help others to quickly see which post is still open.
##############################################
GLPI 9.3.3

Offline

#5 2018-06-04 19:00:08

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,273

Re: run "composer install --no-dev" in the glpi tree

You just have to do that the message saying.
In command line => composer install --no-dev


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

#6 2018-06-13 11:59:16

verus
Member
Registered: 2007-06-07
Posts: 60

Re: run "composer install --no-dev" in the glpi tree

I get this:

[root@ocsinventory-ng glpi]# composer install --no-dev
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
Warning: Ambiguous class resolution, "Zend\Cache\PatternPluginManager\PatternPluginManagerV2Polyfill" was found in both "/var/www/html/glpi/vendor/zendframework/zend-cache/src/PatternPluginManager/PatternPluginManagerV2Polyfill.php" and "/var/www/html/glpi/vendor/zendframework/zend-cache/src/PatternPluginManager.php", the first will be used.
> @php -r "file_put_contents('.composer.hash', sha1_file('composer.lock'));"
> patch -d vendor/zendframework/zend-cache/ -p1 < tools/zend-cache-php7.2.patch
The next patch would create the file autoload/patternPluginManagerPolyfill.php,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
The next patch would create the file src/PatternPluginManager/PatternPluginManagerTrait.php,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
patching file src/PatternPluginManager.php
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file src/PatternPluginManager.php.rej
The next patch would create the file src/PatternPluginManager/PatternPluginManagerV3Polyfill.php,
which already exists!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored
Script patch -d vendor/zendframework/zend-cache/ -p1 < tools/zend-cache-php7.2.patch handling the post-install-cmd event returned with error code 1

Offline

#7 2018-06-13 16:42:12

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: run "composer install --no-dev" in the glpi tree

From github, https://github.com/glpi-project/glpi/releases/tag/9.2.3

Don't pull the "Sources", but the glpi-9.2.3 official tarball.


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB