Hi Matt, thanks for your reply. The re2 gem didn't install under MacRuby, but will install under MRI 1.9.2..
Password: Building native extensions. This could take a while... ERROR: Error installing re2: ERROR: Failed to build gem native extension. /Library/Frameworks/MacRuby.framework/Versions/0.10/usr/bin/macruby extconf.rb checking for main() in -lstdc++... yes checking for main() in -lre2... yes creating Makefile make /usr/bin/g++ -I. -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/universal-darwin10.0 -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2/ruby/backward -I/Library/Frameworks/MacRuby.framework/Versions/0.10/usr/include/ruby-1.9.2 -I. -I/usr/local/include -fno-common -arch x86_64 -fexceptions -fno-common -pipe -O3 -g -Wall -Wall -Wextra -funroll-loops -arch x86_64 -arch x86_64 -o re2.o -c re2.cc re2.cc: In function ‘void re2_matchdata_mark(re2_matchdata*)’: re2.cc:45: error: ‘rb_gc_mark’ was not declared in this scope re2.cc: In function ‘VALUE re2_Replace(VALUE, VALUE, VALUE, VALUE)’: re2.cc:933: error: invalid conversion from ‘const void*’ to ‘void*’ re2.cc:933: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ re2.cc: In function ‘VALUE re2_GlobalReplace(VALUE, VALUE, VALUE, VALUE)’: re2.cc:983: error: invalid conversion from ‘const void*’ to ‘void*’ re2.cc:983: error: initializing argument 1 of ‘void* memcpy(void*, const void*, size_t)’ make: *** [re2.o] Error 1 On Thu, Aug 18, 2011 at 12:22 PM, Matt Aimonetti <mattaimone...@gmail.com>wrote: > Have you tried re2? MacRuby supports a great number of C extensions. > > - Matt > > Sent from my iPhone > > On Aug 18, 2011, at 8:14, Jeremy Smith <xpe...@gmail.com> wrote: > > > I now I can't use re2 because it is a C based gem, but is there any way > to support named capture groups in MacRuby? It is a pretty necessary > component of my project, and not having it is forcing me to look for > solutions like running my gem as a service, or compiling it using Rubinius. > I'd rather there was a workaround! :) > > > > Thanks, > > Jeremy > > _______________________________________________ > > MacRuby-devel mailing list > > MacRuby-devel@lists.macosforge.org > > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel > _______________________________________________ > MacRuby-devel mailing list > MacRuby-devel@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel >
_______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel