You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
when trying to build the 'quick start example', stack moans about lack of cabal
To Reproduce
Steps to reproduce the behavior:
step one - remove stack / cabal
$ cd ~ && mv .stack .stack.backup
$ which cabal // cabal not found
$ sudo pacman -Rsn stack // remove stack
at this point i have removed stack and made sure cabal is not on my PATH
step two - reinstall stack & do the 'quick start' command
$ sudo pacman -S stack
$ cd ~/github
$ git clone https://github.com/dmjio/miso && cd miso/sample-app && stack setup && stack build
actual behaviour
stuff^^
Copied executables to /home/mycomp/.stack/programs/x86_64-linux/ghcjs-0.2.0.9006020_ghc-7.10.3/bin:
ghcjs
ghcjs-boot
ghcjs-pkg
ghcjs-run
haddock-ghcjs
hsc2hs-ghcjs
Warning: Installation path /home/mycomp/.stack/programs/x86_64-linux/ghcjs-0.2.0.9006020_ghc-7.10.3/bin
not found on the PATH environment variable.
Installed GHCJS.
Executable named cabal not found on path: ["/home/mycomp/.stack/programs/x86_64-linux/ghcjs-0.2.0.9006020_ghc-7.10.3/src/.stack-work/install/x86_64-linux-tinfo6/lts-6.20/7.10.3/bin","/home/mycomp/.stack/snapshots/x86_64-linux-tinfo6/lts-6.20/7.10.3/bin","/home/mycomp/.stack/compiler-tools/x86_64-linux-tinfo6/ghc-7.10.3/bin","/home/mycomp/.stack/programs/x86_64-linux/ghc-tinfo6-7.10.3/bin","/usr/local/bin","/usr/bin","/bin","/usr/local/sbin","/home/mycomp/.local/bin/","/usr/lib/jvm/default/bin","/usr/bin/site_perl","/usr/bin/vendor_perl","/usr/bin/core_perl"]
Expected behavior
build with no errors
Desktop (please complete the following information):
OS: manjaro + xfce-4.12
Additional context
It looks like stack setup doesn't install cabal...?
i have not installed GHCJS (i am under the impression stack will do this for me ?)
i have checked and cabal is indeed not in any of those directories
if this is a stack issue i'm sorry, i am a haskell noob
i don't understand the warning about /home/mycomp/.stack..... etc not being on the PATH variable -i don't want it on my PATH variable
many thanks for the help!
The text was updated successfully, but these errors were encountered:
Have you tried installing cabal globally and then running the command? The ghcjs boot process will look for cabal in your path. Ideally stack would install cabal first, and then provide a modified path for ghcjs, but I don't think it does this at the moment.
Describe the bug
when trying to build the 'quick start example', stack moans about lack of cabal
To Reproduce
Steps to reproduce the behavior:
step one - remove stack / cabal
$ cd ~ && mv .stack .stack.backup
$ which cabal // cabal not found
$ sudo pacman -Rsn stack // remove stack
at this point i have removed stack and made sure cabal is not on my PATH
step two - reinstall stack & do the 'quick start' command
$ sudo pacman -S stack
$ cd ~/github
$ git clone https://github.com/dmjio/miso && cd miso/sample-app && stack setup && stack build
actual behaviour
stuff^^
Copied executables to /home/mycomp/.stack/programs/x86_64-linux/ghcjs-0.2.0.9006020_ghc-7.10.3/bin:
Warning: Installation path /home/mycomp/.stack/programs/x86_64-linux/ghcjs-0.2.0.9006020_ghc-7.10.3/bin
not found on the PATH environment variable.
Installed GHCJS.
Executable named cabal not found on path: ["/home/mycomp/.stack/programs/x86_64-linux/ghcjs-0.2.0.9006020_ghc-7.10.3/src/.stack-work/install/x86_64-linux-tinfo6/lts-6.20/7.10.3/bin","/home/mycomp/.stack/snapshots/x86_64-linux-tinfo6/lts-6.20/7.10.3/bin","/home/mycomp/.stack/compiler-tools/x86_64-linux-tinfo6/ghc-7.10.3/bin","/home/mycomp/.stack/programs/x86_64-linux/ghc-tinfo6-7.10.3/bin","/usr/local/bin","/usr/bin","/bin","/usr/local/sbin","/home/mycomp/.local/bin/","/usr/lib/jvm/default/bin","/usr/bin/site_perl","/usr/bin/vendor_perl","/usr/bin/core_perl"]
Expected behavior
build with no errors
Desktop (please complete the following information):
Additional context
stack setup
doesn't install cabal...?many thanks for the help!
The text was updated successfully, but these errors were encountered: