3 ms·
> (heck, why do I need to call 'php composer.phar' instead of 'composer'?) You can. http://getcomposer.org/doc/00-intro.md#globally http://getcomposer.org/doc
by jasonlotito 14y ago
> (heck, why do I need to call 'php composer.phar' instead of 'composer'?)
You can.
http://getcomposer.org/doc/00-intro.md#globally http://getcomposer.org/doc/00-intro.md#globally
$ curl -s http://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ composer --version
Composer version 6573fd3
- Xylakant 14y agoright. I could write a short shell wrapper as well - but why do I have to? I don't have to with pip or bundler.
- jasonlotito 14y agoUh, no. See, those instructions are from the getting started page. Why do you have to? Because, you can install composer just by downloading it and running it. You dont need to "install" it. This is handy on shared hosting environments where you won't have root. How can I install bundler on a shared hosting environment like composer?
- Xylakant 14y agoWell, yes. I can install bundler on a shared hosting environment where I don't have root. In fact, pretty much all my installations are non-root installations. Still, I don't have to manually move it around, symlink or shell-wrap it. It's not a deal-breaker or a major nuisance that I have to do it, it just fits in what I'm used from php: it gets the job done, but feels unpolished.
- jasonlotito 14y ago> Well, yes. I can install bundler on a shared hosting environment where I don't have root. So what command do you run to get that installed like that? > it gets the job done, but feels unpolished. Unpolished like make && make install.
- Xylakant 14y ago> So what command do you run to get that installed like that? "gem install --user-install bundler".