i need to install composer in my server
i have this
No package php-cli available.
No package php-zip available.
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Package unzip-6.0-20.el7.x86_64 already installed and latest version
Nothing to do
Related
I installed the package mageplaza/module-smtp. It has the package mageplaza/module-core as requirement. (composer.json)
As I install the package with: composer require mageplaza/module-smtp it just installed that package and ignores the mageplaza/module-core dependency.
So I had to install it manually with: composer require mageplaza/module-core
Why do I need to install dependencies manually?
I Want to install laravel app and I user composer like this to install packages
composer install
And I get this error
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 doctrine/dbal 3.3.5 -> satisfiable by doctrine/dbal[3.3.5].
- doctrine/dbal 3.3.5 requires composer-runtime-api ^2 -> no matching package found.
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
I search any solution on the web without succes.
I'm on ubuntu server 20.04
Thank you
you have to upgrade the composer to version ^2.
run this command before "composer install"
=> composer self-update --2
I'm a Python package developer looking to distribute my to some users. Within these users, some of them are using JupyterLab 2.0, and some are using JupyterLab 3.0.
I'm wondering if it's possible if I can change some settings (or code in setup.py) so that, depending on what version of JupyterLab users have, a different version of my is installed when the user runs pip install <package>.
For example:
User 1 has JupyterLab 2.0 installed. When they run pip install <package>, it installs package version 0.1.1.
User 2 has JupyterLab 3.0 installed. When they run pip install <package>, it installs package version 0.2.1.
Thanks for any information!
In your setup.py, you can just use conditional statements to check the current version like below and set the correct installation version you want to install
import jupyterlab
version = jupyterlab.__version__
if version.startswith("2"):
install_version="0.0.1"
elif version.startswith("3"):
install_version="0.0.2"
Note: Don't forget to use exception handling to check if jupyterlab is at least installed
NOTE: This will not work if its used with pip. This will only work with source distribution and installed using pip install setup.py
I ran composer outdated command:
$ composer outdated
phpdocumentor/type-resolver 0.4.0 0.7.1
but looking inside composer.json, I see no such package. In my case there is no type-resolver.
How do I find an outdated package that is missing in composer.json belongs to and how do I update it?
Composer install not only packages that are listed directly in composer.json but also packages that are dependencies of packages that are listed in composer.json. Assuming you have in composer package vendor/A and this package requires vendor/B you will have installed both A and B packages.
So in your case you can run:
composer update phpdocumentor/type-resolver
to try to update this package.
Of course it does not mean it will be possible to update this way. It's possible that you might need to run:
composer update
but this will update all packages (and depends on scenario this is what you can accept or maybe you don't want to update all packages).
It's also possible that it won't be possible to update this package because other package that is used has phpdocumentor/type-resolver dependency set to for example 0.4.* so 0.7 version is not compatible with this package and version 0.7 won't be installed
I have trouble on setting PDO on AWS Server. Like this :
[root#ip-172-31-31-52 /]# sudo yum install php-pdo
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main | 2.1 kB 00:00
amzn-updates | 2.5 kB 00:00
Resolving Dependencies
--> Running transaction check
---> Package php-pdo.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Dependency: php-common(x86-64) = 5.3.29-1.8.amzn1 for package: php-pdo-5.3.29-1.8.amzn1.x86_64
--> Running transaction check
---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed
--> Processing Conflict: php70-common-7.0.33-1.32.amzn1.x86_64 conflicts php-common < 5.5.22-1.98
--> Finished Dependency Resolution
Error: php70-common conflicts with php-common-5.3.29-1.8.amzn1.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
How to solve this. I need PDO settings. Please help me
Step 1:
Take snapshot of your server
Step 2:
Check your php version and install the php packages corresponding to php version.
Additional info:
Laravel 5.4 requires PHP >= 5.6.4
Make sure you install php 5.6.4 or greater.
Specifically call out the exact package for php version.
Example:
For PHP 5.6 support, the package is php56-mysqlnd.
For PHP 7.0 support, the package is php70-mysqlnd.
For PHP 7.1 support, the package is php71-mysqlnd.
These package will install pdo support.
Advice, Install latest stable version of php and laravel.
Happy coding!