Skip to content

how to install eTeak with stack #10

@savior-help

Description

@savior-help

when i'm doing as the tutorial says first i cannot find any bootstrap file when you wrote to run ./bootstrap.
and then when i run stack install i got error like below:
any help would be appreciated.

savir@ubuntu:~/Soft/eTeak-master$ stack build
cairo-0.13.1.1: configure
glib-0.13.2.2: configure

-- While building package glib-0.13.2.2 using:
/home/savir/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc --make
-odir
/tmp/stack18807/glib-0.13.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup
-hidir
/tmp/stack18807/glib-0.13.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup
-i -i. -package=Cabal-1.24.0.0 -clear-package-db -global-package-db
-package-db=/home/savir/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/pkgdb
/tmp/stack18807/glib-0.13.2.2/Setup.hs -o
/tmp/stack18807/glib-0.13.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup
Process exited with code: ExitFailure 1
Logs have been written to:
/home/savir/Soft/eTeak-master/.stack-work/logs/glib-0.13.2.2.log

[1 of 2] Compiling SetupWrapper     ( SetupWrapper.hs,

/tmp/stack18807/glib-0.13.2.2/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/SetupWrapper.o
)

SetupWrapper.hs:86:16:
    Couldn't match expected type ‘IO (PackageIndex.PackageIndex

a0)’
with actual type ‘ProgramConfiguration
-> IO
PackageIndex.InstalledPackageIndex’
Probable cause: ‘getInstalledPackages’ is applied to too few
arguments
In a stmt of a 'do' block:
index <- getInstalledPackages verbosity usePackageDB conf
In the expression:
do { index <- getInstalledPackages verbosity usePackageDB conf;
let cabalDep
= Dependency
(PackageName "Cabal") (orLaterVersion
useCabalVersion);
case PackageIndex.lookupDependency index cabalDep of {
[]
-> die
$ "The package requires Cabal library version "
++
display useCabalVersion ++ " but no suitable
version is installed."
pkgs -> return $ bestVersion (map fst pkgs) } }

SetupWrapper.hs:86:47:
    Couldn't match expected type ‘Compiler’
                with actual type ‘[PackageDB]’
    In the second argument of ‘getInstalledPackages’, namely
      ‘usePackageDB’
    In a stmt of a 'do' block:
      index <- getInstalledPackages verbosity usePackageDB conf

SetupWrapper.hs:120:54:
    Couldn't match type ‘Distribution.Simple.Program.Db.ProgramDb’
                   with ‘[PackageDB]’
    Expected type: PackageDBStack
      Actual type: ProgramConfiguration
    In the second argument of ‘cabalLibVersionToUse’, namely

‘conf’
In a stmt of a 'do' block:
cabalLibVersion <- cabalLibVersionToUse comp conf

-- While building package cairo-0.13.1.1 using:
/home/savir/.stack/programs/x86_64-linux/ghc-7.10.3/bin/ghc --make
-odir
/tmp/stack18807/cairo-0.13.1.1/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup
-hidir
/tmp/stack18807/cairo-0.13.1.1/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup
-i -i. -package=Cabal-1.24.0.0 -clear-package-db -global-package-db
-package-db=/home/savir/.stack/snapshots/x86_64-linux/lts-5.8/7.10.3/pkgdb
/tmp/stack18807/cairo-0.13.1.1/Setup.hs -o
/tmp/stack18807/cairo-0.13.1.1/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/setup
Process exited with code: ExitFailure 1
Logs have been written to:
/home/savir/Soft/eTeak-master/.stack-work/logs/cairo-0.13.1.1.log

[1 of 2] Compiling SetupWrapper     ( SetupWrapper.hs,

/tmp/stack18807/cairo-0.13.1.1/.stack-work/dist/x86_64-linux/Cabal-1.24.0.0/setup/SetupWrapper.o
)

SetupWrapper.hs:86:16:
    Couldn't match expected type ‘IO (PackageIndex.PackageIndex

a0)’
with actual type ‘ProgramConfiguration
-> IO
PackageIndex.InstalledPackageIndex’
Probable cause: ‘getInstalledPackages’ is applied to too few
arguments
In a stmt of a 'do' block:
index <- getInstalledPackages verbosity usePackageDB conf
In the expression:
do { index <- getInstalledPackages verbosity usePackageDB conf;
let cabalDep
= Dependency
(PackageName "Cabal") (orLaterVersion
useCabalVersion);
case PackageIndex.lookupDependency index cabalDep of {
[]
-> die
$ "The package requires Cabal library version "
++
display useCabalVersion ++ " but no suitable
version is installed."
pkgs -> return $ bestVersion (map fst pkgs) } }

SetupWrapper.hs:86:47:
    Couldn't match expected type ‘Compiler’
                with actual type ‘[PackageDB]’
    In the second argument of ‘getInstalledPackages’, namely
      ‘usePackageDB’
    In a stmt of a 'do' block:
      index <- getInstalledPackages verbosity usePackageDB conf

SetupWrapper.hs:120:54:
    Couldn't match type ‘Distribution.Simple.Program.Db.ProgramDb’
                   with ‘[PackageDB]’
    Expected type: PackageDBStack
      Actual type: ProgramConfiguration
    In the second argument of ‘cabalLibVersionToUse’, namely

‘conf’
In a stmt of a 'do' block:
cabalLibVersion <- cabalLibVersionToUse comp conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions