|
List Info
Thread: How to bump the API version?
|
|
| How to bump the API version? |

|
2006-11-03 14:18:30 |
|
I've rebuilt p4ruby using the 2006.1 p4Api, but it still complains that I need to upgrade to 2004.2 when I try to access tickets. What's up? I noticed the problem when I was running the script on our build server and it complained that P4PASSWD was invalid or unset, which it isn't. (All other p4 commands work)
/axl
Here's the
p4conf.rb output:
C:Workwsp4ruby-main-axl>ruby
p4conf.rb --apidir C:Workwsuser-axlp4api Starting
to configure P4/Ruby for building
P4/Ruby
Configuration Summary ----------------------------- Using
Perforce API Version: 2006.1 API
headers and libs from : C:/Work/ws/user-axl/p4api OS name
: NT OS version
: Platform : X86 CFLAGS : -MD -Zi -O2b2xg- -G6
-IC:/Work/ws/user-axl/p4api -DOS_NT
-DOS_NT -DOS_NTX86 /DCASE_INSENSITIVE /MT -Dconst_char="const char" LIBPATH :
$(libdir):C:/Work/ws/user-axl/p4api libs : libclient.lib
librpc.lib libsupp.lib libcmt.lib oldnames.lib
kernel32.lib wsock32.lib advapi32.lib
Creating
extconf.h creating
Makefile
And here's
the p4.rb test output:
irb(main):001:0> require 'P4' => true irb(main):002:0>
p4 = P4.new =>
#<P4:0x28b9d20> irb(main):003:0>
p4.connect =>
true irb(main):004:0>
p4.run_tickets P4Exception:
[P4#run] Warnings during command execution( "p4 tickets" ) [Warning]: Must upgrade to 2004.2 p4 to
access tickets.
from
C:/Work/ws/common-main-axl/Bin/Ruby/lib/ruby/site_ruby/1.8/P4.rb:131:in
`run' from
C:/Work/ws/common-main-axl/Bin/Ruby/lib/ruby/site_ruby/1.8/P4.rb:131:in
`method_missing' from (irb):4 And to make sure the right version was loaded: irb(main):010:0> puts P4.identify
P4/Ruby Build Summary:
Author : Tony Smith < tony smee.org">tony smee.org> or < tony perforce.com">tony perforce.com>
Version : 1.5693 Perforce API Version : 2006.1
CFLAGS : -MD -Zi -O2b2xg- -G6 -IC:/Work/ws/user-axl/p4api -DOS
_NT -DOS_NT -DOS_NTX86 /DCASE_INSENSITIVE /MT -Dconst_char="const char" LIBS : libclient.lib
librpc.lib libsupp.lib libcmt.lib oldnames.lib kernel32.lib wsock32.lib advapi32.lib
LIBPATH : $(libdir):C:/Work/ws/user-axl/p4api
=> nil
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|