This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
stack install.hs cabal fails #1160
Closed
Description
I'm running stack install.hs cabal
on FreeBSD and get the following output:
┌─[arr]─[/home/arr/projects/haskell-ide-engine]──╼
└──╼ % stack ./install.hs cabal
# stack (for cabal)
# stack (for cabal)
Copying from /usr/home/arr/.stack/snapshots/x86_64-freebsd-ino64/nightly-2018-12-15/8.6.2/bin/cabal to /usr/home/arr/.local/bin/cabal
Copied executables to /usr/home/arr/.local/bin:
- cabal
Warning: The cabal executable found on the PATH environment variable is /usr/home/arr/.stack/snapshots/x86_64-freebsd-ino64/nightly-2018-12-15/8.6.2/bin/cabal and not the version that was just
installed. This means that cabal calls on the command line will not use this version.
# cabal (for cabal)
Warning: The update command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-update command
or the legacy v1-update alias as new-style projects will become the default in
the next version of cabal-install. Please file a bug if you cannot replicate a
working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
# cabal (for cabal)
Warning: The install command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
cabal: There is no package named 'Cabal'.
You may need to run 'cabal update' to get the latest list of available
packages.
Error when running Shake build system:
at src/Development/Shake/Internal/Args.hs:81:69-79:
* Depends on: cabal
* Raised the exception:
user error (Development.Shake.command_, system command failed
Command: cabal install Cabal-2.4.1.0 --with-compiler=/usr/home/arr/.stack/programs/x86_64-freebsd/ghc-ino64-8.6.3/bin/ghc
Exit code: 1
Stderr:
Warning: The install command is a part of the legacy v1 style of cabal usage.
Please switch to using either the new project style and the new-install
command or the legacy v1-install alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.
For more information, see: https://wiki.haskell.org/Cabal/NewBuild
Warning: No remote package servers have been specified. Usually you would have
one specified in the config file.
cabal: There is no package named 'Cabal'.
You may need to run 'cabal update' to get the latest list of available
packages.
)
The warning message about PATH seems unrelated and harmless, but
No remote package servers have been specified
seems suspicious.
Any ideas how fix/debug this?