sqitchers / homebrew-sqitch

Homebrew Formulas for Sqitch
22 stars 10 forks source link

Error: The `brew link` step did not complete successfully #34

Closed ryanblakeley closed 5 years ago

ryanblakeley commented 6 years ago

Just ran brew install sqitch:

Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/enc2xs
Target /usr/local/bin/enc2xs
is a symlink belonging to perl. You can unlink it:
  brew unlink perl

To force the link and overwrite all conflicting files:
  brew link --overwrite sqitch_dependencies

To list all files that would be deleted:
  brew link --overwrite --dry-run sqitch_dependencies

Possible conflicting files are:
/usr/local/bin/enc2xs -> /usr/local/Cellar/perl/5.26.1/bin/enc2xs
/usr/local/bin/encguess -> /usr/local/Cellar/perl/5.26.1/bin/encguess
/usr/local/bin/json_pp -> /usr/local/Cellar/perl/5.26.1/bin/json_pp
/usr/local/bin/piconv -> /usr/local/Cellar/perl/5.26.1/bin/piconv
/usr/local/bin/pod2man -> /usr/local/Cellar/perl/5.26.1/bin/pod2man
/usr/local/bin/pod2text -> /usr/local/Cellar/perl/5.26.1/bin/pod2text
/usr/local/bin/pod2usage -> /usr/local/Cellar/perl/5.26.1/bin/pod2usage
/usr/local/bin/podselect -> /usr/local/Cellar/perl/5.26.1/bin/podselect
/usr/local/bin/prove -> /usr/local/Cellar/perl/5.26.1/bin/prove
/usr/local/bin/shasum -> /usr/local/Cellar/perl/5.26.1/bin/shasum
ryanblakeley commented 6 years ago

Note: I have been using sqitch for a few months now...it's awesome, thanks for publishing it. This error cropped in right after I upgrade to macOS High Sierra.

I re-installed a bunch of packages through Homebrew and this was the only error. I cleaned out sqitch (and deps) and tried again, same thing. I also tried uninstalling perl, installing sqitch, and then installing perl; and it creates the same error but where perl can't symlink.

theory commented 6 years ago

Those are all apps that come with Perl. Weird that linking is a problem. Can you remove them from /user/local/bin and try again?

I'm not a Homebrew user, so kind of suck at supporting this tap. Long-term, it should probably rewritten to put all the Perl stuff in a directory for Sqitch and only link Sqitch. But in the meantime, maybe a reply to this Tweet might end up helping?

ryanblakeley commented 6 years ago

I can remove them but next time I run brew link perl, the same conflict is there. So far it seems like I have to choose between having perl symlinks or sqitch symlinks working.

I also suck at this stuff so idk :/. It's cool of you to publish a package that you don't even have a use for though..

theory commented 6 years ago

Well it sounds like it's not using your Brew installed Perl, because it sounds like it's trying to link Perl apps, which, you know, your Perl already has and has linked. NFI why it would be trying to install another Perl…

theory commented 5 years ago

The new formula, release last night for v0.9998, requires the Homebrew Perl build, because of Mojave issues. I suspect that will prevent this issue in the future.