dongye1912 2014-09-16 17:12
浏览 71
已采纳

Laravel安装“没有这样的文件或目录”在Mac上出错

I'm totally new in Laravel. In the installation process, I'm facing with an error. I wrote it to the Laravel IRC chat, but the problem still continues. While I try to move the laravel.phar file,

mv laravel.phar /usr/local/bin/laravel

I get,

mv: rename laravel.phar to /usr/local/bin/laravel.phar: No such file or directory

that error. I also tried /usr/local/bin directory but the error was the same.

Note: The /usr/local/bin directory exists.

  • 写回答

1条回答 默认 最新

  • douxitao8170 2014-09-16 17:34
    关注

    This seems like more a basic shell problem than specifically a Laravel problem, but "Computers as Weird" sometimes.

    The mv command is either telling you it can't find laravel.phar, or it can't find /usr/local/bin. The best way to solve this problem is to make sure the file you're trying to move is there, and that the destination folder is there. Also, you'll want to do this from the command line.

    What happens when you type each of the following commands?

    $ ls -l laravel.phar
    $ ls -l /usr/local/bin
    $ ls -l .
    

    The first checks the local directroy for the laravel.phar file.

    The second checks to make sure /usr/local/bin exists and lists all the files in it

    The third lists all the files in the current directory.

    The output of these commands should point you towards a solution to your problem.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?