You are not logged in.
To preface, I apologize is this is not the correct forum for my question; I looked through the list and tried to determine the most appropriate.
Anyways, I first had problems in trying to install yeganesh and aura from AUR, both of which give me the following error (I installed aura-bin for the time being; the interesting part of this output is just the last few lines):
$ sudo aura -A yeganesh
aura >>= Determining dependencies...
aura >>= AUR Packages:
yeganesh
aura >>= Continue? [Y/n]
aura >>= Building `yeganesh`...
aura >>= Well, building `yeganesh` failed.
aura >>= Dumping makepkg output in 3.. 2.. 1..
==> Making package: yeganesh 2.5-1 (Sun Dec 22 14:54:13 PST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading yeganesh-2.5.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 9373 0 0 11185 0 --:--:-- --:--:-- --:--:-- 11185
==> Validating source files with md5sums...
yeganesh-2.5.tar.gz ... Passed
==> Extracting sources...
-> Extracting yeganesh-2.5.tar.gz with bsdtar
==> Starting build()...
Setup.lhs:2:10:
Could not find module `Distribution.Simple'
There are files missing in the `Cabal-1.18.1.2' package,
try running 'ghc-pkg check'.
Use -v to see a list of the files searched for.
==> ERROR: A failure occurred in build().
Aborting...
aura >>= Would you like to continue anyway? [Y/n] n
aura >>= Building failed.Following the given advice, I ran ghc-pkg check, which gives me the following (again, the last several lines are the most interesting, but I've included everything else for completeness):
$ ghc-pkg check
There are problems in package xdg-basedir-0.2.2:
Warning: library-dirs: /home/perlinm/.cabal/lib/xdg-basedir-0.2.2/ghc-7.6.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/xdg-basedir-0.2.2/html/xdg-basedir.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/xdg-basedir-0.2.2/html doesn't exist or isn't a directory
import-dirs: /home/perlinm/.cabal/lib/xdg-basedir-0.2.2/ghc-7.6.3 doesn't exist or isn't a directory
file System/Environment/XDG/BaseDir.hi is missing
cannot find libHSxdg-basedir-0.2.2.a on library path
There are problems in package strict-0.3.2:
Warning: library-dirs: /home/perlinm/.cabal/lib/strict-0.3.2/ghc-7.6.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/strict-0.3.2/html/strict.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/strict-0.3.2/html doesn't exist or isn't a directory
import-dirs: /home/perlinm/.cabal/lib/strict-0.3.2/ghc-7.6.3 doesn't exist or isn't a directory
file Data/Strict/Tuple.hi is missing
file Data/Strict/Maybe.hi is missing
file Data/Strict/Either.hi is missing
file Data/Strict.hi is missing
file System/IO/Strict.hi is missing
cannot find libHSstrict-0.3.2.a on library path
There are problems in package HTTP-4000.2.10:
Warning: library-dirs: /home/perlinm/.cabal/lib/HTTP-4000.2.10/ghc-7.6.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/HTTP-4000.2.10/html/HTTP.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/HTTP-4000.2.10/html doesn't exist or isn't a directory
dependency "parsec-3.1.3-4ce5c20fb44b227ab443931c2714a6ef" doesn't exist
import-dirs: /home/perlinm/.cabal/lib/HTTP-4000.2.10/ghc-7.6.3 doesn't exist or isn't a directory
file Network/BufferType.hi is missing
file Network/Stream.hi is missing
file Network/StreamDebugger.hi is missing
file Network/StreamSocket.hi is missing
file Network/TCP.hi is missing
file Network/HTTP.hi is missing
file Network/HTTP/Headers.hi is missing
file Network/HTTP/Base.hi is missing
file Network/HTTP/Stream.hi is missing
file Network/HTTP/Auth.hi is missing
file Network/HTTP/Cookie.hi is missing
file Network/HTTP/Proxy.hi is missing
file Network/HTTP/HandleStream.hi is missing
file Network/Browser.hi is missing
file Network/HTTP/Base64.hi is missing
file Network/HTTP/MD5Aux.hi is missing
file Network/HTTP/Utils.hi is missing
file Paths_HTTP.hi is missing
cannot find libHSHTTP-4000.2.10.a on library path
There are problems in package zlib-0.5.4.1:
Warning: library-dirs: /home/perlinm/.cabal/lib/zlib-0.5.4.1/ghc-7.6.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/zlib-0.5.4.1/html/zlib.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/zlib-0.5.4.1/html doesn't exist or isn't a directory
import-dirs: /home/perlinm/.cabal/lib/zlib-0.5.4.1/ghc-7.6.3 doesn't exist or isn't a directory
file Codec/Compression/GZip.hi is missing
file Codec/Compression/Zlib.hi is missing
file Codec/Compression/Zlib/Raw.hi is missing
file Codec/Compression/Zlib/Internal.hi is missing
file Codec/Compression/Zlib/Stream.hi is missing
cannot find libHSzlib-0.5.4.1.a on library path
There are problems in package stm-2.4.2:
Warning: library-dirs: /home/perlinm/.cabal/lib/stm-2.4.2/ghc-7.6.3 doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/stm-2.4.2/html/stm.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/stm-2.4.2/html doesn't exist or isn't a directory
import-dirs: /home/perlinm/.cabal/lib/stm-2.4.2/ghc-7.6.3 doesn't exist or isn't a directory
file Control/Concurrent/STM.hi is missing
file Control/Concurrent/STM/TArray.hi is missing
file Control/Concurrent/STM/TVar.hi is missing
file Control/Concurrent/STM/TChan.hi is missing
file Control/Concurrent/STM/TMVar.hi is missing
file Control/Concurrent/STM/TQueue.hi is missing
file Control/Concurrent/STM/TBQueue.hi is missing
file Control/Concurrent/STM/TSem.hi is missing
file Control/Monad/STM.hi is missing
file Control/Sequential/STM.hi is missing
cannot find libHSstm-2.4.2.a on library path
There are problems in package network-2.4.2.1:
Warning: library-dirs: /home/perlinm/.cabal/lib/network-2.4.2.1/ghc-7.6.3 doesn't exist or isn't a directory
Warning: include-dirs: /home/perlinm/.cabal/lib/network-2.4.2.1/ghc-7.6.3/include doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/network-2.4.2.1/html/network.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/network-2.4.2.1/html doesn't exist or isn't a directory
dependency "parsec-3.1.3-4ce5c20fb44b227ab443931c2714a6ef" doesn't exist
import-dirs: /home/perlinm/.cabal/lib/network-2.4.2.1/ghc-7.6.3 doesn't exist or isn't a directory
file Network.hi is missing
file Network/BSD.hi is missing
file Network/Socket.hi is missing
file Network/Socket/ByteString.hi is missing
file Network/Socket/ByteString/Lazy.hi is missing
file Network/Socket/Internal.hi is missing
file Network/URI.hi is missing
file Network/Socket/ByteString/IOVec.hi is missing
file Network/Socket/ByteString/MsgHdr.hi is missing
file Network/Socket/ByteString/Internal.hi is missing
file Network/Socket/Types.hi is missing
cannot find libHSnetwork-2.4.2.1.a on library path
There are problems in package Cabal-1.18.1.2:
Warning: library-dirs: /home/perlinm/.cabal/lib/x86_64-linux-ghc-7.6.3/Cabal-1.18.1.2 doesn't exist or isn't a directory
Warning: haddock-interfaces: /home/perlinm/.cabal/share/doc/x86_64-linux-ghc-7.6.3/Cabal-1.18.1.2/html/Cabal.haddock doesn't exist or isn't a file
Warning: haddock-html: /home/perlinm/.cabal/share/doc/x86_64-linux-ghc-7.6.3/Cabal-1.18.1.2/html doesn't exist or isn't a directory
import-dirs: /home/perlinm/.cabal/lib/x86_64-linux-ghc-7.6.3/Cabal-1.18.1.2 doesn't exist or isn't a directory
file Distribution/Compat/Environment.hi is missing
file Distribution/Compat/Exception.hi is missing
file Distribution/Compat/ReadP.hi is missing
file Distribution/Compiler.hi is missing
file Distribution/InstalledPackageInfo.hi is missing
file Distribution/License.hi is missing
file Distribution/Make.hi is missing
file Distribution/ModuleName.hi is missing
file Distribution/Package.hi is missing
file Distribution/PackageDescription.hi is missing
file Distribution/PackageDescription/Check.hi is missing
file Distribution/PackageDescription/Configuration.hi is missing
file Distribution/PackageDescription/Parse.hi is missing
file Distribution/PackageDescription/PrettyPrint.hi is missing
file Distribution/PackageDescription/Utils.hi is missing
file Distribution/ParseUtils.hi is missing
file Distribution/ReadE.hi is missing
file Distribution/Simple.hi is missing
file Distribution/Simple/Bench.hi is missing
file Distribution/Simple/Build.hi is missing
file Distribution/Simple/Build/Macros.hi is missing
file Distribution/Simple/Build/PathsModule.hi is missing
file Distribution/Simple/BuildPaths.hi is missing
file Distribution/Simple/BuildTarget.hi is missing
file Distribution/Simple/CCompiler.hi is missing
file Distribution/Simple/Command.hi is missing
file Distribution/Simple/Compiler.hi is missing
file Distribution/Simple/Configure.hi is missing
file Distribution/Simple/GHC.hi is missing
file Distribution/Simple/Haddock.hi is missing
file Distribution/Simple/Hpc.hi is missing
file Distribution/Simple/Hugs.hi is missing
file Distribution/Simple/Install.hi is missing
file Distribution/Simple/InstallDirs.hi is missing
file Distribution/Simple/JHC.hi is missing
file Distribution/Simple/LHC.hi is missing
file Distribution/Simple/LocalBuildInfo.hi is missing
file Distribution/Simple/NHC.hi is missing
file Distribution/Simple/PackageIndex.hi is missing
file Distribution/Simple/PreProcess.hi is missing
file Distribution/Simple/PreProcess/Unlit.hi is missing
file Distribution/Simple/Program.hi is missing
file Distribution/Simple/Program/Ar.hi is missing
file Distribution/Simple/Program/Builtin.hi is missing
file Distribution/Simple/Program/Db.hi is missing
file Distribution/Simple/Program/Find.hi is missing
file Distribution/Simple/Program/GHC.hi is missing
file Distribution/Simple/Program/HcPkg.hi is missing
file Distribution/Simple/Program/Hpc.hi is missing
file Distribution/Simple/Program/Ld.hi is missing
file Distribution/Simple/Program/Run.hi is missing
file Distribution/Simple/Program/Script.hi is missing
file Distribution/Simple/Program/Types.hi is missing
file Distribution/Simple/Register.hi is missing
file Distribution/Simple/Setup.hi is missing
file Distribution/Simple/SrcDist.hi is missing
file Distribution/Simple/Test.hi is missing
file Distribution/Simple/UHC.hi is missing
file Distribution/Simple/UserHooks.hi is missing
file Distribution/Simple/Utils.hi is missing
file Distribution/System.hi is missing
file Distribution/TestSuite.hi is missing
file Distribution/Text.hi is missing
file Distribution/Verbosity.hi is missing
file Distribution/Version.hi is missing
file Language/Haskell/Extension.hi is missing
file Distribution/Compat/CopyFile.hi is missing
file Distribution/Compat/TempFile.hi is missing
file Distribution/GetOpt.hi is missing
file Distribution/Simple/GHC/IPI641.hi is missing
file Distribution/Simple/GHC/IPI642.hi is missing
file Paths_Cabal.hi is missing
cannot find libHSCabal-1.18.1.2.a on library path
The following packages are broken, either because they have a problem
listed above, or because they depend on a broken package.
xdg-basedir-0.2.2
strict-0.3.2
HTTP-4000.2.10
zlib-0.5.4.1
stm-2.4.2
network-2.4.2.1
Cabal-1.18.1.2I tried to search on the Arch forms, wiki, and elsewhere for what to do when ghc-pkg check gives me this result, but to no avail. Can anybody point me in the right direction? Doing a full upgrade did not help, and neither did installing all of my ghc packages from the [haskell-core] repository.
It might be relevant that in building cower from AUR I at some point got the following error:
/bin/sh: pod2man: command not foundI figured out I could fix this particular issue by adding /usr/bin/core_perl to my path, but my solution is far from ideal and I hope temporary. I will do some more searching and try to figure this out, but I am mentioning it here as it may be the case that there is some similar problem with a path not being included for the ghc packages.
Thanks.
Last edited by mika.perlin (2013-12-24 10:12:43)
Offline
/usr/bin/core_perl should be added to your $PATH automatically, but IIRC you have to relogin.
Don't use aura, use plain makepkg.
Offline
So I figured out the issue with pod2man. I was setting my entire PATH manually (instead of appending to it), so a few entries which should have been added automatically weren't. My broken packages from ghc-pkg check, however, remain.
Offline
It seems that you have installed some dependencies with `cabal`, as suggest this kind of line:
Warning: library-dirs: /home/perlinm/.cabal/lib/xdg-basedir-0.2.2/ghc-7.6.3 doesn't exist or isn't a directoryNow you want to install `yeganesh` as an (Archlinux) package. Mixing both methods (`cabal-install` and packages) is really not a good solution. I would strongly recommend you to go for the package–based solution, because cabal is not a package manager (and you will certainly fall into dependency hell).
There is an ArchHaskell team maintaining a consistent Haskell repository. There is an explanation here on how to use it. From my point of view this is the best starting point. Currently `yeganesh` and one of its dependency (`haskell-xdg-basedir`) are missing from the repository, but they can be build from AUR as you wanted to do.
If you want to switch to the [haskell-core] repository with some already installed Haskell packages, a few manual steps are needed. I give you here a skeleton for that, but be sure to understand what you do, and keep in mind that can break some applications (no more xmonad for example) if something goes wrong.
Be sure to have [haskell-core] correctly defined (by following steps in the link above)
Refresh the repositories: `pacman -Syy`
If you use `xmonad` -> Uninstall all xmonad related packages: `pacman -R xmonad xmonad-contrib ...`
Do the update to [haskell-core] packages: `pacman -Syu`
If some AUR packages prevent the update because of version requirements, uninstall them, do the update, and reinstall them
If you use `xmonad` -> Reinstall the new xmonad: `pacman -S haskell-xmonad haskell-xmonad-contrib ...`
PS. I noticed that the AUR version of "haskell-xdg-basedir" doesn't work actually. I'll post a comment to update it.
Offline
So I did add the [haskell-core] repository since making my original post, and it looks like all of my haskell packages have been reinstalled properly as far as I can tell. I do not remember whether I had cabal-install installed at the time of my original post, but I do not have it anymore (I did at some point try to install yeganesh using cabal --- and it worked. This method was extremely unsatisfying and hackish, however, and was certainly not a permanent solution to my problem).
In any case, since switching repos and reinstalling my haskell packages (including ghc) I have been getting a different error when trying to install yeganesh (missing dependencies):
$ sudo packer -S yeganesh
Aur Targets (1): yeganesh
Proceed with installation? [Y/n]
Edit yeganesh PKGBUILD with $EDITOR? [Y/n] n
==> Making package: yeganesh 2.5-1 (Tue Dec 24 00:58:03 PST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading yeganesh-2.5.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 9373 0 0 14555 0 --:--:-- --:--:-- --:--:-- 14555
==> Validating source files with md5sums...
yeganesh-2.5.tar.gz ... Passed
==> Extracting sources...
-> Extracting yeganesh-2.5.tar.gz with bsdtar
==> Starting build()...
Configuring yeganesh-2.5...
Setup: At least the following dependencies are missing:
strict >=0.3, xdg-basedir >=0.2
==> ERROR: A failure occurred in build().
Aborting...
The build failed.Whatever is wrong, it is not with the dependencies or their versions:
$ pkgs=(strict xdg-basedir)
$ for pkg in $pkgs; do pacman -Qv haskell-$pkg | grep $pkg; done
Targets : haskell-strict
haskell-strict 0.3.2-27
Targets : haskell-xdg-basedir
haskell-xdg-basedir 0.2.2-19I also tried removing these two dependencies in the PKGBUILD for yeganesh, but got the same error.
Doing some searching, it looks like this error can occur when some packages on the [haskell-core] repo (or, presumably, any repo from which the respective packages are retrieved) are not updated. In this case, the problem may fix itself if I wait a few days and upgrade. If indeed the AUR version of haskell-xdg-basedir (i.e. the one I have installed) does not currently work, maybe fixing that package will also fix my problem.
I should also note that haskell-xdg-basedir cannot be the only problem, as I get a similar error when I try to install aura:
$ sudo packer -S aura
Aur Targets (1): aura
Proceed with installation? [Y/n]
Edit aura PKGBUILD with $EDITOR? [Y/n] n
==> Making package: aura 1.2.1.3-1 (Tue Dec 24 00:57:45 PST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading aura-1.2.1.3.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 93041 100 93041 0 0 107k 0 --:--:-- --:--:-- --:--:-- 107k
==> Validating source files with md5sums...
aura-1.2.1.3.tar.gz ... Passed
==> Extracting sources...
-> Extracting aura-1.2.1.3.tar.gz with bsdtar
==> Starting build()...
Configuring aura-1.2.1.3...
Setup: At least the following dependencies are missing:
curl -any,
json -any,
mtl -any,
parsec -any,
regex-pcre -any,
temporary -any,
transformers -any
==> ERROR: A failure occurred in build().
Aborting...
The build failed.I do, however, have all of these dependencies installed:
$ pkgs=(curl json mtl parsec regex-pcre temporary transformers)
$ for pkg in $pkgs; do pacman -Qs haskell-$pkg; done
local/haskell-curl 1.3.8-1
Haskell binding to libcurl
local/haskell-json 0.7-9
Support for serialising Haskell to and from JSON
local/haskell-mtl 2.1.2-27
Monad classes, using functional dependencies
local/haskell-parsec 3.1.4-1
Monadic parser combinators
local/haskell-regex-pcre 0.94.4-1
Replaces/Enhances Text.Regex
local/haskell-temporary 1.1.2.4-3
Portable temporary file and directory support for Windows and Unix, based on code from Cabal
local/haskell-transformers 0.3.0.0-27
Concrete functor and monad transformersI suppose I'll wait a week or so and report back on whether upgrading has fixed these issues.
Offline
So update. Turns out I my haskell packages were not reinstalled properly, and reinstalling them again fixed my issues with aura. Yeganesh I still cannot install, but the only dependency it complains about now is haskell-xdg-basedir. I presume, then, that the problem is with the version of this package in AUR, and will wait for it to be updated. I did actually get a few error messages thrown at me by ghc-pkg when reinstalling haskell packages, but nothing seems to be wrong with the packages themselves; I will look into it further and maybe open a new thread if it becomes a problem.
I think I can mark this thread as solved. Thanks!
Offline
EDIT: I was writing this reply when I saw your post. I post it anyway for other people. It also contains the solution concerning your `haskell-xdg-basedir` problem ![]()
So I did add the [haskell-core] repository since making my original post, and it looks like all of my haskell packages have been reinstalled properly as far as I can tell
Glad to hear ![]()
In any case, since switching repos and reinstalling my haskell packages (including ghc) I have been getting a different error when trying to install yeganesh (missing dependencies)
Hum, yesterday I manage to install it in this way, so it must be possible for you too. Let's look at that.
First, the `haskell-xdg-basedir` will not work as is. Until the packager change the PKGBUILD, you can just add 'staticlibs' in the options array, so it would be:
options=('strip' 'staticlibs')
(Nota: Without this option the package can still be installed, but some important files will be removed from the package file. Other Haskell programs that depends on it (like yeganesh) will complain and fail to build.)
But this is the only hack that I have done to make it work. For what I see, I suppose that your problem come from the registration of libraries. What I would suggest is to make a little cleanup:
Uninstall all Haskell packages
Remove ghc and cabal cache (WARNING: This will remove all libraries and program installed with cabal)
rm -rf ~/.cabal ~/.ghcReinstall all Haskell packages
Offline
Two notes for anybody who sees this thread in the future:
My errors from ghc have now been resolved by actually uninstalling my haskell packages and installing them again (as opposed to just reinstalling them when they are already installed, as I previously did).
StreakyCobra's fix for haskell-xdg-basedir worked! I can now install yeganesh!
Offline