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.

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

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料