I'm facing the following error while I'm trying to submit my extension. Can anyone please help me out with this.
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for radware-shieldsquare/connector 5.1.0 -> satisfiable by radware-shieldsquare/connector[5.1.0].
- radware-shieldsquare/connector 5.1.0 requires ext-http * -> the requested PHP extension http is missing from your system.
To enable extensions, verify that they are enabled in your .ini files:
- /etc/php.ini
- /etc/php.d/10-opcache.ini
- /etc/php.d/20-bcmath.ini
- /etc/php.d/20-bz2.ini
- /etc/php.d/20-calendar.ini
- /etc/php.d/20-ctype.ini
- /etc/php.d/20-curl.ini
- /etc/php.d/20-dom.ini
- /etc/php.d/20-exif.ini
- /etc/php.d/20-fileinfo.ini
- /etc/php.d/20-ftp.ini
- /etc/php.d/20-gd.ini
- /etc/php.d/20-gettext.ini
- /etc/php.d/20-iconv.ini
- /etc/php.d/20-intl.ini
- /etc/php.d/20-json.ini
- /etc/php.d/20-mbstring.ini
- /etc/php.d/20-mysqlnd.ini
- /etc/php.d/20-pdo.ini
- /etc/php.d/20-phar.ini
- /etc/php.d/20-posix.ini
- /etc/php.d/20-shmop.ini
- /etc/php.d/20-simplexml.ini
- /etc/php.d/20-soap.ini
- /etc/php.d/20-sockets.ini
- /etc/php.d/20-sodium.ini
- /etc/php.d/20-sqlite3.ini
- /etc/php.d/20-sysvmsg.ini
- /etc/php.d/20-sysvsem.ini
- /etc/php.d/20-sysvshm.ini
- /etc/php.d/20-tokenizer.ini
- /etc/php.d/20-xml.ini
- /etc/php.d/20-xmlwriter.ini
- /etc/php.d/20-xsl.ini
- /etc/php.d/30-mysqli.ini
- /etc/php.d/30-pdo_mysql.ini
- /etc/php.d/30-pdo_sqlite.ini
- /etc/php.d/30-wddx.ini
- /etc/php.d/30-xmlreader.ini
- /etc/php.d/40-zip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, reverting ./composer.json to its original content.
Hii,
-> Check the composer.json file of your extension, make sure correct dependencies mentioned in require section.
Example :
{
"name": "vendor/modulename",
"description": "Vendor Module Name",
"require": {
"php": ">=5.5.9"
},
"type": "magento2-module",
"version": "1.0.0",
"license": [
"EULA"
],
"autoload": {
"files": [ "registration.php" ],
"psr-4": {
"Vendor\\ModuleName\\": ""
}
}
}Check the Require section and the dependencies declared there.
-> Try to run the command using the magento composer and with sudo Or simply with sudo :
sudo vendor/composer/composer/bin/composer require vendor/module-name
Or
sudo composer require vendor/module-name
Click on 'Kudos' & Accept as Solution to encourage to write more answers !
Thankyou