I am trying to compile scipy from svn 2156 on my powerbook OS X 10.3. I have gcc 3.3 installed but apparently no g77, g95 or f95. When I try and compile, I get the error since it can't find a fortran compiler. Before I go down a false path compiling a new gcc/g77, I was wondering if anybody had a recommendation for a binary g77 that I can get that is compatible with my gcc, or alternatively, what the path of least resistance is for me to get a compiler for this platform that can compile scipy. John-Hunters-Computer:~/python/svn/scipy> gcc --version gcc (GCC) 3.3 20030304 (Apple Computer, Inc. build 1495)
Hi John,
Before I go down a false path compiling a new gcc/g77, I was wondering if anybody had a recommendation for a binary g77 that I can get that is compatible with my gcc, or alternatively, what the path of least resistance is for me to get a compiler for this platform that can compile scipy.
A long time ago I stumbled upon this installation howto for macs ... it's quite handy. http://bmistudents.blogspot.com/2006/04/on-installation-of-proper- python.html The person there recommends this method to grab a fortran compiler for PPC macs: curl -O http://easynews.dl.sourceforge.net/sourceforge/hpc/g77v3.4- bin.tar.gz sudo tar -C / -xzf g77v3.4-bin.tar.gz HTH, -steve
On Sat, Aug 12, 2006 at 11:42:54AM -0500, John Hunter wrote:
I am trying to compile scipy from svn 2156 on my powerbook OS X 10.3. I have gcc 3.3 installed but apparently no g77, g95 or f95. When I try and compile, I get the error since it can't find a fortran compiler.
Before I go down a false path compiling a new gcc/g77, I was wondering if anybody had a recommendation for a binary g77 that I can get that is compatible with my gcc, or alternatively, what the path of least resistance is for me to get a compiler for this platform that can compile scipy.
http://hpc.sourceforget.net/ has g77. Or, use darwinports or fink. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
"David" == David M Cooke <cookedm@physics.mcmaster.ca> writes:
David> http://hpc.sourceforget.net/ has g77. I spent a little time at this site before posting -- it seems their g77 was compiled for 3.4 and Tiger. David> Or, use darwinports or fink. Been there, done that, not going back. Unfortunately I have a lot of stuff I've already compiled for my python install, so I'm not too keen on changing horses mid-stream with another compiler version or python distro. May end up having to do that eventually, but I'd like to avoid it. JDH
John Hunter wrote:
"David" == David M Cooke <cookedm@physics.mcmaster.ca> writes:
David> http://hpc.sourceforget.net/ has g77.
I spent a little time at this site before posting -- it seems their g77 was compiled for 3.4 and Tiger.
Well, you do have to use g77 3.4 on OS X. 3.3 was hideously broken. It works fine with gcc 3.3. Finding a Panther-compatible build might be a little difficult.
David> Or, use darwinports or fink.
Been there, done that, not going back.
Unfortunately I have a lot of stuff I've already compiled for my python install, so I'm not too keen on changing horses mid-stream with another compiler version or python distro. May end up having to do that eventually, but I'd like to avoid it.
However, installing just g77 from darwinports wouldn't make you change horses for anything else. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
On Sat, Aug 12, 2006 at 11:54:08AM -0700, Robert Kern wrote:
John Hunter wrote:
> "David" == David M Cooke <cookedm@physics.mcmaster.ca> writes:
David> http://hpc.sourceforget.net/ has g77.
I spent a little time at this site before posting -- it seems their g77 was compiled for 3.4 and Tiger.
Well, you do have to use g77 3.4 on OS X. 3.3 was hideously broken. It works fine with gcc 3.3. Finding a Panther-compatible build might be a little difficult.
On PowerPC. For the Intel Macs, you're pretty much stuck with using the 4.2 prerelease of gfortran (from what I've read, and my own experiences with trying to get previous versions to compile). (I haven't tried g95 yet.) -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
David M. Cooke wrote:
On Sat, Aug 12, 2006 at 11:54:08AM -0700, Robert Kern wrote:
John Hunter wrote:
>> "David" == David M Cooke <cookedm@physics.mcmaster.ca> writes: >> David> http://hpc.sourceforget.net/ has g77.
I spent a little time at this site before posting -- it seems their g77 was compiled for 3.4 and Tiger.
Well, you do have to use g77 3.4 on OS X. 3.3 was hideously broken. It works fine with gcc 3.3. Finding a Panther-compatible build might be a little difficult.
On PowerPC. For the Intel Macs, you're pretty much stuck with using the 4.2 prerelease of gfortran (from what I've read, and my own experiences with trying to get previous versions to compile).
Does the 4.2 pre-release of gfortran work to compile SciPy on Intel Macs? The only way I've gotten things to work on the Intel Mac is to use g95. -Travis
On Sat, Aug 12, 2006 at 01:58:57PM -0600, Travis Oliphant wrote:
David M. Cooke wrote:
On Sat, Aug 12, 2006 at 11:54:08AM -0700, Robert Kern wrote:
John Hunter wrote:
>>> "David" == David M Cooke <cookedm@physics.mcmaster.ca> writes: >>> David> http://hpc.sourceforget.net/ has g77.
I spent a little time at this site before posting -- it seems their g77 was compiled for 3.4 and Tiger.
Well, you do have to use g77 3.4 on OS X. 3.3 was hideously broken. It works fine with gcc 3.3. Finding a Panther-compatible build might be a little difficult.
On PowerPC. For the Intel Macs, you're pretty much stuck with using the 4.2 prerelease of gfortran (from what I've read, and my own experiences with trying to get previous versions to compile).
Does the 4.2 pre-release of gfortran work to compile SciPy on Intel Macs? The only way I've gotten things to work on the Intel Mac is to use g95.
Seems to work (passes the unit tests, at least). I used darwinports, but I had to update the Portfiles for gcc42 and odcctools to use more recent versions. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
On Sat, Aug 12, 2006 at 01:26:03PM -0500, John Hunter wrote:
"David" == David M Cooke <cookedm@physics.mcmaster.ca> writes:
David> http://hpc.sourceforget.net/ has g77.
I spent a little time at this site before posting -- it seems their g77 was compiled for 3.4 and Tiger.
Hmm, the g77 3.4 there says it's for Panther/Tiger. Compiling your own isn't that hard, actually. 3.4.6 takes about 2 hours to compile on my 800 MHz iBook (4.x takes about 6 hours :() # download from http://gcc.gnu.org/releases.html $ tar zxvf gcc-3.4.6.tar.gz $ mkdir build-gcc $ cd build-gcc $ ../gcc-3.4.6/configure --prefix=/somewhere --enable-languages=c,c++,f77,java,objc $ make # wait a while $ sudo make install -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |cookedm@physics.mcmaster.ca
"David" == David M Cooke <cookedm@physics.mcmaster.ca> writes:
David> Compiling your own isn't that hard, actually. 3.4.6 takes David> about 2 hours to compile on my 800 MHz iBook (4.x takes David> about 6 hours :() David> # download from http://gcc.gnu.org/releases.html $ tar zxvf David> gcc-3.4.6.tar.gz $ mkdir build-gcc $ cd build-gcc $ David> ../gcc-3.4.6/configure --prefix=/somewhere David> --enable-languages=c,c++,f77,java,objc $ make # wait a David> while $ sudo make install The binary g77 for 3.4 worked fine on my platform; as Robert pointed out it is compatible with gcc-3.3 and panther did not cause any problems either. Thanks for all the suggestions! JDH
participants (5)
-
David M. Cooke -
John Hunter -
Robert Kern -
Steve Lianoglou -
Travis Oliphant