用composer安装laravel不成功

用composer安装laravel不成功

/usr/local/bin/composer global require laravel/installer -vvv

Changed current directory to /root/.config/composer

Reading ./composer.json

Loading config file /root/.config/composer/config.json

Loading config file /root/.config/composer/auth.json

Loading config file ./composer.json

Loading config file /root/.config/composer/auth.json

Reading /root/.config/composer/auth.json

Checked CA file /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem: valid

Executing command (/root/.config/composer): git branch --no-color --no-abbrev -v

Executing command (/root/.config/composer): git describe --exact-match --tags

Executing command (/root/.config/composer): git log --pretty="%H" -n1 HEAD

Executing command (/root/.config/composer): hg branch

Executing command (/root/.config/composer): fossil branch list

Executing command (/root/.config/composer): fossil tag list

Executing command (/root/.config/composer): svn info --xml

Running 1.10.1 (2020-03-13 20:34:27) with PHP 7.2.29 on Linux / 3.10.0-1062.18.1.el7.x86_64

Downloading https://packagist.phpcomposer.com/packages.json

Writing /root/.cache/composer/repo/https---packagist.phpcomposer.com/packages.json into cache

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-laravel$installer.json from cache

Downloading https://repo.packagist.org/p/laravel/installer.json

Using version ^3.0 for laravel/installer

./composer.json has been updated

Reading ./composer.json

Loading config file /root/.config/composer/config.json

Loading config file /root/.config/composer/auth.json

Loading config file ./composer.json

Loading config file /root/.config/composer/auth.json

Reading /root/.config/composer/auth.json

Executing command (/root/.config/composer): git branch --no-color --no-abbrev -v

Executing command (/root/.config/composer): git describe --exact-match --tags

Executing command (/root/.config/composer): git log --pretty="%H" -n1 HEAD

Executing command (/root/.config/composer): hg branch

Executing command (/root/.config/composer): fossil branch list

Executing command (/root/.config/composer): fossil tag list

Executing command (/root/.config/composer): svn info --xml

Loading composer repositories with package information

Downloading https://packagist.phpcomposer.com/packages.json

Writing /root/.cache/composer/repo/https---packagist.phpcomposer.com/packages.json into cache

Updating dependencies (including require-dev)

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-laravel$laravel.json from cache

Downloading https://repo.packagist.org/p/laravel/laravel.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-laravel$framework.json from cache

Downloading https://repo.packagist.org/p/laravel/framework.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-classpreloader$classpreloader.json from cache

Downloading https://repo.packagist.org/p/classpreloader/classpreloader.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-doctrine$inflector.json from cache

Downloading https://repo.packagist.org/p/doctrine/inflector.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-jeremeamia$superclosure.json from cache

Downloading https://repo.packagist.org/p/jeremeamia/superclosure.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-league$flysystem.json from cache

Downloading https://repo.packagist.org/p/league/flysystem.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-monolog$monolog.json from cache

Downloading https://repo.packagist.org/p/monolog/monolog.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-mtdowling$cron-expression.json from cache

Downloading https://repo.packagist.org/p/mtdowling/cron-expression.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-nesbot$carbon.json from cache

Downloading https://repo.packagist.org/p/nesbot/carbon.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-paragonie$random-compat.json from cache

Downloading https://repo.packagist.org/p/paragonie/random_compat.json

Writing /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-paragonie$random-compat.json into cache

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-psy$psysh.json from cache

Downloading https://repo.packagist.org/p/psy/psysh.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-swiftmailer$swiftmailer.json from cache

Downloading https://repo.packagist.org/p/swiftmailer/swiftmailer.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$console.json from cache

Downloading https://repo.packagist.org/p/symfony/console.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$debug.json from cache

Downloading https://repo.packagist.org/p/symfony/debug.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$finder.json from cache

Downloading https://repo.packagist.org/p/symfony/finder.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$http-foundation.json from cache

Downloading https://repo.packagist.org/p/symfony/http-foundation.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$http-kernel.json from cache

Downloading https://repo.packagist.org/p/symfony/http-kernel.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php56.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-php56.json

Writing /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php56.json into cache

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$process.json from cache

Downloading https://repo.packagist.org/p/symfony/process.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$routing.json from cache

Downloading https://repo.packagist.org/p/symfony/routing.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$translation.json from cache

Downloading https://repo.packagist.org/p/symfony/translation.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$var-dumper.json from cache

Downloading https://repo.packagist.org/p/symfony/var-dumper.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-vlucas$phpdotenv.json from cache

Downloading https://repo.packagist.org/p/vlucas/phpdotenv.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-nikic$php-parser.json from cache

Downloading https://repo.packagist.org/p/nikic/php-parser.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-psr$log.json from cache

Downloading https://repo.packagist.org/p/psr/log.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-kylekatarnls$update-helper.json from cache

Downloading https://repo.packagist.org/p/kylekatarnls/update-helper.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-dnoegel$php-xdg-base-dir.json from cache

Downloading https://repo.packagist.org/p/dnoegel/php-xdg-base-dir.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-jakub-onderka$php-console-highlighter.json from cache

Downloading https://repo.packagist.org/p/jakub-onderka/php-console-highlighter.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-mbstring.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-mbstring.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php54.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-php54.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php55.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-php55.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$event-dispatcher.json from cache

Downloading https://repo.packagist.org/p/symfony/event-dispatcher.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-ctype.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-ctype.json

Writing /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-ctype.json into cache

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-util.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-util.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$contracts.json from cache

Downloading https://repo.packagist.org/p/symfony/contracts.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$translation-contracts.json from cache

Downloading https://repo.packagist.org/p/symfony/translation-contracts.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-jakub-onderka$php-console-color.json from cache

Downloading https://repo.packagist.org/p/jakub-onderka/php-console-color.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-ircmaxell$password-compat.json from cache

Downloading https://repo.packagist.org/p/ircmaxell/password-compat.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php70.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-php70.json

Writing /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php70.json into cache

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-psr$cache.json from cache

Downloading https://repo.packagist.org/p/psr/cache.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-psr$container.json from cache

Downloading https://repo.packagist.org/p/psr/container.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-laravel$installer.json from cache

Downloading https://repo.packagist.org/p/laravel/installer.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-guzzlehttp$guzzle.json from cache

Downloading https://repo.packagist.org/p/guzzlehttp/guzzle.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$filesystem.json from cache

Downloading https://repo.packagist.org/p/symfony/filesystem.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-guzzlehttp$psr7.json from cache

Downloading https://repo.packagist.org/p/guzzlehttp/psr7.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-guzzlehttp$promises.json from cache

Downloading https://repo.packagist.org/p/guzzlehttp/promises.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$polyfill-php73.json from cache

Downloading https://repo.packagist.org/p/symfony/polyfill-php73.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-symfony$service-contracts.json from cache

Downloading https://repo.packagist.org/p/symfony/service-contracts.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-psr$http-message.json from cache

Downloading https://repo.packagist.org/p/psr/http-message.json

Reading /root/.cache/composer/repo/https---packagist.phpcomposer.com/provider-ralouphie$getallheaders.json from cache

Downloading https://repo.packagist.org/p/ralouphie/getallheaders.json

Resolving dependencies through SAT

Looking at all rules.

Something's changed, looking at all rules again (pass #3495)


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

2回答
提问者 慕勒7607243 2020-04-09 21:19:13

PHP版本是7.2,需要安装的扩展都已经安装了

# php -v

PHP 7.2.29 (cli) (built: Mar 17 2020 11:36:18) ( NTS )

Copyright (c) 1997-2018 The PHP Group

Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

    with Zend OPcache v7.2.29, Copyright (c) 1999-2018, by Zend Technologies

[root@oc4335315811 composer]# 


  • 可以看下是不是composer版本不匹配 http://www.dianthink.com/detail-336.html
    2020-04-10 10:46:59
  • 提问者 慕勒7607243 #2
    # /usr/local/bin/composer -v ______ / ____/___ ____ ___ ____ ____ ________ _____ / / / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/ / /___/ /_/ / / / / / / /_/ / /_/ (__ ) __/ / \____/\____/_/ /_/ /_/ .___/\____/____/\___/_/ /_/ Composer version 1.10.1 2020-03-13 20:34:27 Usage: command [options] [arguments]
    2020-04-10 13:39:33
  • imooc的铁粉 回复 提问者 慕勒7607243 #3
    composer版本是没有问题的,可以参考:http://www.dianthink.com/detail-336.html 安装一些PHP的扩展
    2020-04-10 14:33:06
guly 2020-04-09 17:47:50

你好,解决办法:检查PHP版本,保证PHP版本>7,

详细步骤参考:

http://www.dianthink.com/detail-336.html

如果解决您的问题请采纳,祝学习愉快!


问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
PHP典型功能与Laravel5框架开发
  • 参与学习           人
  • 解答问题       722    个

掌握开发中必备技能解锁缓存、支付,邮件和短信发送等高端接口运用,直击工作重难点,通过开发简书项目熟练掌握Laravel5的开发技术。完成以上三个阶段的学习,成为满足企业需求的开发工程师。

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师