I can,t install composer require simplesoftwareio/simple-qrcode package
when i try to install simple-qrcode packege I get this errors,
Related
I tried to install Laravel with Composer on my Debian 9 terminal with
composer global require laravel/installer
But I get the following errors:
Using version ^3.0 for laravel/installer
./composer.json has been created
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
- laravel/installer v3.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- laravel/installer v3.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
- Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].
To enable extensions, verify that they are enabled in your .ini files:
- /opt/lampp/etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, deleting ./composer.json.
I tried to install the PHP ext Zip extension with:
apt-get install php7.4-zip
and
apt-get install php-zip
and also edit the php.ini file uncommenting the following lines:
extension=php_zip.dll
extension="zip.so"
But nothing works and I have the same errors...
Make sure to restart the webserver after the change
php -m to list the compiled modules
it happened to me once (on plesk) that composer was using a different php version than to use php itself
You could try php composer.phar(the location of that) and check the results
If Installing laravel is what matters here
here are some possible solutions
composer create-project laravel/laravel [dir]
or git clone https://github.com/laravel/laravel.git then cd to that directory, usually laravel, so cd laravel then composer install
I had the same problem as you.
I could see that I was lacking the zip extension by doing
php -m
I did
apt search php | grep zip
to see if there was a package I could install, I found php-zip, so I did
sudo apt install php-zip
after which php -m showed zip in the list.
Then I tried the command to install Laravel again
composer global require laravel/installer
and it succeeded.
I want to install a package with the composer. I input the next command:
composer global require package-name
installed a package with package-name from packagist.org, but I want to install a local package with the same name.
Please, prompt me, how I can explain the composer, that it must install a local package?
In Ubuntu 18.04, I have php installed. I confirmed it work with index.php testing. I now try to install composer
composer install
But below error was shown:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for symfony/routing v4.1.6 -> satisfiable by symfony/routing[v4.1.6].
- don't install symfony/symfony v3.4.17|don't install symfony/routing v4.1.6
- Installation request for symfony/symfony v3.4.17 -> satisfiable by symfony/symfony[v3.4.17].
I have previously install Symfony as a package by
sudo apt install php-symfony
php-symfony is already the newest version (3.4.6+dfsg-1ubuntu0.1).
Do I uninstall symfony and replace it with symfony/routing v4.1.6?
I googled for a long time but I cannot find relevant instructions. Symfony documentation appears to only show instruction on using composer to install Symfony. But I now have trouble to install composer. Please help, thanks!
The symfony/symfony package already includes the Routing component (which you try to install with the symfony/routing package). This is something Composer wrongly allowed in older versions and was fixed in Composer 1.7.3.
Do you really need the Routing component in version 4? If that's the case, you need to remove symfony/symfony first and require all the needed components explicitly if you cannot upgrade all Symfony packages to 4.1.
If you want to install a new Symfony project, I recommend not using the packaged php-symfony and instead use composer to create a new project from scratch. I don't know much about the package, but as you can tell from the version it is outdated (v3.4.18 is the current version). Relying on an outdated package is not recommended. Instead use the recommended way to set up a new project:
composer create-project symfony/skeleton my-project
If you want a full stack application you can also use symfony/website-skeleton as the basis for the project. If you want to stick to the old 3.4 version you can add the constraint to the command:
composer create-project symfony/skeleton:"^3.4"
See also https://symfony.com/doc/current/setup.html
I want to force to composer to download all packages before to install it and to speedup the dependencies installation on projects.
On production environment, I don't want to wait to packages download, it must be installed from cache.
Something like:
$> composer download-install # Currently not exists
$> composer install # Install from previously cached packages.
There are any composer option to do it?
Thanks!
There's a composer package that does exactly that!
Require it globally like this:
$ composer global require hirak/prestissimo
Then just a regular composer install will prefetch all the packages first and then install them as if they're from cache.
$ composer install
Read more at https://github.com/hirak/prestissimo
I am trying to install phpdocumentor using composer by doing composer require phpdocumentor/phpdocumentor in a laravel 5.3 project for generating documentation. I am using a linux machine with ubuntu16.04 and my php version is 7.0. I am getting the following error
- Can only install one of: symfony/translation[v2.5.5, v3.1.10].
- Can only install one of: symfony/translation[v2.5.6, v3.1.10].
- Can only install one of: symfony/translation[v2.5.7, v3.1.10].
- Can only install one of: symfony/translation[v2.5.8, v3.1.10].
- Can only install one of: symfony/translation[v2.5.9, v3.1.10].
Installation request for symfony/translation (locked at v3.1.10) -> satisfiable by symfony/translation[v3.1.10].
Installation failed, reverting ./composer.json to its original content.
Problem is that laravel requires symfony/translation version upwards of 3.1 i.e. ^3.1.* but phpdocumentor/phpdocumentor supports symfony/translation only until 2.8.9.
So what can I do if I want to install phpdocumentor along-with laravel5.3?
Try this
sudo apt-get install php5-xsl
sudo /etc/init.d/apache restart
worked for me on Linux ubuntu 16.04 to intall XSL.
I guess there is no way to install phpdocumentor alongwith laravel using composer. I tried installing php7.0-xsl and tried doing a number of hacks like deleting the composer.lock file and then doing composer install etc to no avail. I could finally get it to work using pear. Precisely doing
sudo pear channel-discover pear.phpdoc.org
sudo pear install phpdoc/phpDocumentor
For more info refer here