[p4ruby] install Mac OS 10.5

Tony Smith tony at smee.org
Fri Aug 14 06:18:03 PDT 2009


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
> 



More information about the p4ruby mailing list