buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Assaf Arkin" <ar...@intalio.com>
Subject Re: Tests not working on Mac OS 10.4 PPC
Date Tue, 20 May 2008 07:10:34 GMT
On Mon, May 19, 2008 at 10:27 PM, Andrew Pietsch <andrew@pietschy.com> wrote:
>>
>> 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

On my machine I get:

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... yes
checking for setlocale() in locale.h... yes
checking for getenv()... yes
creating extconf.h
creating Makefile

It looks like locale.h might be the problem?

I have one in /usr/include/locale.h and one in
/Developer/SDKs/MacOSX10.5.sdk/usr/include/locale.h.  The later comes
from the Apple developer tools, should also be there in the OS 10.4
SDK.

Assaf

>
> 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?
>



-- 
CTO, Intalio
http://www.intalio.com

Mime
View raw message