Simon Marlow wrote:
Christian Maeder wrote:
#!/bin/sh
reldir=`dirname $0`
topdir=`(cd $reldir; pwd)`
There's no guarantee that $0 holds anything reasonable: you can set $0
to whatever you like when calling exec*().
The above script simply does not work, if it is linked to from another
Ian Lynagh wrote:
On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote:
Is there a way for GHC on OS X to find where it was run from, so that it
can find package.conf?
The command:
ghc --print-libdir
should do it.
But the way that knows what to print on unix machines is that ghc is
Manuel M T Chakravarty wrote:
this year are discharged (ie, in about two weeks). Secondly, the really
unsatisfactory thing about frameworks for readline and gmp is that it
entails that programs compiled with GHC will also depend on at least the
GMP framework.
I'd really like to have a
Christian Maeder wrote:
Ian Lynagh wrote:
On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote:
Is there a way for GHC on OS X to find where it was run from, so that it
can find package.conf?
The command:
ghc --print-libdir
should do it.
But the way that knows what to print on unix
Simon Marlow wrote:
Christian Maeder wrote:
Ian Lynagh wrote:
On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote:
Is there a way for GHC on OS X to find where it was run from, so
that it
can find package.conf?
The command:
ghc --print-libdir
should do it.
But the way that knows
On Nov 19, 2007 10:35 AM, Simon Marlow [EMAIL PROTECTED] wrote:
pwd gives you the directory that the script was invoked *from*, not the
directory in which the script resides. This is a common problem on Unix:
there's no general way to find out the location of a binary.
Well, you can always
On Nov 19, 2007 10:51 AM, Alfonso Acosta [EMAIL PROTECTED] wrote:
Well, you can always combine the first argument of the script ($0) for
absolute paths and combine it with with pwd for relative ones.
I meant _use_ the first argument of the script ($0) for absolute paths
and combine it with pwd
Alfonso Acosta wrote:
On Nov 19, 2007 10:51 AM, Alfonso Acosta [EMAIL PROTECTED] wrote:
Well, you can always combine the first argument of the script ($0) for
absolute paths and combine it with with pwd for relative ones.
I meant _use_ the first argument of the script ($0) for absolute paths
Christian Maeder wrote:
Alfonso Acosta wrote:
On Nov 19, 2007 10:51 AM, Alfonso Acosta [EMAIL PROTECTED] wrote:
Well, you can always combine the first argument of the script ($0) for
absolute paths and combine it with with pwd for relative ones.
I meant _use_ the first argument of the script
Simon, as usual, is right. It's been quite a while since I last
seriously coded in C. From the exec* man page:
The first argument, *by convention*, should point to the file name
associated with the file being executed.
However, if nothing better is found I guess it's better to rely on an
An additional sanity check of topdir makes sense then.
Christian
Alfonso Acosta wrote:
Simon, as usual, is right. It's been quite a while since I last
seriously coded in C. From the exec* man page:
The first argument, *by convention*, should point to the file name
associated with the file
Chakravarty [EMAIL PROTECTED]; GHC List
glasgow-haskell-users@haskell.org
Sent: Monday, November 19, 2007 9:35 AM
Subject: Re: GHC 6.8.1 on Mac OS X 10.5 (Leopard)
Christian Maeder wrote:
Ian Lynagh wrote:
On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote:
Is there a way for GHC on OS X
If you want to get the path to the main executable on Mac OS X, use
_NSGetExecutablePath. See:
man 3 dyld
Deborah
On Nov 19, 2007, at 4:07 AM, Christian Maeder wrote:
An additional sanity check of topdir makes sense then.
Christian
Alfonso Acosta wrote:
Simon, as usual, is right. It's
Deborah Goldsmith wrote,
If you want to get the path to the main executable on Mac OS X, use
_NSGetExecutablePath. See:
man 3 dyld
That's exactly what we need. The man page is on the web for those
without a mac:
Christian Maeder:
Manuel M T Chakravarty wrote:
I wasn't expecting any backwards compatibility from Leopard-built
software to Tiger, but then I am also a Mac-noob and maybe there are
ways to achieve that that I don't know of. Any suggestions?
Could you, or someone else with Leopard, check if
Christian Maeder:
Manuel M T Chakravarty wrote:
What we really need is a proper .mpkg
How about a simple disk image (.dmg) that can be moved
around as long as the relative paths within the image remain the same?
This would require to allow relative paths in package.conf files
(which
would
On Fri, Nov 16, 2007 at 11:15:08AM +0100, Christian Maeder wrote:
This would require to allow relative paths in package.conf files (which
would be useful, anyway). The wrapper scripts for ghc, ghci and ghc-pkg
could be easily rewritten.
I'm not sure if ranlib needs to be called, whenever
Ian,
Is there a way for GHC on OS X to find where it was run from, so that it
can find package.conf?
The command:
ghc --print-libdir
should do it.
Cheers,
Chris.
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
On Sat, Nov 17, 2007 at 03:02:55PM +, C.M.Brown wrote:
Is there a way for GHC on OS X to find where it was run from, so that it
can find package.conf?
The command:
ghc --print-libdir
should do it.
But the way that knows what to print on unix machines is that ghc is a
shell
Manuel M T Chakravarty wrote:
What we really need is a proper .mpkg
How about a simple disk image (.dmg) that can be moved
around as long as the relative paths within the image remain the same?
This would require to allow relative paths in package.conf files (which
would be useful, anyway). The
Manuel M T Chakravarty wrote:
I wasn't expecting any backwards compatibility from Leopard-built
software to Tiger, but then I am also a Mac-noob and maybe there are
ways to achieve that that I don't know of. Any suggestions?
Could you, or someone else with Leopard, check if my Tiger binary
On Nov 6, 2007, at 4:06 PM, Manuel M T Chakravarty wrote:
I wasn't expecting any backwards compatibility from Leopard-built
software to Tiger, but then I am also a Mac-noob and maybe there are
ways to achieve that that I don't know of. Any suggestions?
Sorry, I missed this the first time
Benedikt,
Manuel M T Chakravarty wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard)
is available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
Thanks, it's great you provided a binary distribution, especially
since macports' ghc
On Tue, Nov 06, 2007 at 05:29:05PM +1100, Manuel M T Chakravarty wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is
available
Thanks Manuel! I've put it on the download page.
Ian
___
Glasgow-haskell-users mailing list
Manuel M T Chakravarty wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard)
is available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
Thanks, it's great you provided a binary distribution, especially
since macports' ghc seems
Don Stewart wrote:
It seems 10.5/PPC/6.8 is currently a lethal combination. (not x86
though, nor 10.4/ppc).
Here's the ticket, add yourself to the CC list.
http://hackage.haskell.org/trac/ghc/ticket/1843
We need a Mac hero (or heroes) who can diagnose and fix this problem. Any
takers?
On Nov 8, 2007, at 2:17 PM, Simon Marlow wrote:
We need a Mac hero (or heroes) who can diagnose and fix this
problem. Any takers? You stand to earn the gratitude of the Mac/
GHC community!
My PPC Mac is thousands of miles away but if anyone can give me SSH
access to their PPC/Leopard
On Nov 6, 2007, at 12:43 PM, Christian Maeder wrote:
I've tried to install your package, but already configure failed with:
I successfully installed this package a few times on the same machine.
--
http://wagerlabs.com
___
Joel Reymont wrote:
On Nov 6, 2007, at 12:43 PM, Christian Maeder wrote:
I've tried to install your package, but already configure failed with:
I successfully installed this package a few times on the same machine.
My failure was on a Tiger and your success with Leopard.
C.
You do not perchance have one for powerpc, do you? I attempted to
bootstrap from GHC 6.6.1, but I keep getting errors about Illegal
Instructions,
Try to force
./configure --build=powerpc-mac-darwin
or whatever is appropriate under MacOS ---
without it, ./configure will identify the
Brian P. O'Hanlon wrote:
On Nov 6, 2007 1:29 AM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is
available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
You do not perchance have
On Nov 6, 2007 1:29 AM, Manuel M T Chakravarty [EMAIL PROTECTED] wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is
available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
You do not perchance have one for powerpc, do you? I
Christian Maeder:
Manuel M T Chakravarty wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard)
is
available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
The name of a binary distribution for Mac OS X 10.4 (Tiger) would
[EMAIL PROTECTED]:
Brian P. O'Hanlon wrote:
On Nov 6, 2007 1:29 AM, Manuel M T Chakravarty
[EMAIL PROTECTED] wrote:
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5
(Leopard) is
available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
You do
A full binary distribution of GHC 6.8.1 for Mac OS X 10.5 (Leopard) is
available from
http://www.cse.unsw.edu.au/~chak/haskell/ghc-6.8.1-i386-apple-darwin.tar.bz2
To use it, you need two other pieces of software installed:
Xcode 3.0-- as available from the Leopard upgrade/install DVD
35 matches
Mail list logo