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

Error in 'stack install' #1

Open
ysora opened this issue Oct 13, 2022 · 5 comments
Open

Error in 'stack install' #1

ysora opened this issue Oct 13, 2022 · 5 comments

Comments

@ysora
Copy link

ysora commented Oct 13, 2022

Hi GW,
I am trying to install cluster-tree on our lab server but stuck in a problem.
When I type 'stack install', the error says,

hierarchical-spectral-clustering> build (lib + exe)
Preprocessing library for hierarchical-spectral-clustering-0.1.0.0..
Building library for hierarchical-spectral-clustering-0.1.0.0..
[ 2 of 12] Compiling Math.Clustering.Hierarchical.Spectral.Types

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:29:1: error:
    Could not find module ‘Data.Clustering.Hierarchical’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
29 | import Data.Clustering.Hierarchical (Dendrogram (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:32:1: error:
    Could not load module ‘Data.Tree’
    It is a member of the hidden package ‘containers-0.6.4.1’.
    Perhaps you need to add ‘containers’ to the build-depends in your .cabal file.
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
32 | import Data.Tree (Tree (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:34:1: error:
    Could not find module ‘Math.Modularity.Types’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
34 | import Math.Modularity.Types (Q (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:35:1: error:
    Could not find module ‘Math.TreeFun.Tree’
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
35 | import Math.TreeFun.Tree (leaves)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:36:1: error:
    Could not find module ‘Data.Aeson’
    Perhaps you meant Data.Version (from base-4.15.1.0)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
36 | import qualified Data.Aeson as A
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

/mnt/alvand/sora/software/hierarchical-spectral-clustering/hierarchical-spectral-clustering/src/Math/Clustering/Hierarchical/Spectral/Types.hs:38:1: error:
    Could not find module ‘Data.Vector’
    Perhaps you meant Data.Functor (from base-4.15.1.0)
    Use -v (or `:set -v` in ghci) to see a list of the files searched for.
   |
38 | import qualified Data.Vector as V
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

--  While building package hierarchical-spectral-clustering-0.1.0.0 (scroll up to its section to see the error) using:
      /home/sora/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.4.1.0_ghc-9.0.2 --verbose=1 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0 build lib:hierarchical-spectral-clustering exe:hierarchical-spectral-clustering-exe --ghc-options " -fdiagnostics-color=always"
    Process exited with code: ExitFailure 1

Could you provide solution for this problem?
Thanks.

Sora

@ysora ysora changed the title Error in Error in 'stack install' Oct 13, 2022
@GregorySchwartz
Copy link
Owner

Sorry, I did not this until now. How did you try to install? Did you do the offline version?

@ysora
Copy link
Author

ysora commented Jan 3, 2023 via email

@GregorySchwartz
Copy link
Owner

What do you mean previously installed? It was a local install for my account only, did you do a git clone of this repo?

@ysora
Copy link
Author

ysora commented Jan 3, 2023 via email

@ysora
Copy link
Author

ysora commented Jan 3, 2023 via email

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