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

Failure to locate binary while installing with Stack #28

Closed
dniku opened this issue May 9, 2017 · 1 comment
Closed

Failure to locate binary while installing with Stack #28

dniku opened this issue May 9, 2017 · 1 comment

Comments

@dniku
Copy link

dniku commented May 9, 2017

When I install cabal-helper with Stack, I get this error:

Couldn't find executable cabal-helper-wrapper in directory <project-directory>/.stack-work/install/x86_64-linux/lts-8.5/8.0.2/bin/

However, the binary is there, under .stack-work/install/x86_64-linux/lts-8.5/8.0.2/libexec/x86_64-linux-ghc-8.0.2/cabal-helper-0.7.3.0/cabal-helper-wrapper, so if I issue

cp .stack-work/install/x86_64-linux/lts-8.5/8.0.2/libexec/x86_64-linux-ghc-8.0.2/cabal-helper-0.7.3.0/cabal-helper-wrapper .stack-work/install/x86_64-linux/lts-8.5/8.0.2/bin/

and run stack install cabal-helper again, I get

Copying from <project-directory>/.stack-work/install/x86_64-linux/lts-8.5/8.0.2/bin/cabal-helper-wrapper to /home/ser/.local/bin/cabal-helper-wrapper

Copied executables to /home/ser/.local/bin/:
- cabal-helper-wrapper

I'm not sure whether this is an issue with Stack or cabal-helper, but cabal-helper is the only package I've seen that exhibits this behavior.

I execute all commands from the directory where https://github.com/input-output-hk/cardano-sl is cloned. Its latest .cabal file is here. My stack --version.

See also the mirror of this issue in the Stack repository.

@dniku dniku changed the title Failure while installing with Stack Failure to locate binary while installing with Stack Jun 7, 2017
@DanielG
Copy link
Owner

DanielG commented Sep 25, 2017

I've implemented a generic mechanism for having Cabal install executables in $libexec and #ifdefed out the hax in our Setup.hs for Cabal>2.0. See haskell/cabal#4501. Lets hope Stack handles that better.

@DanielG DanielG closed this as completed Sep 25, 2017
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