Jeremy1992
V2EX  ›  PHP

安装 flarum 是报的错, php 论坛

  •  
  •   Jeremy1992 · Aug 30, 2015 · 4172 views
    This topic created in 4092 days ago, the information mentioned may be changed or developed.

    http://flarum.org/download/这里有源文件 ,安装环境是 wamp2.5

    报的错是 Warning: require (D:\wamp\www\flarum\flarum/vendor/autoload.php ): failed to open stream: No such file or directory in D:\wamp\www\flarum\flarum\bootstrap.php on line 21

    21 行内容是 :require DIR . '/vendor/autoload.php';

    之前安装另外一个 inews1 也遇到了相同的问题,是否有人遇到过类似问题,指点一下

    10 replies  •  2015-09-06 20:00:13 +08:00
    haiyang416
    haiyang416
    Aug 30, 2015
    1
    你用 composer 安装了需要的库了没啊。
    Jeremy1992
    Jeremy1992
    OP
    Aug 30, 2015
    2
    @haiyang416 没有,(ಥ_ಥ)之前没接触过 composer ,给我几个关键词吧,我去谷歌
    GPU
    GPU
    Aug 30, 2015
    3
    @Jeremy1992 官方有文档的 .
    run2
    run2
    Aug 30, 2015
    4
    https://getcomposer.org/doc/00-intro.md
    composer 都不知道还是学习基础吧,或者 dz / phpwind 是你的归宿
    haiyang416
    haiyang416
    Aug 30, 2015
    5
    @Jeremy1992 现在的 PHP 程序基本都需要依靠 composer 来安装的,在你下载的安装包里有一个 composer.json 文件,里面列出了所有安装程序需要的依赖。
    所以你下载的安装包并不是完整的,你需要先安装 composer , 文档地址楼上已经给出了。
    使用 composer 安装依赖之后它会自动生成 vendor 文件夹,里面就包含你缺少的 autoload.php 等文件。
    baiyemao
    baiyemao
    Aug 30, 2015
    6
    文件 404.。。。
    invite
    invite
    Aug 30, 2015
    7
    简单为王.
    LazyZhu
    LazyZhu
    Sep 1, 2015
    8
    生成最新的 nightly 版 Flarum 程序:
    https://gist.github.com/LazyZhu/9122e6d0f042300adeb4

    直接替换替换, 除了官方的扩展,还另加了两个:
    https://github.com/mtotheikle/flarum-recaptcha
    https://github.com/JakeBooher/flarum-conversations
    LazyZhu
    LazyZhu
    Sep 1, 2015
    9
    Jeremy1992
    Jeremy1992
    OP
    Sep 6, 2015
    10
    @LazyZhu 后来自己搞定了,不过还是要谢谢你
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 00:44 · PVG 08:44 · LAX 16:44 · JFK 19:44
    ♥ Do have faith in what you're doing.