Skip to content

Error while creating project #338

Closed
Closed
@zaxx81

Description

@zaxx81

Ubuntu 16.04
I fell like getting this to work is so much more trouble, then just installing Drupal. The guide/documentation seems to be missing several steps, or somethings are assumed (yet not stated) about your server build, and I'm not even talking about permissions (which was a Google adventure).

My issue, while trying to create the project:

  • Installed composer and configured globally mv composer.phar /usr/local/bin/composer

  • ran myuser:/var/www/html$ composer create-project drupal-composer/drupal-project:8.x-dev /var/www/html/mysite/ --stability dev --no-interaction

  • received errors for php unable to unzip/zip, so ran apt-get install php-xml

  • rm all the files in mysite folder and ran the create-project again.

  • now received errors below:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/console 1.0.2 requires alchemy/zippy 0.4.3 -> satisfiable by alchemy/zippy[0.4.3].
    - drupal/console 1.1.0 requires alchemy/zippy 0.4.3 -> satisfiable by alchemy/zippy[0.4.3].
    - drupal/console 1.1.1 requires alchemy/zippy 0.4.3 -> satisfiable by alchemy/zippy[0.4.3].
    - drupal/console 1.2.0 requires alchemy/zippy 0.4.3 -> satisfiable by alchemy/zippy[0.4.3].
    - drupal/console 1.3.0 requires alchemy/zippy 0.4.3 -> satisfiable by alchemy/zippy[0.4.3].
    - drupal/console 1.3.1 requires alchemy/zippy 0.4.3 -> satisfiable by alchemy/zippy[0.4.3].
    - alchemy/zippy 0.4.3 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.
    - Installation request for drupal/console ^1.0.2 -> satisfiable by drupal/console[1.0.2, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.3.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/php/7.0/cli/php.ini
    - /etc/php/7.0/cli/conf.d/10-mysqlnd.ini
    - /etc/php/7.0/cli/conf.d/10-opcache.ini
    - /etc/php/7.0/cli/conf.d/10-pdo.ini
    - /etc/php/7.0/cli/conf.d/15-xml.ini
    - /etc/php/7.0/cli/conf.d/20-calendar.ini
    - /etc/php/7.0/cli/conf.d/20-ctype.ini
    - /etc/php/7.0/cli/conf.d/20-dom.ini
    - /etc/php/7.0/cli/conf.d/20-exif.ini
    - /etc/php/7.0/cli/conf.d/20-fileinfo.ini
    - /etc/php/7.0/cli/conf.d/20-ftp.ini
    - /etc/php/7.0/cli/conf.d/20-gettext.ini
    - /etc/php/7.0/cli/conf.d/20-iconv.ini
    - /etc/php/7.0/cli/conf.d/20-json.ini
    - /etc/php/7.0/cli/conf.d/20-mysqli.ini
    - /etc/php/7.0/cli/conf.d/20-pdo_mysql.ini
    - /etc/php/7.0/cli/conf.d/20-phar.ini
    - /etc/php/7.0/cli/conf.d/20-posix.ini
    - /etc/php/7.0/cli/conf.d/20-readline.ini
    - /etc/php/7.0/cli/conf.d/20-shmop.ini
    - /etc/php/7.0/cli/conf.d/20-simplexml.ini
    - /etc/php/7.0/cli/conf.d/20-sockets.ini
    - /etc/php/7.0/cli/conf.d/20-sysvmsg.ini
    - /etc/php/7.0/cli/conf.d/20-sysvsem.ini
    - /etc/php/7.0/cli/conf.d/20-sysvshm.ini
    - /etc/php/7.0/cli/conf.d/20-tokenizer.ini
    - /etc/php/7.0/cli/conf.d/20-wddx.ini
    - /etc/php/7.0/cli/conf.d/20-xmlreader.ini
    - /etc/php/7.0/cli/conf.d/20-xmlwriter.ini
    - /etc/php/7.0/cli/conf.d/20-xsl.ini
    - /etc/php/7.0/cli/conf.d/20-zip.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
  • ran composer require alchemy/zippy
  • received errors below
Using version ^0.4.8 for alchemy/zippy
./composer.json has been updated
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information
Updating dependencies (including require-dev)

mmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 729817088) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

Fatal error: Out of memory (allocated 729817088) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
myuser:/var/www/html/mysite$ mmap() failed: [12] Cannot allocate memory
-bash: syntax error near unexpected token `failed:'
myuser:/var/www/html/mysite$ composer require alchemy/zippymmap() failed: [12] Cannot allocate memory

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 729817088) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52

Fatal error: Out of memory (allocated 729817088) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
-bash: syntax error near unexpected token `('
myuser:/var/www/html/mysite$
myuser:/var/www/html/mysite$ mmap() failed: [12] Cannot allocate memory
-bash: syntax error near unexpected token `failed:'
myuser:/var/www/html/mysite$ PHP Fatal error:  Out of memory (allocated 729817088) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
-bash: syntax error near unexpected token `('
myuser:/var/www/html/mysite$
myuser:/var/www/html/mysite$ Fatal error: Out of memory (allocated 729817088) (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52
-bash: syntax error near unexpected token `('
myuser:/var/www/html/mysite$ myuser:/var/www/html/mysite$ mmap() failed: [12] Cannot allocate memory
-bash: syntax error near unexpected token `('

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions