Skip to content

Failure to locate binary while installing with Stack #28

@dniku

Description

@dniku

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions