簡體   English   中英

在 Linux Mint 上安裝 Laravel 和 Composer

[英]Laravel and Composer installation on Linux Mint

我有一台正在使用的 Linux Mint 機器。 我想讓 Laravel 安裝在它上面。

當我搜索這個時,我得到了這個命令: curl -sS https://getcomposer.org/installer | php 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?

Composer 已經提示您安裝這些庫的方法,您應該運行這些命令,輸入密碼,這些庫應該會自動安裝,安裝這些庫后重新運行 composer 下載。

首先確保您安裝了最新版本的 curl。

我為Laravel和Composer全局安裝的整個過程制作了一個bash文件。

  1. 從這里下載
  2. 在bash文件目錄中打開一個終端
  3. 運行以下命令:

      bash Laravel_Global_Installer.sh

這個 bash 文件管理安裝:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM