Home > Article > PHP Framework > After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.
❝I searched countless information on how to install laravel-queue-rabbitmq using laravel. The articles that came out were all the same, but they just couldn’t be installed. After several hours, I finally It’s done, this tutorial is for you who are installing it.
❞
How invincible the mistake happened.
The executed command is
composer require vladimir-yuldashev/laravel-queue-rabbitmqThen I started searching for information non-stop. I searched and searched, but one song was missing. , two songs are gone, three songs are gone, and the answers found are basically the same, which is to use the command above.
Is there someone else to report an error? So I saw this answer in a reply
So I opened the github address and took a look. These numbers came into view directly! But at the time I just pretended I didn’t see it, what the hell was this. I didn’t understand the meaning of this picture until I solved the problem
The first column of this picture is the package version, if nothing unexpected happens, use it directlycomposer require vladimir-yuldashev/laravel-queue- The installed version of rabbitmq
is 10, which means your laravel version needs to be 6 or 7.
Because the PHP version required by laravel6 and 7 is too high, it is not used.
If you find the problem, try installing the corresponding version! composer require vladimir-yuldashev/laravel-queue-rabbitmq:7.2
But it’s still not satisfactory, what the hell is this?Don’t panic when you encounter this problem, that is, it prompts "Prompt memory Insufficient", we can solve this problem by creating a swap partition.
Execute the following three instructions
dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 mkswap /var/swap.1 swapon /var/swap.1
Then execute composer require vladimir-yuldashev/laravel-queue-rabbitmq:7.2
It’s perfect, very Yes, this is how a problem is solved.
#In fact, this problem is probably not a problem for the big guys, but it is indeed a bit difficult for novices. .
This problem is ultimately due to the lack of familiarity with the installation package and the lack of understanding of the differences in versions when laravel is installed.
No matter it is laravle, if you encounter this kind of problem in the future, you need to check the documentation in detail to see if the version is incompatible.
The above is the detailed content of After reading this article, there is absolutely no problem installing laravel-queue-rabbitmq.. For more information, please follow other related articles on the PHP Chinese website!