3

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

当我搜索这个时,我得到了这个命令:curl -sS https://getcomposer.org/installer | php从“ 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?

4

2 回答 2

0

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

于 2014-09-17T07:53:13.180 回答
0

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

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

  1. 从这里下载
  2. 在 bash 文件目录中打开一个终端
  3. 运行以下命令:

    bash Laravel_Global_Installer.sh

此 bash 文件管理以下设备的安装:

  • 最新版本的 PHP 及其扩展
  • 最新版本的 Composer(全球)
  • Laravel 最新版本(全球)
于 2019-11-14T17:08:37.740 回答