Composer/Laravel安装:我的命令行不再理解PATH


Composer/Laravel Installation: My command line no longer understands the PATHs

运行mac Yosemite 10.10.5

几天前,我第一次安装了Laravel。那部分进行得很顺利!一旦到了安装composer的时候,我就可以在这里找到一些帮助!bashProfile上的这个命令让它为我工作:PATH="$PATH:~/.composer/vendor/bin"

快进到今天,我正试图安装XAMPP和Bitnami。。Apache服务器等等。所以我想我已经准备好了,当我试图创建一个项目时,我被告知我没有mcrypt文件?所以我去了兔子洞。这是一个艰难的过程,但我设法使它发挥作用。

现在请原谅我,但我不记得接下来发生了什么,导致我重新安装composer,这是另一个巨大的问题,因为它不允许我这样做

Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The detect_unicode setting must be disabled.
Add the following to the end of your `php.ini`:
    detect_unicode = Off

在做了一些研究之后,我可以通过运行这个命令再次下载Composer。。

curl -s getcomposer.org/installer | php -d detect_unicode=Off

我以为我已经上路了。。两个小时过去了!天哪,我错了(曾经有用的东西。。composer命令在我的终端中。。突然之间大家都不认识了。。

像这样的命令以前有效。。composer create-project laravel/laravel=5.0 TestApp

但现在它返回这个。。??+?abelista /Applications/XAMPP/htdocs我的机器名称上的问号。。

composer未运行任何内容。。我也尝试过在我的Bash Profile中更改我的PATH。。

PATH="$PATH:$HOME/.composer/vendor/bin"

PATH="~/.composer/vendor/bin/laravel:$PATH"

并记住下面的这个曾经有效

PATH="$PATH:~/.composer/vendor/bin"

据我所知。。如果我能正确回忆的话。。我想问题是从我运行自制软件安装mcrypt时开始的。。我可能错了。这里有人知道我的问题是什么吗?

顺便说一句,根据我的命令。。composer已安装。。

All settings correct for using Composer
Downloading...
Composer successfully installed to: /Applications/XAMPP/xamppfiles/htdocs/composer.phar
Use it: php composer.phar

谢谢你的阅读和帮助。

我想你已经把PHP安装XAMPP或其他工具搞砸了。。。

和作曲家无关。如果你想做点什么,试着使用Homestead,那里的一切都为你准备好了。

一般来说,我建议您不要直接在开发机器上安装东西。试着使用虚拟机,这样你就可以随心所欲,轻松重置一切。