These are chat archives for composer/composer

28th
Jan 2016
Cyril Junior
@cyrilselasi
Jan 28 2016 13:26
hello
i'm trying to install composer to start practicing cakePHP
Rob
@alcohol
Jan 28 2016 13:30
is there going to be a question?
Cyril Junior
@cyrilselasi
Jan 28 2016 13:42
yes sorry about that. so i get stuck at the second step where i try to create the cakePHP project with the error message "Your requirements could not be resolved to an installable set of packages."
`Problem 1
- cakephp/cakephp 3.1.8 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.7 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.6 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.5 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.1 -> satisfiable by cakephp/cakephp[3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.8].`
Ben Johnson
@mmic-bjohnson
Jan 28 2016 13:43
@alcohol lol
@cyrilselasi That one seems self-explanatory: sudo apt-get install php5-intl
(provided you're on Debian or a derivative)
Cyril Junior
@cyrilselasi
Jan 28 2016 13:46
i'm on os x
and i have tried to install intl using homebrew
Ben Johnson
@mmic-bjohnson
Jan 28 2016 13:47
Not an OS X user myself, but one piece of advice I can offer is to use a VM for your development work.
You will be swimming upstream constantly.
Cyril Junior
@cyrilselasi
Jan 28 2016 13:48
duly noted.. thanks for the suggestion
Ben Johnson
@mmic-bjohnson
Jan 28 2016 13:48
(I have used OS X, rather extensively, but I don't anymore.)
It's a PITA with regard to many of these stack-related issues.
And that's really more of a BSD thing than an OS X thing.
Cyril Junior
@cyrilselasi
Jan 28 2016 13:48
i'm going to send the error i get from homebrew when i try to install intl
Ben Johnson
@mmic-bjohnson
Jan 28 2016 13:49
I'm certainly willing to take a stab, but it really is a PHP question at this point. :)
Cyril Junior
@cyrilselasi
Jan 28 2016 13:50
:smile:
just a moment
Ben Johnson
@mmic-bjohnson
Jan 28 2016 13:54
@cyrilselasi Sure, take your time.
Cyril Junior
@cyrilselasi
Jan 28 2016 14:11
okay so when installing intl using homebrew,
`sudo pecl instal intl
this gives me the following error

Charless-MacBook-Pro:~ CyrilJunior$ sudo pecl install intl
downloading intl-3.0.0.tgz ...
Starting to download intl-3.0.0.tgz (248,200 bytes)
....................................................done: 248,200 bytes
150 source files, building
running: phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Can't locate Autom4te/C4che.pm in @INC (you may need to install the Autom4te::C4che module) (@INC contains: /usr/local/share/autoconf /Library/Perl/5.18/darwin-thread-multi-2level /Library/Perl/5.18 /Network/Library/Perl/5.18/darwin-thread-multi-2level /Network/Library/Perl/5.18 /Library/Perl/Updates/5.18.2 /System/Library/Perl/5.18/darwin-thread-multi-2level /System/Library/Perl/5.18 /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level /System/Library/Perl/Extras/5.18 .) at /usr/local/bin/autom4te line 37.
BEGIN failed--compilation aborted at /usr/local/bin/autom4te line 37.
ERROR: `phpize' failed
@mmic-bjohnson
Ben Johnson
@mmic-bjohnson
Jan 28 2016 14:20
@cyrilselasi Aw, geez... this is exactly what I was talking about.
It's a constant headache trying to acquire, build, and install the core stack components.
No real resolution, of course.
Cyril Junior
@cyrilselasi
Jan 28 2016 14:21
dang
Ben Johnson
@mmic-bjohnson
Jan 28 2016 14:22
As a Web Developer of 15 years (a Senior for most of that), a VM will make your life so much simpler. It's portable, it'll run on any host OS, you can snapshot it before you make some change that destroys your environment and then cripples your productivity... honestly, in the time it'll take you to resolve this Homebrew issue, you could have a VM up and running.
And everything will be "vanilla" and "just work".
I understand the relunctance to introduce another unfamiliar technology, and I understand wanting to maximize resources by using the host OS's hardware in a dedicated way, but it's just not worth the hassle on Mac (or even Windows, for that matter).
Cyril Junior
@cyrilselasi
Jan 28 2016 14:23
thanks for the advice
i bought a server space a while back from rackspace
i'll set that up for development
Ben Johnson
@mmic-bjohnson
Jan 28 2016 14:24
Well, are you sure you want to develop remotely, though? I'm suggesting that you install something like VirtualBox locally.
You wire it up to the Mac OS X filesystem.
So you can access your project files from within the VM.
Cyril Junior
@cyrilselasi
Jan 28 2016 14:25
oh like parallel
i do have that
Ben Johnson
@mmic-bjohnson
Jan 28 2016 14:25
Yes, it's similar
But it's cost-free and open-source.
And there are countless ready-made images for it, via something called Vagrant.
Vagrant is all the rage right now, and for good reason.
Cyril Junior
@cyrilselasi
Jan 28 2016 14:27
awesome