Liunx under Global installation Composer

Source: Internet
Author: User

I put it in the PATH of the system directory, so that it can be accessed globally.

Curl-ss Https://getcomposer.org/installer | PHPMV Composer.phar/usr/local/bin/composer

Note:if the appeal command fails because of permission execution, use thesudo try running mv againthat line of command.

Input command: Composer-vcomposer version 1.0-dev (FEEFD51565BB8EAD38E355B9E501685B5254D0D5)

The above words indicate that the installation was successful!

Here are the specific run commands!

[Email protected]:~$curl-ss https://getcomposer.org/install | phpThe program "Curl" is not installed. You can install it using the following command: sudo apt-get install Curl[email protected]:~$sudo apt-get Install curl[sudo] password for wangyulu: Reading package list ... Completing the dependency tree that is analyzing the package is reading state information ... Completion will install the following additional packages: Libcurl3 the following "new" packages will be installed: Curl The following packages will be upgraded: LIBCURL3 upgraded 1 packages, installed 1 new packages, uninstalled 0 packages, and 267 packages were not upgraded. You need to download the 310 KB package. 339 KB of extra space is consumed after decompression. Do you want to continue? [y/n] Y get: 1 http://cn.archive.ubuntu.com/ubuntu/vivid-updates/main libcurl3 amd64 7.38.0-3ubuntu2.2 [+ KB] gets: 2 http ://cn.archive.ubuntu.com/ubuntu/vivid-updates/main Curl AMD64 7.38.0-3ubuntu2.2 [129 kb] Download 310 KB, takes 0 seconds (kb/s) (number of reads According to the library ... The system currently has a total of 180,902 files and directories installed. is preparing to unpack .../libcurl3_7.38.0-3ubuntu2.2_amd64.deb ... Unpacking Libcurl3:amd64 (7.38.0-3ubuntu2.2) to (7.38.0-3UBUNTU2) ... Selecting not selected Package curl. Preparing for unpacking .../curl_7.38.0-3ubuntu2.2_amd64.deb ... Unpacking Curl (7.38.0-3ubuntu2.2) ... Processing triggers for man-db (2.7.0.2-5) ... Setting Libcurl3:amd64 (7.38.0-3ubuntu2.2) ... Setting Curl (7.38.0-3ubuntu2.2) ... Processing triggers for Libc-bin (2.21-0UBUNTU4) ...  [email protected]:~$curl-ss Https://getcomposer.org/installer | php#!/usr/bin/env phpall settings correct for using composerdownloading ... Composer successfully installed to:/home/wangyulu/composer.pharuse it:php composer.phar[email protected]:~$MV Composer.phar/usr/local/bin/composerMV: Unable to move "Composer.phar" to "/usr/local/bin/composer": Insufficient permissions [email protected]:~$sudo mv Composer.phar/usr/local/bin/composer[Email protected]:~$composer-vComposer version 1.0-dev (FEEFD51565BB8EAD38E355B9E501685B5254D0D5)

Reference: http://docs.phpcomposer.com/00-intro.html

Liunx under Global installation Composer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.