735

How do I install these PHP extensions on Ubuntu?

    <li>Ubuntu 16.04.</li> <li>nginx version: nginx/1.10.0 (Ubuntu)</li> <li>PHP 7.0.8-0ubuntu0.16.04.3</li> </ul>

    When I run composer install -v in Magento 2 directory I get this:

    Loading composer repositories with package information Installing dependencies (including require-dev) from lock file Dependency resolution completed in 0.000 seconds Your requirements could not be resolved to an installable set of packages. Problem 1 - The requested PHP extension ext-gd * is missing from your system. Install or enable PHP's gd extension. Problem 2 - The requested PHP extension ext-dom * is missing from your system. Install or enable PHP's dom extension. Problem 3 - The requested PHP extension ext-simplexml * is missing from your system. Install or enable PHP's simplexml extension. Problem 4 - The requested PHP extension ext-mcrypt * is missing from your system. Install or enable PHP's mcrypt extension. Problem 5 - The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension. Problem 6 - The requested PHP extension ext-intl * is missing from your system. Install or enable PHP's intl extension. Problem 7 - The requested PHP extension ext-xsl * is missing from your system. Install or enable PHP's xsl extension. Problem 8 - The requested PHP extension ext-mbstring * is missing from your system. Install or enable PHP's mbstring extension. Problem 9 - The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension. Problem 10 - Installation request for braintree/braintree_php 3.7.0 -> satisfiable by braintree/braintree_php[3.7.0]. - braintree/braintree_php 3.7.0 requires ext-curl * -> the requested PHP extension curl is missing from your system. Problem 11 - Installation request for pelago/emogrifier v0.1.1 -> satisfiable by pelago/emogrifier[v0.1.1]. - pelago/emogrifier v0.1.1 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system. Problem 12 - Installation request for phpunit/phpunit 4.1.0 -> satisfiable by phpunit/phpunit[4.1.0]. - phpunit/phpunit 4.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 13 - Installation request for theseer/fdomdocument 1.6.1 -> satisfiable by theseer/fdomdocument[1.6.1]. - theseer/fdomdocument 1.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. Problem 14 - theseer/fdomdocument 1.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - sebastian/phpcpd 2.0.0 requires theseer/fdomdocument ~1.4 -> satisfiable by theseer/fdomdocument[1.6.1]. - Installation request for sebastian/phpcpd 2.0.0 -> satisfiable by sebastian/phpcpd[2.0.0].

    How do I install these extensions? I have LEMP stack installed.

    Answer1:

    You can most probably use your package manager to do this. For the gd extension specifically you can run

    sudo apt-get update && sudo apt-get install php7.0-gd

    And there is probably a similar package for the rest of the extensions available. with apt-cache search you can search for packages for example: apt-cache search php7.0 will find you all packages related to php7.0

Recommend

  • python - Nose not discovering package level tests in Django
  • BackPropagation Neuron Network Approach - Design
  • Swift 4 Alamofire multipart upload not working
  • Parse HTML file using Python without external module
  • mySQL Trigger works after console insert, but not after script insert
  • GAE instance is serving on different url
  • Visual Studio Extensions and Visual Studio 11 Dev. Preview
  • onOpen trigger not being activated on Google Form
  • Could not find installable ISAM when importing Access table to Excel
  • Get both date and time in milliseconds
  • A limitation of Sqlite3's full text search doesn't allow ORs with MATCHes. Workaround?
  • How do I install these PHP extensions on Ubuntu?
  • Installing SSL cert on Amazon EC2 ELB
  • Display Current Video in Windows Phone 8 using AudioVideoCaptureDevice?
  • Hatch area using pcolormesh in Basemap
  • How can I obtain stationary distribution of a Markov Chain given a transition probability matrix
  • How to capture enclosing scope in Runnable
  • Google Player Game Service Error: Can't build the sample game
  • Subversion reverting resolved file
  • How to replace TouchesBegan with UIGestureRecognizer
  • composer dependency stating in doesn't have php-xsl
  • Asynchronous Sockets - Handling false socket.AcceptAsync values
  • Find longest path less than or equal to given value of an acyclic, directed graph in Python
  • Wrapping text in spinner android
  • Upload file that is in the cpan database
  • pillow imaging ImportError
  • Problems installing Yesod for Haskell
  • error importing numpy
  • Sort List of Strings By Version
  • Cross-Platform Protobuf Serialization
  • Join two tables and save into third-sql
  • How to model a transition system with SPIN
  • ORA-29908: missing primary invocation for ancillary operator
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • How to set the response of a form post action to a iframe source?
  • Change div Background jquery
  • Qt: Run a script BEFORE make
  • reshape alternating columns in less time and using less memory
  • Converting MP3 duration time
  • java string with new operator and a literal