【问题标题】:Laravel and Composer installation on Linux Mint在 Linux Mint 上安装 Laravel 和 Composer
【发布时间】:2014-11-11 03:41:00
【问题描述】:

我正在使用一台 Linux Mint 机器。我想让 Laravel 安装在上面。

当我搜索这个时,我得到了这个命令:curl -sS https://getcomposer.org/installer | php from "https://getcomposer.org/download/" 放入终端,但它给了我这个:

The program 'php' is currently not installed. You can install it by typing:
sudo apt-get install php5-cli
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl

在我完成 sudo apt-get install curl 之后

libcurl3 curl
Install these packages without verification [y/N]? y
Err http://archive.ubuntu.com/ubuntu/ quantal-updates/main libcurl3 i386 7.27.0-1ubuntu1.9
  404  Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main libcurl3 i386 7.27.0-1ubuntu1.9
  404  Not Found [IP: 91.189.91.14 80]
Err http://security.ubuntu.com/ubuntu/ quantal-security/main curl i386 7.27.0-1ubuntu1.9
  404  Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/libcurl3_7.27.0-1ubuntu1.9_i386.deb  404  Not Found [IP: 91.189.91.14 80]
Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/c/curl/curl_7.27.0-1ubuntu1.9_i386.deb  404  Not Found [IP: 91.189.91.14 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

得到了这个没有成功安装的curl

我怎样才能成功安装这些东西和 Composer 和 Laravel?

【问题讨论】:

  • 先试试sudo apt-get install curl php5-cli。您可能还需要一个 Web 服务器,在这种情况下也需要 sudo apt-get install libapache2-mod-php5 apache2
  • 我试过这个@halfer,但得到了同样的错误。
  • 啊,你运行的是什么版本的 Mint?也许它不再受支持?你试过sudo apt-get update吗?
  • 我有两个 linux macine 一个是服务器另一个是客户端 服务器版本是 -> Linux Mint 14 (nadia) 客户端版本是 -> Linux Mint 15 (olivia) 我对此有一个大问题如果可以@halfer,请帮助解决这个问题
  • 这些版本是否仍受支持?请在 Mint 网站上查看。

标签: php linux laravel-5


【解决方案1】:

首先确保您安装了最新版本的 curl。

我为 Laravel 和 Composer 的全局安装全过程制作了一个 bash 文件。

  1. Download it from here
  2. 在 bash 文件目录中打开一个终端
  3. 运行以下命令:

    bash Laravel_Global_Installer.sh

此 bash 文件管理以下项目的安装:

  • 最新版本的 PHP 及其扩展
  • Composer 最新版本(全球)
  • Laravel 最新版本(全球)

【讨论】:

    【解决方案2】:

    Composer 已经提示您如何安装它们,您应该运行这些命令,输入您的密码,然后这些库应该会自动安装,在您安装这些库后重新运行 composer 下载。

    【讨论】:

    • 我已经使用了它,但没有完全下载所有依赖项。因为我使用的是 linux mint。你能告诉我安装 laravel @Sjors 的任何其他内容吗
    • Linux Mint 基于具有 APT-GET 功能的 Ubuntu。您在执行这些命令时遇到了哪些错误?
    • 你试过 sudo apt-get update 吗?部分依赖返回404,表示APT-GET中注册的URL已经不存在了,可能已经更新了。
    • 也许,你应该安装它。
    猜你喜欢
    • 2017-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-03
    • 2014-07-15
    • 2018-03-06
    • 1970-01-01
    相关资源
    最近更新 更多