Opened 12 years ago
Closed 11 years ago
#37229 closed defect (invalid)
hs-cabal path and config file
Reported by: | yusuhail@… | Owned by: | gwright@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.2 |
Keywords: | Cc: | neverpanic (Clemens Lang) | |
Port: | hs-cabal-install |
Description
I just installed the hs-cabal port.
- It installed a file cabal-0.14.0 in /opt/local/bin. Shouldn't the executable be called just cabal?
- I tried to install
$ cabal-0.14.0 install git-annex --bindir=$HOME/bin Config file path source is default config file. Config file /Users/name/.cabal/config not found. Writing default configuration to /Users/name/.cabal/config Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal update' to download it. cabal-0.14.0: There is no package named 'git-annex'. You may need to run 'cabal update' to get the latest list of available packages.
So I try to update the packages.
$ cabal-0.14.0 update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
So I try to install cabal-install
$ cabal-0.14.0 install cabal-install Resolving dependencies... Downloading Cabal-1.16.0.3... ... (a lot of lines) Linking dist/build/cabal/cabal ... Installing executable(s) in /Users/name/.cabal/bin
Now I have two executables, one at /opt/local/bin/cabal-0.14.0, and the other at $HOME/.cabal/bin/cabal. Which one should I use? Is there something wrong with the way the paths are configured in the port, or am I doing something wrong?
Change History (2)
comment:1 Changed 12 years ago by mf2k (Frank Schima)
Keywords: | config path removed |
---|---|
Owner: | changed from macports-tickets@… to gwright@… |
comment:2 Changed 11 years ago by neverpanic (Clemens Lang)
Cc: | cal@… added |
---|---|
Port: | hs-cabal-install added; hs-cabal removed |
Resolution: | → invalid |
Status: | new → closed |
I think this ticket is obsolete since the switch to the hs-cabal-install
port, which actually provides /opt/local/bin/cabal
. Please do not use cabal's built-in method to update it, but rather file a bug and have it updated in MacPorts, if that happens again. MacPorts does not use cabal to install haskell software in /opt/local
.
Note: See
TracTickets for help on using
tickets.
In the future, please Cc the port maintainer(s).