PHP Classes

Issues installing package kchat

Recommend this page to a friend!

      kchat  >  All threads  >  Issues installing package kchat  >  (Un) Subscribe thread alerts  
Subject:Issues installing package kchat
Summary:Complete and proper install using composer not verified.
Messages:5
Author:Brandon Sussman
Date:2018-05-04 12:36:59
 

  1. Issues installing package kchat   Reply   Report abuse  
Picture of Brandon Sussman Brandon Sussman - 2018-05-04 12:36:59
Standard debian 9 system, heavily used for development of many systems including many composer based packages but few from the phpclasses repository, so this might be a phpclasses issue. I don't know.

Following is part of the output from 'composer install'. I do not know if your package is actually whole and correctly installed.

Composer has done the best it can but the resulting "vendor" files are not known to be what you intended. Generally, composer actions should not give results that require thinking.
------------------------------------------------
- Installing phpclasses/kchat (1.0.0): Loading from cache
Failed to execute unzip -qq '/opt/php/kchat/vendor/phpclasses/kchat/91b0aa56f817006afcb605d4cf11c3b3.zip' -d '/opt/php/kchat/vendor/composer/48a4df29'

warning [/opt/php/kchat/vendor/phpclasses/kchat/91b0aa56f817006afcb605d4cf11c3b3.zip]: 6077 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [/opt/php/kchat/vendor/phpclasses/kchat/91b0aa56f817006afcb605d4cf11c3b3.zip]: reported length of central directory is
-6077 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
zipfile?). Compensating...

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
----------------------------------------------------

  2. Re: Issues installing package kchat   Reply   Report abuse  
Picture of Ganesh Kandu Ganesh Kandu - 2018-05-04 15:50:18 - In reply to message 1 from Brandon Sussman
Hi Brandon,

please provide some more detail how are you installing ?

Are you using this command ( composer create-project php-kchat/kchat ) ?


  3. Re: Issues installing package kchat   Reply   Report abuse  
Picture of Brandon Sussman Brandon Sussman - 2018-05-04 19:15:29 - In reply to message 2 from Ganesh Kandu
No - I followed the instructions on https://www.phpclasses.org/package/10705-PHP-Database-driven-PHP-live-chat-system.html#download

verbatim complete console output:

[15:10] ~/junk/kchat/phpclasses |--> rm -rf ./*
[15:10] ~/junk/kchat/phpclasses |--> vi composer.json
[15:11] ~/junk/kchat/phpclasses |--> cat composer.json
{
"require":
{
"phpclasses/kchat": ">=1.0.0"
},
"repositories":
[
{
"type": "composer",
"url": "https:\/\/www.phpclasses.org\/"
}
]
}

[15:11] ~/junk/kchat/phpclasses |--> composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 3 installs, 0 updates, 0 removals
- Installing geoip/geoip (v1.17): Loading from cache
- Installing phpmailer/phpmailer (v5.2.26): Loading from cache
- Installing phpclasses/kchat (1.0.0): Loading from cache
Failed to execute unzip -qq '/home/bos/junk/kchat/phpclasses/vendor/phpclasses/kchat/a182fcd3ce26ade6d648964cc1b4dc72.zip' -d '/home/bos/junk/kchat/phpclasses/vendor/composer/a116bd38'

warning [/home/bos/junk/kchat/phpclasses/vendor/phpclasses/kchat/a182fcd3ce26ade6d648964cc1b4dc72.zip]: 6077 extra bytes at beginning or within zipfile
(attempting to process anyway)
error [/home/bos/junk/kchat/phpclasses/vendor/phpclasses/kchat/a182fcd3ce26ade6d648964cc1b4dc72.zip]: reported length of central directory is
-6077 bytes too long (Atari STZip zipfile? J.H.Holm ZIPSPLIT 1.1
zipfile?). Compensating...

The archive may contain identical file names with different capitalization (which fails on case insensitive filesystems)
Unzip with unzip command failed, falling back to ZipArchive class
phpmailer/phpmailer suggests installing league/oauth2-google (Needed for Google XOAUTH2 authentication)
Writing lock file
Generating autoload files
[15:11] ~/junk/kchat/phpclasses |-->

  4. Re: Issues installing package kchat   Reply   Report abuse  
Picture of Ganesh Kandu Ganesh Kandu - 2018-05-05 05:36:07 - In reply to message 3 from Brandon Sussman
try with this command

composer create-project php-kchat/kchat

  5. Re: Issues installing package kchat   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2021-04-18 09:29:33 - In reply to message 1 from Brandon Sussman
Hello Brandon,

I don't know if this is still relevant for you. There was a bug in the Zip Archive generation for Composer. The bug was fixed now. If you still would like to use Composer to install this package can you please try again now?