Re: 10.2.x, perl 5.6.1, gcc3.1? Works!

2003-04-01 Thread Ken Williams
On Monday, March 31, 2003, at 10:59  PM, Michael Glaesemann wrote:

In short, it works! Read on below for details.

On Tuesday, Apr 1, 2003, at 01:22 Asia/Tokyo, John Gruber wrote:

I just went through this last night. :^)
Good to know I'm in such illustrious company! (I frequent 
DaringFireball--really enjoy it!)

What happens if you type which gcc2 at a command prompt? The
machine I was working on had a clean install of 10.2, an upgrade to
10.2.4, and the latest developer tools. (You have installed the
developer tools, right?)
Yup. Right after the install. And which gcc2 informed me that I do 
indeed have gcc2 right where you said it should be! /usr/bin/gcc2
By the way, I think the right way to use gcc2 is to use the 
'gcc_select' command.  Do gcc_select -h in the shell and you can see 
how to use it.  sudo gcc_select 2 will then switch you into 2-land.

I think all it does is shuffle some symlinks around, but presumably it 
does it correctly.  I'm not sure whether gcc2 is usable as just 
/usr/bin/gcc2 when gcc3 is installed.

 -Ken



10.2.x, perl 5.6.1, gcc3.1?

2003-03-31 Thread Michael Glaesemann
Hello! I'm trying to install perl 5.6.1 on my Mac running 10.2.x (right 
now it's 10.2.1, but that will change in a couple of hours, when I 
should be back up to 10.2.4), but there seems to be an incompatibility 
between perl 5.6.1 and the gcc3.1 compiler that comes with the December 
2002 Developer Tools. I keep getting
make: *** No rule to make target `built-in', needed by 
`miniperlmain.o'.  Stop.

I've been following the instructions posted by Ray Zimmerman
http://archive.develooper.com/[EMAIL PROTECTED]/msg00895.html
and David Wheeler http://david.wheeler.net/osx.html
with the variation to use the gcc2 compiler
http://archive.develooper.com/[EMAIL PROTECTED]/msg03679.html
(exact same no rule to make target error back in October 2002.)
but of course that didn't work because I don't have a gcc2 compiler. 
I'd rather not install a gcc2 compiler because I've heard of other 
incompatibilities with binaries compiled under the two different 
compilers.

Searching for perl 5.6.1 and gcc3.1 under google brought me to a 
posted patch for linux.
 http://archive.develooper.com/[EMAIL PROTECTED]/msg84893.html
It appears the Ken William's fink installation includes a similar patch.
 http://archive.develooper.com/[EMAIL PROTECTED]/msg04611.html
I'd rather compile it myself and keep it in it's own directories 
parallel to the 5.6.0 installation.

Is there a way I can use the patch supplied with the Ken William's fink 
installation during my own compile? If so, where I can look to find how 
to do this? Or maybe there's a way to modify the fink installation to 
install where I'd like it to?

Thanks in advance for any advice or pointers of where to look for more 
information.

Michael Glaesemann
grzm myrealbox com


Re: 10.2.x, perl 5.6.1, gcc3.1?

2003-03-31 Thread John Gruber
Michael Glaesemann [EMAIL PROTECTED] wrote on 3/31/03 at 11:25p:

 Hello! I'm trying to install perl 5.6.1 on my Mac running 10.2.x

I just went through this last night. :^)


 I keep getting
  make: *** No rule to make target `built-in', needed by 
 `miniperlmain.o'.  Stop.

Yup.


 I've been following the instructions posted by Ray Zimmerman
 http://archive.develooper.com/[EMAIL PROTECTED]/msg00895.html
 and David Wheeler http://david.wheeler.net/osx.html
 with the variation to use the gcc2 compiler
 http://archive.develooper.com/[EMAIL PROTECTED]/msg03679.html
 (exact same no rule to make target error back in October 2002.)
 but of course that didn't work because I don't have a gcc2 compiler. 

Are you sure you don't? You should have gcc2 here:

/usr/bin/gcc2

What happens if you type which gcc2 at a command prompt? The
machine I was working on had a clean install of 10.2, an upgrade to
10.2.4, and the latest developer tools. (You have installed the
developer tools, right?)

I got 5.6.1 to install cleanly (where by cleanly, I mean with the
small handful of known test failures mentioned in the above
articles).

As per the aforementioned message to this list from Errol
Lewthwaite, all I needed to do was follow these instructions:

http://duke.usask.ca/~dalglb/macosx/Perl_5.6.html

*and* add -Dcc=gcc2 to the Configure switches:

sudo sh Configure -des -Dfirstmakefile=GNUmakefile \
-Dldflags=-flat_namespace -Dcc=gcc2

Hope this helps.

-- 
John Gruber |   Daring Fireball: Mac Punditry and Curmudgeonry
[EMAIL PROTECTED]   |http://daringfireball.net