Note that there are some explanatory texts on larger screens.

plurals
  1. POFail to self-update composer?
    primarykey
    data
    text
    <p>I've been using <strong>composer</strong> for about a month now. And then one day <strong>composer</strong> shows me this message:</p> <blockquote> <p>Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.</p> </blockquote> <p>I've installed <em>composer</em> globally as per the documentation.</p> <pre><code>which composer /usr/local/bin/composer </code></pre> <p>Running <strong>sudo composer self-update</strong> gives me this message:</p> <blockquote> <p>/usr/bin/env: php: No such file or directory</p> </blockquote> <p>I've checked <strong>/usr/bin/env</strong> with this command:</p> <pre><code>whereis /usr/bin/env env: /usr/bin/env /usr/bin/X11/env /usr/share/man/man1/env.1.gz </code></pre> <p>my php version:</p> <pre><code>PHP 5.5.1 (cli) (built: Jul 26 2013 19:50:47) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans </code></pre> <p>It seems like <strong>/usr/bin/env</strong> in fact exists.</p> <p>I'm using <strong>ubuntu 12.04LTS</strong>.</p> <p><strong>Update</strong></p> <pre><code>strace sudo composer self-update 2&gt;&amp;1 | grep open open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/i386-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/lib/i386-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/lib/i386-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 open("/usr/share/locale/locale.alias", O_RDONLY|O_CLOEXEC) = 3 open("/usr/share/locale/en_PH/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale/en/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en_PH/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/share/locale-langpack/en/LC_MESSAGES/sudo.mo", O_RDONLY) = -1 ENOENT (No such file or directory) open("/var/run/utmp", O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3 </code></pre> <p>Btw, i'm using xampp installed at <strong>/opt</strong> and <strong>php</strong> is in my <strong>PATH</strong>.</p> <pre><code>echo $PATH /home/chanhxc/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/chanhxc/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/lampp/bin:/home/chanhxc/pear/bin:/home/chanhxc/.composer/vendor/bin:/opt/lampp/bin </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload