Install Composer, ClearOS6

# yum --enablerepo=timb -y install php-mcrypt
[...]
Dependencies Resolved

=========================================================================================================
 Package                 Arch                Version                         Repository             Size
=========================================================================================================
Installing:
 php-mcrypt              x86_64              5.4.19-1.clearos                timb                   49 k
Installing for dependencies:
 libmcrypt               x86_64              2.5.8-9.el6                     contribs               96 k

Transaction Summary
=========================================================================================================
Install       2 Package(s)

Total download size: 145 k
Installed size: 366 k

[...]

Complete!
# curl -sS https://getcomposer.org/installer | php
# mv composer.phar /usr/local/bin/composer
# composer
   ______
  / ____/___  ____ ___  ____  ____  ________  _____
 / /   / __ \/ __ `__ \/ __ \/ __ \/ ___/ _ \/ ___/
/ /___/ /_/ / / / / / / /_/ / /_/ (__  )  __/ /
\____/\____/_/ /_/ /_/ .___/\____/____/\___/_/
                    /_/
Composer version 1.0-dev (8c81ec0d0e9f864f0ec77831fc712ee7bcdd119b) 2015-06-03 11:27:17

Usage:
 command [options] [arguments]

Options:
 --help (-h)           Display this help message
 --quiet (-q)          Do not output any message

[...]

Within a web project install the necessary dependencies.
Make sure the lock file is present in the directory where you run the composer command.

# ls -al *.lock
-rw-r--r-- 1 apache allusers 231553 Jun  4 21:37 composer.lock
# composer install
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
  - Installing symfony/http-foundation (v2.6.9)
    Downloading: 100%

  - Installing symfony/event-dispatcher (v2.7.0)
    Downloading: 100%

  - Installing guzzle/guzzle (v3.9.3)
    Downloading: 100%
[...]
Generating autoload files
Generating optimized class loader
Compiling common classes

Ready

Geef een antwoord

Het e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *