GitHub user haginot opened a pull request:
https://github.com/apache/incubator-predictionio/pull/319
Fix GNU's readlink with -f option not working on a Mac and BSD based systems
Thanks for pio script's supporting soft link.
https://github.com/apache/incubator-predictionio/pull/289
But `readlink -f` doesn't seem to work on Mac and possibly BSD based
systems.
As execute pio script, the following errors occurs.
```
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
bin/pio: line 45: //bin/pio-class: No such file or directory
bin/pio: line 45: exec: //bin/pio-class: cannot execute: No such file or
directory
```
I had fixed pio script not to use readlink with option -f , based on this
sbt script.
https://github.com/apache/incubator-predictionio/blob/d45d0a4170ef73695e0fffe921e5bda2c37e2281/sbt/sbt#L8-L32
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/haginot/incubator-predictionio
fix-pio-readlink
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-predictionio/pull/319.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #319
----
commit 82d5ff94815808da07fd35774258b4742a195847
Author: takahiro-hagino <[email protected]>
Date: 2016-10-26T13:33:43Z
Fix GNU's readlink with -f option not working on a Mac or other BSD based
systems.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---