Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the error of relying on Times for composer installation

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the solution to the error of relying on the Times for composer installation. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

Catalogue

Killed appears in composer during 0x01 installation, which is terminated

0x02 appears "Your requirements could not be resolved to an installable set of packages."

The following two problems often occur when installing composer.json using the following command.

Killed appears in composer during composer install0x01 installation, which is terminated

The situation may look like this.

This situation is caused by insufficient caching, which can be solved by adding caches in Linux.

Free-mmkdir-p / var/_swap_cd / var/_swap_dd if=/dev/zero of=swapfile bs=1M count=2000mkswap swapfileswapon swapfileecho "/ var/_swap_/swapfile none swap sw 00" > > / etc/fstabfree-m0x02 composer appears "Your requirements could not be resolved to an installable set of packages."

This kind of error reporting is usually like this.

Although it appears "Your requirements could not be resolved to an installable set of packages.", "You can also run php-- ini inside terminal to see which files are used by PHP in CLI mode." These two tips, but this is not the focus of our attention.

What we need to focus on is what the intermediate Problem prompts.

For example, the following situation

In this case, we only need to install the gd corresponding to php to solve this error.

I'll use Ubuntu as an example to illustrate that if you install php7.0, even if you install it with the following command

Apt-get install php7.0

At this time, you need to run the following command to install it, and you can solve this problem.

Apt-get install php7.0-gd

The following example is the same solution.

Apt-get install php7.0-mbstring

If php7.2 is installed, you can change the version here.

Apt-get install php7.2-mbstring on the installation of composer depends on the Times wrong solution to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report