[MacPorts] #37229: hs-cabal path and config file
MacPorts
noreply at macports.org
Thu Dec 6 12:01:35 PST 2012
#37229: hs-cabal path and config file
--------------------------+--------------------------------
Reporter: yusuhail@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.1.2
Keywords: config; path | Port: hs-cabal
--------------------------+--------------------------------
I just installed the hs-cabal port.
1. It installed a file cabal-0.14.0 in /opt/local/bin. Shouldn't the
executable be called just cabal?
2. 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?
--
Ticket URL: <https://trac.macports.org/ticket/37229>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list