[p4ruby] install Mac OS 10.5

Andy Koch andy.koch at pc-doctor.com
Fri Aug 14 07:26:46 PDT 2009


Hi Tony,

Thank You!!!

I stared at your changes for a minute wondering what the difference was, then I saw the space.

Such a small thing makes such a difference.

All is now compiling properly.

----- Original Message -----
From: "Tony Smith" <tony at smee.org>
To: "Andy Koch" <andy.koch at pc-doctor.com>
Cc: "p4ruby" <p4ruby at perforce.com>
Sent: Friday, August 14, 2009 6:18:03 AM GMT -08:00 US/Canada Pacific
Subject: Re: [p4ruby] install Mac OS 10.5

Hi Andy,

Could you tell me which version of P4Ruby you're using? I'm able to 
build the 2009.1 P4Ruby on Leopard without seeing this issue (which 
looks like a simple shortage of a space in the command-line).

Assuming you're on 2009.1 too, if you make these small changes to the 
p4conf.rb script, I think that should solve the problem.

==== //depot/r09.1/p4-ruby/p4conf.rb#2 - 
/Users/tony/p4-dev/r09.1/p4-ruby/p4conf.rb ====
221,222c221,222
< 	    $CFLAGS += "-arch i386 " if( $p4osplat == "X86" )
< 	    $CFLAGS += "-arch ppc "  if( $p4osplat == "PPC" )
---
 > 	    $CFLAGS += " -arch i386 " if( $p4osplat == "X86" )
 > 	    $CFLAGS += " -arch ppc "  if( $p4osplat == "PPC" )
225,226c225,226
< 	    $LDFLAGS += "-arch i386 " if( $p4osplat == "X86" )
< 	    $LDFLAGS += "-arch ppc "  if( $p4osplat == "PPC" )
---
 > 	    $LDFLAGS += " -arch i386 " if( $p4osplat == "X86" )
 > 	    $LDFLAGS += " -arch ppc "  if( $p4osplat == "PPC" )

Rest assured that it does work on Mac OS - it's one of my main 
development platforms these days.

Regards,

Tony


Andy Koch wrote:
> Hello,
> 
> Is there a guide to installing p4ruby on mac os 10.5?
> 
> I've tried multiple variations but I consistently get errors.
> 
> I'm trying to install on a 3 day old MBPro with no luck.
> 
> Here is the output that I keep getting....
> 
> ************************
> 
> hst-26-147:p4ruby-2009.1 andy$ ruby p4conf.rb --apidir /Users/andy/Downloads/p4api-2009.1.205670/
> 
> Starting to configure P4/Ruby for building
> 
> Found 2009.1 Perforce API in /Users/andy/Downloads/p4api-2009.1.205670
> 
> P4/Ruby Configuration Summary
> -----------------------------
> 
> Using Perforce API Version: 2009.1
> API headers and libs from : /Users/andy/Downloads/p4api-2009.1.205670
> OS name                   : DARWIN
> OS version                : 9
> Platform                  : X86
> CFLAGS                    : -O2  -fno-common -pipe -fno-common $(cflags) -I/Users/andy/Downloads/p4api-2009.1.205670/include/p4 -fvisibility-inlines-hidden -arch i386 -DOS_DARWIN -DOS_DARWIN9 -DOS_DARWIN9X86 -DCASE_INSENSITIVE
> LIBPATH                   : /Users/andy/Downloads/p4api-2009.1.205670/lib
> libs                      : -lclient -lrpc -lsupp
> 
> Creating extconf.h
> creating Makefile
> hst-26-147:p4ruby-2009.1 andy$ make
> /usr/bin/g++-4.0 -bundle -o P4.bundle clientuserruby.o p4.o p4clientapi.o p4mapmaker.o p4mergedata.o p4result.o p4specdata.o specmgr.o -L/Users/andy/Downloads/p4api-2009.1.205670/lib -L. -L/opt/local/lib -L. -L/opt/local/lib-arch i386  -framework Carbon    -lruby -lclient -lrpc -lsupp  -lpthread -ldl -lobjc  
> i686-apple-darwin9-g++-4.0.1: i386: No such file or directory
> make: *** [P4.bundle] Error 1
> 
> ************************
> 
> 
> thanks
> 

-- 
Andy Koch, Web Applications Developer	
PC-Doctor, Inc.
9805 Double R Boulevard, Suite 301
Reno, NV 89521
775-336-4079
andy.koch at pc-doctor.com

CONFIDENTIALITY
The information contained in this message is confidential. It is intended to be read only by the individual or entity to whom it is addressed or by an authorized designee. If the reader of this message is not the intended recipient, be aware that distribution of this message in any form is strictly prohibited. If you have received this message in error, please immediately notify the sender and destroy any copy of this message.



More information about the p4ruby mailing list