Author Topic: major problems with composer.phar  (Read 5794 times)

Offline emailAdm1n

  • Newbie
  • *
  • Posts: 5
major problems with composer.phar
« on: July 20, 2014, 09:41:10 PM »
got roundcube 1.01 up and running but need some of the plugins functions.
using the web page http://plugins.roundcube.net/ as a base,
i edited the composer.json to read as:
Code: [Select]
{
    "name": "roundcube/roundcubemail",
    "description": "The Roundcube Webmail suite",
    "license": "GPL-3.0+",
    "repositories": [
        {
            "type": "composer",
            "url": "http://plugins.roundcube.net/"
        }
    ],
    "require": {
        "php": ">=5.3.0",
        "roundcube/plugin-installer": ">=0.1.3",
        "johndoh/contextmenu": "dev-master",
        "gms-sa/advanced-search": "dev-stable",
        "roundcube/chbox": "dev-master"
    },
    "minimum-stability": "dev"
}
tried running  php composer.phar install and got:
PHP Warning:  PHP Startup: lzf: Unable to initialize module
Module compiled with module API=20050922
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files



UMM, okay. is there an 'update' option? tried running  php composer.phar update -vvv and got:
PHP Warning:  PHP Startup: lzf: Unable to initialize module
Module compiled with module API=20050922
PHP    compiled with module API=20090626
These options need to match
 in Unknown on line 0
Reading ./composer.json
Loading config file ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Executing command (CWD): hg branch
Executing command (CWD): svn info --xml
Loading composer repositories with package information
Downloading http://plugins.roundcube.net/packages.json
Writing /root/.composer/cache/repo/http---plugins.roundcube.net/packages.json into cache
Downloading https://packagist.org/packages.json
Writing /root/.composer/cache/repo/https---packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-active.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-stale.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/provider-roundcube$plugin-installer.json from cache



  [UnexpectedValueException]
  Invalid version string "1.1-git"



Exception trace:
 () at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Package/Version/VersionParser.php:157
 Composer\Package\Version\VersionParser->normalize() at /usr/share/roundcubemail-1.0.1/vendor/roundcube/plugin-installer/src/Roundcube/Composer/PluginInstaller.php:164
 Roundcube\Composer\PluginInstaller->rcubeVersionCheck() at /usr/share/roundcubemail-1.0.1/vendor/roundcube/plugin-installer/src/Roundcube/Composer/PluginInstaller.php:40
 Roundcube\Composer\PluginInstaller->install() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer/InstallationManager.php:152
 Composer\Installer\InstallationManager->install() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer/InstallationManager.php:139
 Composer\Installer\InstallationManager->execute() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer.php:540
 Composer\Installer->doInstall() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer.php:214
 Composer\Installer->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Command/UpdateCommand.php:128
 Composer\Command\UpdateCommand->execute() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
 Symfony\Component\Console\Command\Command->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:892
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
 Symfony\Component\Console\Application->doRun() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Console/Application.php:117
 Composer\Console\Application->doRun() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
 Symfony\Component\Console\Application->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/bin/composer:43
 require() at /usr/share/roundcubemail-1.0.1/composer.phar:15

So, how do I fix the compiled version problem and how can I get the plugins incorporated? thanks.

Offline emailAdm1n

  • Newbie
  • *
  • Posts: 5
Re: major problems with composer.phar
« Reply #1 on: July 21, 2014, 10:08:44 PM »
updated to rouncube 1.0.2, did pecl and  pear updates. still having problem with composer.phar:
---
 php composer.phar update -vvv
Reading ./composer.json
Loading config file ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Executing command (CWD): hg branch
Executing command (CWD): svn info --xml
Loading composer repositories with package information
Downloading http://plugins.roundcube.net/packages.json
Writing /root/.composer/cache/repo/http---plugins.roundcube.net/packages.json into cache
Downloading https://packagist.org/packages.json
Writing /root/.composer/cache/repo/https---packagist.org/packages.json into cache
Updating dependencies (including require-dev)
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-active.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-archived.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-latest.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/p-provider-stale.json from cache
Reading /root/.composer/cache/repo/https---packagist.org/provider-roundcube$plugin-installer.json from cache



  [UnexpectedValueException]
  Invalid version string "1.1-git"



Exception trace:
 () at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Package/Version/VersionParser.php:157
 Composer\Package\Version\VersionParser->normalize() at /usr/share/roundcubemail-1.0.1/vendor/roundcube/plugin-installer/src/Roundcube/Composer/PluginInstaller.php:164
 Roundcube\Composer\PluginInstaller->rcubeVersionCheck() at /usr/share/roundcubemail-1.0.1/vendor/roundcube/plugin-installer/src/Roundcube/Composer/PluginInstaller.php:40
 Roundcube\Composer\PluginInstaller->install() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer/InstallationManager.php:152
 Composer\Installer\InstallationManager->install() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer/InstallationManager.php:139
 Composer\Installer\InstallationManager->execute() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer.php:541
 Composer\Installer->doInstall() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Installer.php:214
 Composer\Installer->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Command/UpdateCommand.php:128
 Composer\Command\UpdateCommand->execute() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:252
 Symfony\Component\Console\Command\Command->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:887
 Symfony\Component\Console\Application->doRunCommand() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:193
 Symfony\Component\Console\Application->doRun() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Console/Application.php:126
 Composer\Console\Application->doRun() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:124
 Symfony\Component\Console\Application->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/src/Composer/Console/Application.php:83
 Composer\Console\Application->run() at phar:///usr/share/roundcubemail-1.0.1/composer.phar/bin/composer:43
 require() at /usr/share/roundcubemail-1.0.1/composer.phar:15

---