Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch brewed sqitch on mac #381

Closed
xleliberty opened this issue May 18, 2018 · 3 comments
Closed

Unable to launch brewed sqitch on mac #381

xleliberty opened this issue May 18, 2018 · 3 comments

Comments

@xleliberty
Copy link

Hi,
i've just tried to install sqitch on my mac via homebrew

I'me facing the following problem:

dyld: lazy symbol binding failed: Symbol not found: _Perl_xs_handshake
Referenced from: /usr/local/lib/perl5/darwin-thread-multi-2level/auto/Locale/gettext_xs/gettext_xs.bundle
Expected in: flat namespace

dyld: Symbol not found: _Perl_xs_handshake
Referenced from: /usr/local/lib/perl5/darwin-thread-multi-2level/auto/Locale/gettext_xs/gettext_xs.bundle
Expected in: flat namespace

[1] 48679 abort sqitch

here are information:

Macos : 10.13.4
Homebrew 1.6.3
Homebrew/homebrew-core (git revision 1b61c; last commit 2018-05-18)

I've tried:

cpanm -U --local-lib "brew --prefix" --notest Locale::gettext_xs
and
cpanm --local-lib "brew --prefix" --notest Locale::gettext_xs

but still same problem

Any help possible ?

Thanks in advance

@xleliberty
Copy link
Author

Ok,
found the problem.

The brew sqitch installed version has an hardcoded shebang pointing to system installed perl

#!/usr/bin/perl -w -CAS

eval 'exec /usr/bin/perl -w -CAS -S $0 ${1+"$@"}'

found in /usr/local/Cellar/sqitch/0.9997/bin/sqitch

Once modified for /usr/local/bin/perl , it works

@xleliberty xleliberty changed the title Unable to launch sqitch on mac Unable to launch brewed sqitch on mac May 19, 2018
@theory
Copy link
Collaborator

theory commented May 20, 2018

That script should have been copied to /usr/local/Cellar/sqitch/0.9997/blib/scripts/sqitch and the shebang updated for the Perl that installs it. What's in that file?

@theory
Copy link
Collaborator

theory commented Sep 24, 2018

I've rewritten the Homebrew formulas and will be releasing them soon. If this is still an issue post v0.9998, please file an issue with the homebrew-sqitch project.

@theory theory closed this as completed Sep 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants