Ticket #375 (closed defect: invalid)

Opened 5 years ago

Last modified 17 months ago

target bindir should added to the build tool search path

Reported by: guest Owned by:
Priority: normal Milestone: Cabal-1.8
Component: Cabal library Version: HEAD
Severity: normal Keywords:
Cc: Difficulty: easy (<4 hours)
GHC Version: 6.8.3 Platform:

Description (last modified by guest) (diff)

I'm trying to install happy because cabal-install fails to upgrade all my packages. Below is my log. Any ideas? Thanks!

$ cabal --version
cabal-install version 0.5.2
using version 1.4.0.1 of the Cabal library 

$ cabal upgrade
Resolving dependencies...
'haskell-src-1.0.1.3' is cached.
Configuring haskell-src-1.0.1.3...
Preprocessing library haskell-src-1.0.1.3...
cabal: The program happy is required but it could not be found
cabal: Error: some packages failed to install:
haskell-src-1.0.1.3 failed during the building phase. The exception was:
exit: ExitFailure 1

$ cabal install happy
Resolving dependencies...
'happy-1.18.1' is cached.
[1 of 1] Compiling Main             ( /var/folders/s-/s-WdqsnuGFyUGEeXB-+sZk+++TI/-Tmp-/TMPhappy-1.18.1/happy-1.18.1/Setup.lhs, /var/folders/s-/s-WdqsnuGFyUGEeXB-+sZk+++TI/-Tmp-/TMPhappy-1.18.1/happy-1.18.1/dist/setup/Main.o )
Linking /var/folders/s-/s-WdqsnuGFyUGEeXB-+sZk+++TI/-Tmp-/TMPhappy-1.18.1/happy-1.18.1/dist/setup/setup ...
Warning: defaultUserHooks in Setup script is deprecated.
Configuring happy-1.18.1...
Preprocessing executables for happy-1.18.1...
setup: The program happy is required but it could not be found
cabal: Error: some packages failed to install:
happy-1.18.1 failed during the building phase. The exception was:
exit: ExitFailure 1

Change History

Changed 5 years ago by guest

Oh, I should have left my contact info: Jason Dagit, dagitj at gmail dot com.

Changed 5 years ago by guest

  • description modified (diff)

I'm trying to make the bug status more readable...

Changed 5 years ago by duncan

  • difficulty changed from normal to easy (<4 hours)
  • summary changed from setup: The program happy is required but it could not be found to target bindir should added to the build tool search path
  • component changed from cabal-install tool to Cabal library
  • version changed from 1.4.0.1 to HEAD
  • milestone set to Cabal-1.8

Ultimately the cause is that happy is not on the path. The directory that cabal-install installs binaries to is not on the path by default (see #289).

So there are two solutions, one is to find a solution to ticket #289. This needs doing anyway. The other is to always add the target bindir to the executable search path. That would make this situation work even if the user had configured cabal-install to install into a bindir that was not on the exe search path.

I'm renaming the ticket to match the solution.

Changed 5 years ago by duncan

Ah, I misread. The problem here is that that happy package is borked because it needs happy to be able to install it.

Changed 5 years ago by guest

It seems the real problem was that happy 1.18 is a broken package.

I worked around this problem by first installing happy 1.17 using the command:

cabal install happy-1.17

Then I did, cabal install upgrade, and happy 1.18 installed.

Changed 5 years ago by guest

  • status changed from new to closed
  • resolution set to invalid

Changed 17 months ago by elga

Changed 17 months ago by edouard

A l'image du RIB bancaire, un code RIO est un identifiant unique attribue a une ligne et a un contrat client permettant d'identifier son demande de portabilite vers un autre operateur.  virgin mobile

Note: See TracTickets for help on using tickets.