[Haskell-iPhone] Arm cabal

Casey Basichis caseybasichis at gmail.com
Tue Dec 25 07:52:28 CET 2012


Hi Luke,

Thanks for the reply.

I did make a separate env.sh with the info from the wiki, though a
different filename is definitely a good idea.

I've echoed back all of the variables after running the script and they are
all reading correctly except Im not sure about path.  I've run that script
quite a few time in trying to get this running and I fear it may have made
my path insanely huge.

/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/libraries/Cabal/Cabal/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/Users/caseybasichis/.cabal/bin:/usr/local/ghc-iphone/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/bin:/usr/local/ghc-iphone/bin/:/Users/caseybasichis/Documents/Programming/Frameworks/Haskell/ghc/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin

Best,
Casey


On Mon, Dec 24, 2012 at 10:41 PM, lukexi <lukexi at me.com> wrote:

> Hi Casey!
>
> The wiki's a bit confusing on this but there are actually two env.sh
> scripts you need — one for the GHC config (and which lives in the git
> repository for ghc-ios) and one for the Cabal config, which is only
> described on the wiki page (in the "More advanced stuff — Using Cabal"
> section) and would be better called "cabalEnv.sh" or some such (and might
> as well be added to the repository).
>
> Anyway, just making sure that's clear to see if it helps your issue (since
> it sounds like /usr/local/ghc-iphone/bin isn't taking precedence in your
> PATH, which the above should take care of).
>
> Cheers!
> Luke
>
> On Dec 24, 2012, at 9:55 PM, Casey Basichis <caseybasichis at gmail.com>
> wrote:
>
> Hi,
>
> I've been trying to get the iOS cabal running with no success.  I do have
> GHC running on iOS otherwise.
>
> Here is some information.  I installed the GHC-IOS haskell.  Later I
> installed the Haskell Platform for working on the system (in case that
> could be the cause).  I have run the cabal install commands (I pretty much
> always have to add sudo to get any of these commands working).
>
> During the install of the modified cabal I get a law of rawSystemExit's
> but it seems to install.  I run the the env.sh (with the build dir set to
> my own) and try installing a package.
>
> One time it seemed to work:
> runOutput /usr/local/ghc-iphone/bin/arm-apple-darwin10-ghc ["--info"] etc
>
> every attempt since gives me this kind of path
>
> runOutput /usr/bin/ghc ["--info"]
>
> any idea how I can get cabal running for iOS?
>
> Thanks,
> Casey
>
> merry xmas!
>
> --
> Casey James Basichis
> Composer - Cartoon Network
> http://www.caseyjamesbasichis.com
> caseybasichis at gmail.com
> 310.387.7540
> _______________________________________________
> iPhone mailing list
> iPhone at haskell.org
> http://www.haskell.org/mailman/listinfo/iphone
>
>
>


-- 
Casey James Basichis
Composer - Cartoon Network
http://www.caseyjamesbasichis.com
caseybasichis at gmail.com
310.387.7540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/iphone/attachments/20121224/32b91f10/attachment.htm>


More information about the iPhone mailing list