SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

readlink -e in ./script/server doesn't work on osx

Open 21echoes opened this issue 15 years ago • 6 comments

running ./script/server on os x creates the following output:

readlink: illegal option -- e usage: readlink [-n] [file ...] usage: dirname path INFO: config/script_server_config.yml has been renamed to config/script_server.yml FATAL: config/script_server.yml is missing! Copy over config/script_server.yml.example to config/script_server.yml and edit it properly!

apparently, readlink acts funny on osx, and it doesn't think -e is an option. foreman start works fine, so i know everything's set up and dandy.

21echoes avatar Sep 21 '11 20:09 21echoes

Its not that readlink "acts funny" on OSX. OSX includes the BSD version of readlink, Linux includes the GNU version. GNU utilities do not necessarily have the same options as BSD or other traditional Unix utilities, and frequently GNU versions have additional options.

I reported the behaviour on Sep 14 at http://getsatisfaction.com/diaspora/topics/script_server_wont_run_on_mac_osx_readlink_e

ajft avatar Sep 22 '11 03:09 ajft

ah got it. thanks! i'll look into readlink version detection, and how to mimic the behavior we want on OS X

that said, foreman start looks like it works just fine, so this isn't much of a blocker.

21echoes avatar Sep 22 '11 04:09 21echoes

Sorry, what is the solution on this?

SaraJo avatar Nov 28 '11 19:11 SaraJo

@SaraJo you can use foreman start instead of using script/server.

I'm going to close this issue - I think we probably won't fix script/server to work on OSX. It's meant for running a small pod in production.

sarahmei avatar Jan 12 '12 05:01 sarahmei

Can it go in a wiki somewhere? On Jan 11, 2012 9:05 PM, "Sarah Mei" < [email protected]> wrote:

@SaraJo you can use foreman start instead of using script/server.

I'm going to close this issue - I think we probably won't fix script/server to work on OSX. It's meant for running a small pod in production.


Reply to this email directly or view it on GitHub: https://github.com/diaspora/diaspora/issues/2020#issuecomment-3458496

21echoes avatar Jan 12 '12 06:01 21echoes

Or how about in the code? :)

sarahmei avatar Jan 12 '12 14:01 sarahmei