I have an error while installing laravel on CentOS Linux. When I trying to run this command
composer create-project laravel/laravel --prefer-dist
I have already install composer.
Compiling common classes
PHP Fatal error: Cannot redeclare class Psr\Log\LoggerInterface in /home/abc/public_html/xyz/laravel/vendor/compiled.php on line 12297
PHP Stack trace:
PHP 1. {main}() /home/abc/public_html/xyz/laravel/artisan:0
PHP 2. require() /home/abc/public_html/xyz/laravel/artisan:16
PHP 3. require() /home/abc/public_html/xyz/laravel/bootstrap/autoload.php:34
Script php artisan key:generate handling the post-create-project-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Cannot redeclare class Psr\Log\LoggerInterface in /home/abc/public_html/xyz/laravel/vendor/compiled.php on line 12297
PHP Stack trace:
PHP 1. {main}() /home/abc/public_html/xyz/laravel/artisan:0
PHP 2. require() /home/abc/public_html/xyz/laravel/artisan:16
PHP 3. require() /home/abc/public_html/xyz/laravel/bootstrap/autoload.php:34