Discuz! Board

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1180|回复: 0
打印 上一主题 下一主题

Laravel安装

[复制链接]

1228

主题

1996

帖子

7572

积分

认证用户组

Rank: 5Rank: 5

积分
7572
跳转到指定楼层
楼主
发表于 2020-5-8 20:28:24 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 Qter 于 2020-5-8 20:54 编辑

通过 Laravel安装器(laravel/installer) 安装 Laravel
首先,通过使用 Composer 安装 Laravel 安装器:
composer global require laravel/installer
[Changed current directory to /root/.config/composer]

Problem 1
    - laravel/installer v3.0.1 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - laravel/installer v3.0.0 requires ext-zip * -> the requested PHP extension zip is missing from your system.
    - Installation request for laravel/installer ^3.0 -> satisfiable by laravel/installer[v3.0.0, v3.0.1].

  To enable extensions, verify that they are enabled in your .ini files:
    - /etc/opt/remi/php72/php.ini
    - /etc/opt/remi/php72/php.d/10-opcache.ini
    - /etc/opt/remi/php72/php.d/20-bcmath.ini
    - /etc/opt/remi/php72/php.d/20-bz2.ini
    - /etc/opt/remi/php72/php.d/20-calendar.ini
    - /etc/opt/remi/php72/php.d/20-ctype.ini
    - /etc/opt/remi/php72/php.d/20-curl.ini
    - /etc/opt/remi/php72/php.d/20-dom.ini
    - /etc/opt/remi/php72/php.d/20-exif.ini
    - /etc/opt/remi/php72/php.d/20-fileinfo.ini
    - /etc/opt/remi/php72/php.d/20-ftp.ini
    - /etc/opt/remi/php72/php.d/20-gd.ini
    - /etc/opt/remi/php72/php.d/20-gettext.ini
    - /etc/opt/remi/php72/php.d/20-iconv.ini
    - /etc/opt/remi/php72/php.d/20-json.ini
    - /etc/opt/remi/php72/php.d/20-mbstring.ini
    - /etc/opt/remi/php72/php.d/20-mysqlnd.ini
    - /etc/opt/remi/php72/php.d/20-pdo.ini
    - /etc/opt/remi/php72/php.d/20-phar.ini
    - /etc/opt/remi/php72/php.d/20-simplexml.ini
    - /etc/opt/remi/php72/php.d/20-sockets.ini
    - /etc/opt/remi/php72/php.d/20-sqlite3.ini
    - /etc/opt/remi/php72/php.d/20-tokenizer.ini
    - /etc/opt/remi/php72/php.d/20-xml.ini
    - /etc/opt/remi/php72/php.d/20-xmlwriter.ini
    - /etc/opt/remi/php72/php.d/20-xsl.ini
    - /etc/opt/remi/php72/php.d/30-mysqli.ini
    - /etc/opt/remi/php72/php.d/30-pdo_mysql.ini
    - /etc/opt/remi/php72/php.d/30-pdo_sqlite.ini
    - /etc/opt/remi/php72/php.d/30-wddx.ini
    - /etc/opt/remi/php72/php.d/30-xmlreader.ini
    - /etc/opt/remi/php72/php.d/30-xmlrpc.ini
    - /etc/opt/remi/php72/php.d/40-igbinary.ini
    - /etc/opt/remi/php72/php.d/40-msgpack.ini
    - /etc/opt/remi/php72/php.d/50-redis.ini
  You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

yum search zip php
yum install -y php72-php-pecl-zip.x86_64
yum install -y unzip
放到$PATH环境变量  


vim ~/.bashrc
在文档最后,添加:
export PATH="$PATH:/root/.config/composer/vendor/bin"
保存,退出,然后运行:
#source ~/.bashrc

第二种方法:
# vim /etc/profile
在文档最后,添加:
export PATH="$PATH:/root/.config/composer/vendor/bin"
保存,退出,然后运行:
#source /etc/profile


查看环境变量 echo $PATH


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|firemail ( 粤ICP备15085507号-1 )

GMT+8, 2024-4-25 11:56 , Processed in 0.056505 second(s), 19 queries .

Powered by Discuz! X3

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表