Take the 2-minute tour ×

I'm running this command:

curl -s https://getcomposer.org/installer | php -- --install-dir=~/bin

but I get this:

All settings correct for using Composer. The defined install dir (~/bin) does not exist.

but, since I have that directory created, why am I getting that error?

share|improve this question
the --install_dir option is a switch you're passing to php, not curl –  Tim Tisdall Oct 23 '13 at 16:47
but -- by itself generally terminates options lists. –  Marc B Oct 23 '13 at 16:47
it sounds like it's passing the option to the php code which in turn is throwing the error –  Tim Tisdall Oct 23 '13 at 16:49
what do you get if you run ls ~/bin -la? –  Tim Tisdall Oct 23 '13 at 16:55
have you tried using an absolute path? /home/tirengarfio/bin or something like that –  Tim Tisdall Oct 23 '13 at 18:02
show 2 more comments

1 Answer

So, I guess the answer is that ~ isn't expanded into the user's home directory.

share|improve this answer
add comment

Your Answer


