Search code examples
phpmacossymlinkpropelpropel2

PHP Propel on macOS Sierra unable to create working symlink


The manual of propel says:

In order to allow an easier execution of the script, you can also add the propel generator’s bin/ directory to your PATH, or create a symlink. For example:

$ cd myproject
$ ln -s vendor/bin/propel propel

If I do this, the symlink is created, but if I run propel I get the following error:

-bash: propel: command not found

Result of ln -al

lrwxr-xr-x   1 user  group     17 11 jan 10:47 propel -> vendor/bin/propel

How can I solve this?

Note: calling vendor/bin/propel is working correctly


Solution

  • Try ./propel

    Calling only 'propel' should look for global executable