buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Pietsch" <and...@pietschy.com>
Subject Re: Tests not working on Mac OS 10.4 PPC
Date Tue, 20 May 2008 05:27:04 GMT
>
> You'll need a more recent version of RubyGems, some features depend on it,
> so:
>
> sudo gem update --system
>
> You might also have to upgrade to Ruby 1.8.6, I'm not sure if 1.8.5 will
> work or not, in which case, check the script we link to (uses MacPorts or
> Fink):
>
> http://incubator.apache.org/buildr/getting_started.html#osx
>

Yep, my mistake.  I've installed a later version of ruby and all was going
well until rake tried to install rjb 1.1.2.

Installing #<Gem::Specification name=rjb version=1.1.2> ...
sudo env JAVA_HOME=/Library/Java/Home /usr/local/bin/ruby -S gem install rjb
-v 1.1.2
Bulk updating Gem source index for: http://gems.rubyforge.org/
Building native extensions. This could take a while...
ERROR: Error installing rjb:
        ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb install rjb -v 1.1.2
checking for jni.h... yes
checking for dl.h... yes
checking for locale_charset() in iconv.h... no
checking for nl_langinfo() in langinfo.h... no
checking for setlocale() in locale.h... no
checking for getenv()... no
creating extconf.h
creating Makefile

make
gcc -I. -I. -I/usr/local/lib/ruby/1.8/universal-darwin8.0 -I.
-I/Library/Java/Home/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -g
-O2 -fno-common -pipe -fno-common -I/Library/Java/Home/include -arch i386 -c
load.c
gcc -I. -I. -I/usr/local/lib/ruby/1.8/universal-darwin8.0 -I.
-I/Library/Java/Home/include -DRUBY_EXTCONF_H=\"extconf.h\" -fno-common -g
-O2 -fno-common -pipe -fno-common -I/Library/Java/Home/include -arch i386 -c
riconv.c
riconv.c: In function 'get_charcode_name_by_locale':
riconv.c:64: error: 'LOCALE_UTF8_TABLE' undeclared (first use in this
function)
riconv.c:64: error: (Each undeclared identifier is reported only once
riconv.c:64: error: for each function it appears in.)
riconv.c:66: error: 'LOCALE_EUC_TABLE' undeclared (first use in this
function)
riconv.c:68: error: 'LOCALE_SJIS_TABLE' undeclared (first use in this
function)
make: *** [riconv.o] Error 1


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/rjb-1.1.2 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.8/gems/rjb-1.1.2/ext/gem_make.out
rake aborted!
Command failed with status (1): [sudo env JAVA_HOME=/Library/Java/Home
/usr...]


I think I'm stuck. buildr doesn't run at all now and rjb version 1.1.0
through to 1.1.2 fail to install manually. In searching the user lists it
seems this problem has been encountered on windows. Is there a known
workaround for the Mac?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message