N
N
Nikolai Novosad2015-02-07 22:44:34
linux
Nikolai Novosad, 2015-02-07 22:44:34

Installing composer on Linux?

Hello.
As an OS - Mageia 4. When installing composer, I go to the project folder and type: curl -sS getcomposer.org/installer | php

In the console after that appears:
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:
The phar extension is missing.
Install it or recompile php without --disable-phar
Please tell me what I'm doing wrong.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
Boris Benkovsky, 2015-02-07
@benbor

Well, the terminal wrote to you
The phar extension is missing.
Install it or recompile php without --disable-phar
What's not clear here?

E
Evgeny Lavrentiev, 2015-02-07
@lavrentiev

I installed it on Debiane like this:

apt-get install curl
curl -s http://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

and then just in the right directory
composer ....

S
Sergey, 2015-02-07
@TsarS

Is there an extension = phar.so commented out in php.ini ?

N
Nikolai Novosad, 2015-02-07
@nik_neman

Everything turned out to be simple - it was necessary to install the phar extension

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question