0
我有一个使用Ubuntu 14.4的Amazon EC2实例。在Ubuntu上全局安装Laravel/Lumen
我在全球安装了我的composer。
当我安装流明我得到这样的结果 - 一切似乎很动听:
[email protected]:/var/www/html$ composer global require "laravel/lumen-installer"
Changed current directory to /home/ubuntu/.config/composer
Using version ^1.0 for laravel/lumen-installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing symfony/process (v3.1.0)
Loading from cache
- Installing symfony/polyfill-mbstring (v1.2.0)
Loading from cache
- Installing symfony/console (v3.1.0)
Loading from cache
- Installing guzzlehttp/promises (1.2.0)
Loading from cache
- Installing psr/http-message (1.0)
Loading from cache
- Installing guzzlehttp/psr7 (1.3.0)
Loading from cache
- Installing guzzlehttp/guzzle (6.2.0)
Loading from cache
- Installing laravel/lumen-installer (v1.0.2)
Loading from cache
symfony/console suggests installing symfony/event-dispatcher()
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files
[email protected]:/var/www/html$
但是当我键入lumen
或lumen new blog
我收到lumen: command not found
。
基于其他问题,我想我必须流明simillarly添加到PATH这样:
export PATH="~/.composer/vendor/bin:$PATH"
这并不有所作为 - 运行流明新的博客,仍然显示lumen: command not found
。
有没有人遇到这个错误?
使用此代替以上导出PATH =“$ PATH:〜/ .composer/vendor/bin” – error2007s
工作。非常感谢:) 你可以解释为什么这个工作?我试图学习Linux - 如果你添加它作为答案,我会接受答案 –