Re: [Gtk2hs-users] Problem when installing gtk2hs.

I only have one alex installed under ~/.cabal/bin.
It seems working with shell environment, but not cabal.
On Thu, May 27, 2010 at 1:40 PM, Axel Simon
Hi Magicloud,
On May 27, 2010, at 4:11, Magicloud Magiclouds wrote:
Hi, I have met similar problem before, and I do not know what to do.
# cabal install --reinstall gtk2hs-buildtools Resolving dependencies... Configuring gtk2hs-buildtools-0.9... cabal: alex is required but it could not be found. cabal: Error: some packages failed to install: gtk2hs-buildtools-0.9 failed during the configure step. The exception was: ExitFailure 1 # alex -v Alex version 2.3.3, (c) 2003 Chris Dornan and Simon Marlow
I don't think this is due to us. Are there perhaps other alex installations on your path? Or in ~/.cabal/bin?
Axel
-- 竹密岂妨流水过 山高哪阻野云飞
------------------------------------------------------------------------------
_______________________________________________ Gtk2hs-users mailing list Gtk2hs-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-users
-- 竹密岂妨流水过 山高哪阻野云飞

On 27 May 2010 16:46, Magicloud Magiclouds
I only have one alex installed under ~/.cabal/bin. It seems working with shell environment, but not cabal.
This sounds like a similar problem to one that occurred a couple of months ago. If you use "~/.cabal/bin/" for your PATH variable, try replacing that with "$HOME/.cabal/bin/".
On Thu, May 27, 2010 at 1:40 PM, Axel Simon
wrote: Hi Magicloud,
On May 27, 2010, at 4:11, Magicloud Magiclouds wrote:
Hi, I have met similar problem before, and I do not know what to do.
# cabal install --reinstall gtk2hs-buildtools Resolving dependencies... Configuring gtk2hs-buildtools-0.9... cabal: alex is required but it could not be found. cabal: Error: some packages failed to install: gtk2hs-buildtools-0.9 failed during the configure step. The exception was: ExitFailure 1 # alex -v Alex version 2.3.3, (c) 2003 Chris Dornan and Simon Marlow
I don't think this is due to us. Are there perhaps other alex installations on your path? Or in ~/.cabal/bin?
Axel
-- 竹密岂妨流水过 山高哪阻野云飞
------------------------------------------------------------------------------
_______________________________________________ Gtk2hs-users mailing list Gtk2hs-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-users
-- 竹密岂妨流水过 山高哪阻野云飞 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

That might be it. However, I linked ~/.cabal/bin/* to
/usr/local/bin.... And it worked.
On Thu, May 27, 2010 at 3:24 PM, Ivan Miljenovic
On 27 May 2010 16:46, Magicloud Magiclouds
wrote: I only have one alex installed under ~/.cabal/bin. It seems working with shell environment, but not cabal.
This sounds like a similar problem to one that occurred a couple of months ago.
If you use "~/.cabal/bin/" for your PATH variable, try replacing that with "$HOME/.cabal/bin/".
On Thu, May 27, 2010 at 1:40 PM, Axel Simon
wrote: Hi Magicloud,
On May 27, 2010, at 4:11, Magicloud Magiclouds wrote:
Hi, I have met similar problem before, and I do not know what to do.
# cabal install --reinstall gtk2hs-buildtools Resolving dependencies... Configuring gtk2hs-buildtools-0.9... cabal: alex is required but it could not be found. cabal: Error: some packages failed to install: gtk2hs-buildtools-0.9 failed during the configure step. The exception was: ExitFailure 1 # alex -v Alex version 2.3.3, (c) 2003 Chris Dornan and Simon Marlow
I don't think this is due to us. Are there perhaps other alex installations on your path? Or in ~/.cabal/bin?
Axel
-- 竹密岂妨流水过 山高哪阻野云飞
------------------------------------------------------------------------------
_______________________________________________ Gtk2hs-users mailing list Gtk2hs-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-users
-- 竹密岂妨流水过 山高哪阻野云飞 _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
-- 竹密岂妨流水过 山高哪阻野云飞

On Thursday 27 May 2010 08:46:04, Magicloud Magiclouds wrote:
I only have one alex installed under ~/.cabal/bin. It seems working with shell environment, but not cabal.
My guess: You added ~/.cabal/bin to the path, but have quoted the path, like export PATH="~/.cabal/bin:$PATH" in your .bashrc That does not work. Tilde expansion is *not* done for quoted strings, so cabal looks (among other places) for "~/.cabal/bin/alex". Now, there is no directory "~" in your file system, so alex is not found. Check: $ printenv PATH If the output contains ~, it won't work. If it doesn't, well then something else must be broken. Fixes 1) don't quote the path, export PATH=~/.cabal/bin:$PATH works. 2) (better) Use $HOME instead of ~ (works quoted or unquoted) 3) write out your home directory completely

On May 27, 2010, at 02:46 , Magicloud Magiclouds wrote:
I only have one alex installed under ~/.cabal/bin. It seems working with shell environment, but not cabal.
But you're doing the Cabal install as root, so it's likely using / root/.cabal/bin instead of your home directory. Or possibly doing a global install which would ignore ~/.cabal. Better would be a global install of tools like Alex. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
participants (4)
-
Brandon S. Allbery KF8NH
-
Daniel Fischer
-
Ivan Miljenovic
-
Magicloud Magiclouds