[MacRuby-devel] Am I the only one having problems with macgem in macruby 0.4?

2008-12-26 Thread Tim Rand
I know problems with macgem have been posted (several times) before, but I
can't tell from the threads whether or not gems are working in macruby
version 0.4. It doesn't seem to work for me. Though 'sudo macgem query
--remote' works as expecteed. Even if I run macruby version 0.3, gem
installation fails, though it appears to have a different reason for
failing, and version 0.3 can't even query remotely like 0.4 can. See the
bottom of this email for the terminal output from the macruby version 0.3
attempt. It would be great if I could get sqlite3-ruby gem working with any
version of macruby. Any advice is appreciated.
Thanks,
Tim

> sudo macgem install sqlite3-ruby
Bulk updating Gem source index for: http://gems.rubyforge.org/
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/1.9.0/yaml.rb:133:
[BUG] Segmentation fault
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0, x86_64]

-- stack frame 
 (0xc08120060): 0004
0001 (0xc08120068): 
0002 (0xc08120070): 0004
0003 (0xc08120078): 
0004 (0xc08120080): 8004951e0
0005 (0xc08120088): 8004c45e0
0006 (0xc08120090): 0004
0007 (0xc08120098): 0004
0008 (0xc081200a0): 
0009 (0xc081200a8): 800453c60
0010 (0xc081200b0): 8004c45e0
0011 (0xc081200b8): 80045c2e0
0012 (0xc081200c0): 800378640
0013 (0xc081200c8): 0004
0014 (0xc081200d0): 0004
0015 (0xc081200d8): 
0016 (0xc081200e0): 800378640
0017 (0xc081200e8): 8003c3980
0018 (0xc081200f0): 0004
0019 (0xc081200f8): 0004
0020 (0xc08120100): 
0021 (0xc08120108): 0004
0022 (0xc08120110): 8003c3980
0023 (0xc08120118): 8004b8ce0
0024 (0xc08120120): 800587860
0025 (0xc08120128): 80050b440
0026 (0xc08120130): 
0027 (0xc08120138): 800587860
0028 (0xc08120140): 800949220
0029 (0xc08120148): 0004
0030 (0xc08120150): 
0031 (0xc08120158): 0004
0032 (0xc08120160): 8009c61c0
0033 (0xc08120168): 800bb9f60
0034 (0xc08120170): 0001
0035 (0xc08120178): 0004
0036 (0xc08120180): 0004
0037 (0xc08120188): 
0038 (0xc08120190): 800bba160
0039 (0xc08120198): 0004
0040 (0xc081201a0): c0821fd08
0041 (0xc081201a8): 80009ee00
0042 (0xc081201b0): 800bba640
0043 (0xc081201b8): 0004
0044 (0xc081201c0): 0004
0045 (0xc081201c8): c08120188 (= 37)
0046 (0xc081201d0): 800bba640
0047 (0xc081201d8): 80009ee00
0048 (0xc081201e0): 80092f100
0049 (0xc081201e8): 804312b40
0050 (0xc081201f0): 80425e040
0051 (0xc081201f8): 0004
0052 (0xc08120200): 80383b120
0053 (0xc08120208): 8044c7da0
0054 (0xc08120210): 0004
0055 (0xc08120218): c0821fb48
0056 (0xc08120220): 801e93c40
0057 (0xc08120228): 0002
0058 (0xc08120230): 0004
0059 (0xc08120238): 0004
0060 (0xc08120240): 0004
0061 (0xc08120248): 0004
0062 (0xc08120250): 0004
0063 (0xc08120258): 803687860
0064 (0xc08120260): 104da3f80
0065 (0xc08120268): 8032f8020
0066 (0xc08120270): 
0067 (0xc08120278): 
0068 (0xc08120280): 
0069 (0xc08120288): 
0070 (0xc08120290): 8009300a0
0071 (0xc08120298): 0004
0072 (0xc081202a0): 0002
0073 (0xc081202a8): 0004
0074 (0xc081202b0): 0004
0075 (0xc081202b8): 
0076 (0xc081202c0): 0004
0077 (0xc081202c8): 
0078 (0xc081202d0): 0004
0079 (0xc081202d8): 
0080 (0xc081202e0): 8008e5040
0081 (0xc081202e8): 8032f8020
0082 (0xc081202f0): 8008dee80
0083 (0xc081202f8): 8009300a0
0084 (0xc08120300): 0004
0085 (0xc08120308): 
0086 (0xc08120310): 104da0dd0
0087 (0xc08120318): 8032f8020
0088 (0xc08120320): 0004
0089 (0xc08120328): 0004
0090 (0xc08120330): 0004
0091 (0xc08120338): 
0092 (0xc08120340): 0004
0093 (0xc08120348): 8032f8020
0094 (0xc08120350): 800841e80
0095 (0xc08120358): 0004
0096 (0xc08120360): c0821f7c8
0097 (0xc08120368): 800839de0
0098 (0xc08120370): 0004
0099 (0xc08120378): c08120338 (= 91)
0100 (0xc08120380): 0004
0101 (0xc08120388): 800839de0
0102 (0xc08120390): 8032f8020
0103 (0xc08120398): 0004
0104 (0xc081203a0): 80075a9c0
0105 (0xc081203a8): 0004
0106 (0xc081203b0): 8007505c0
0107 (0xc081203b8): 104d965f0
0108 (0xc081203c0): 800839de0
0109 (0xc081203c8): 800759f00
0110 (0xc081203d0): 0004
0111 (0xc081203d8): 80073e4e0
0112 (0xc081203e0): 104d9a630
0113 (0xc081203e8): 0004
0114 (0xc081203f0): 800744660
0115 (0xc081203f8): 104d9a630
0116 (0xc08120400): 800839de0
0117 (0xc08120408): 0004
0118 (0xc08120410): 80073e4e0
0119 (0xc08120418): 0004
0120 (0xc08120420): 0004
0121 (0xc08120428): 800744660
0122 (0xc08120430): 0004
0123 (0xc08120438): 800839de0
0124 (0xc08120440): 0004
0125 (0xc08120448): 0004
0126 (0xc08120450): 
0127 (0xc08120458): 0004
0128 (0xc08120460): 
0129 (0xc08120468): 8007446c0
0130 (0xc08120470): 800839de0
0131 (0xc08120478): 0004
0132 (0xc08120480): 
0133 (0xc08120488): 0004
0134 (0xc08120490): 0004
0135 (0xc08120498): 0004
0136 (0xc081204a0): 0004
013

[MacRuby-devel] [MacRuby] #191: mkmf.rb try_constant fails

2008-12-26 Thread MacRuby
#191: mkmf.rb try_constant fails
---+
 Reporter:  aaron.patter...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:  mkmf.rb  
---+
 try_constant in mkmf fails.  The test program that mkmf generates
 segfaults with macruby 0.4.  I've attached the test program (which
 normally works),

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #191: mkmf.rb try_constant fails

2008-12-26 Thread MacRuby
#191: mkmf.rb try_constant fails
---+
 Reporter:  aaron.patter...@…  |   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  blocker|   Milestone:   
Component:  MacRuby|Keywords:  mkmf.rb  
---+

Comment(by aaron.patter...@…):

 Also, here is the mkmf.rb line I used:

 try_constant('LIBXML_VERSION', 'libxml/xmlversion.h')

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Am I the only one having problems with macgem in macruby 0.4?

2008-12-26 Thread Eloy Duran

No RubyGems does not work in the current trunk.
The specific problem you are running into is a problem with YAML,
filed at: https://www.macruby.org/trac/ticket/187
Only thing you can do atm is to try and install the library by hand.

- Eloy

On 26 dec 2008, at 17:25, Tim Rand wrote:

I know problems with macgem have been posted (several times) before,  
but I can't tell from the threads whether or not gems are working in  
macruby version 0.4. It doesn't seem to work for me. Though 'sudo  
macgem query --remote' works as expecteed. Even if I run macruby  
version 0.3, gem installation fails, though it appears to have a  
different reason for failing, and version 0.3 can't even query  
remotely like 0.4 can. See the bottom of this email for the terminal  
output from the macruby version 0.3 attempt. It would be great if I  
could get sqlite3-ruby gem working with any version of macruby. Any  
advice is appreciated.

Thanks,
Tim

> sudo macgem install sqlite3-ruby
Bulk updating Gem source index for: http://gems.rubyforge.org/
/Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/ 
1.9.0/yaml.rb:133: [BUG] Segmentation fault
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0,  
x86_64]


-- stack frame 
 (0xc08120060): 0004
0001 (0xc08120068): 
0002 (0xc08120070): 0004
0003 (0xc08120078): 
0004 (0xc08120080): 8004951e0
0005 (0xc08120088): 8004c45e0
0006 (0xc08120090): 0004
0007 (0xc08120098): 0004
0008 (0xc081200a0): 
0009 (0xc081200a8): 800453c60
0010 (0xc081200b0): 8004c45e0
0011 (0xc081200b8): 80045c2e0
0012 (0xc081200c0): 800378640
0013 (0xc081200c8): 0004
0014 (0xc081200d0): 0004
0015 (0xc081200d8): 
0016 (0xc081200e0): 800378640
0017 (0xc081200e8): 8003c3980
0018 (0xc081200f0): 0004
0019 (0xc081200f8): 0004
0020 (0xc08120100): 
0021 (0xc08120108): 0004
0022 (0xc08120110): 8003c3980
0023 (0xc08120118): 8004b8ce0
0024 (0xc08120120): 800587860
0025 (0xc08120128): 80050b440
0026 (0xc08120130): 
0027 (0xc08120138): 800587860
0028 (0xc08120140): 800949220
0029 (0xc08120148): 0004
0030 (0xc08120150): 
0031 (0xc08120158): 0004
0032 (0xc08120160): 8009c61c0
0033 (0xc08120168): 800bb9f60
0034 (0xc08120170): 0001
0035 (0xc08120178): 0004
0036 (0xc08120180): 0004
0037 (0xc08120188): 
0038 (0xc08120190): 800bba160
0039 (0xc08120198): 0004
0040 (0xc081201a0): c0821fd08
0041 (0xc081201a8): 80009ee00
0042 (0xc081201b0): 800bba640
0043 (0xc081201b8): 0004
0044 (0xc081201c0): 0004
0045 (0xc081201c8): c08120188 (= 37)
0046 (0xc081201d0): 800bba640
0047 (0xc081201d8): 80009ee00
0048 (0xc081201e0): 80092f100
0049 (0xc081201e8): 804312b40
0050 (0xc081201f0): 80425e040
0051 (0xc081201f8): 0004
0052 (0xc08120200): 80383b120
0053 (0xc08120208): 8044c7da0
0054 (0xc08120210): 0004
0055 (0xc08120218): c0821fb48
0056 (0xc08120220): 801e93c40
0057 (0xc08120228): 0002
0058 (0xc08120230): 0004
0059 (0xc08120238): 0004
0060 (0xc08120240): 0004
0061 (0xc08120248): 0004
0062 (0xc08120250): 0004
0063 (0xc08120258): 803687860
0064 (0xc08120260): 104da3f80
0065 (0xc08120268): 8032f8020
0066 (0xc08120270): 
0067 (0xc08120278): 
0068 (0xc08120280): 
0069 (0xc08120288): 
0070 (0xc08120290): 8009300a0
0071 (0xc08120298): 0004
0072 (0xc081202a0): 0002
0073 (0xc081202a8): 0004
0074 (0xc081202b0): 0004
0075 (0xc081202b8): 
0076 (0xc081202c0): 0004
0077 (0xc081202c8): 
0078 (0xc081202d0): 0004
0079 (0xc081202d8): 
0080 (0xc081202e0): 8008e5040
0081 (0xc081202e8): 8032f8020
0082 (0xc081202f0): 8008dee80
0083 (0xc081202f8): 8009300a0
0084 (0xc08120300): 0004
0085 (0xc08120308): 
0086 (0xc08120310): 104da0dd0
0087 (0xc08120318): 8032f8020
0088 (0xc08120320): 0004
0089 (0xc08120328): 0004
0090 (0xc08120330): 0004
0091 (0xc08120338): 
0092 (0xc08120340): 0004
0093 (0xc08120348): 8032f8020
0094 (0xc08120350): 800841e80
0095 (0xc08120358): 0004
0096 (0xc08120360): c0821f7c8
0097 (0xc08120368): 800839de0
0098 (0xc08120370): 0004
0099 (0xc08120378): c08120338 (= 91)
0100 (0xc08120380): 0004
0101 (0xc08120388): 800839de0
0102 (0xc08120390): 8032f8020
0103 (0xc08120398): 0004
0104 (0xc081203a0): 80075a9c0
0105 (0xc081203a8): 0004
0106 (0xc081203b0): 8007505c0
0107 (0xc081203b8): 104d965f0
0108 (0xc081203c0): 800839de0
0109 (0xc081203c8): 800759f00
0110 (0xc081203d0): 0004
0111 (0xc081203d8): 80073e4e0
0112 (0xc081203e0): 104d9a630
0113 (0xc081203e8): 0004
0114 (0xc081203f0): 800744660
0115 (0xc081203f8): 104d9a630
0116 (0xc08120400): 800839de0
0117 (0xc08120408): 0004
0118 (0xc08120410): 80073e4e0
0119 (0xc08120418): 0004
0120 (0xc08120420): 0004
0121 (0xc08120428): 800744660
0122 (0xc08120430): 0004
0123 (0xc08120438): 800839de0
0124 (0xc08120440): 0004
0125 (0xc08120448): 0004
0126 (0xc08120

[MacRuby-devel] [MacRuby] #192: String#length and String#size do not work correctly

2008-12-26 Thread MacRuby
#192: String#length and String#size do not work correctly
+---
 Reporter:  vincent.isamb...@…  |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  critical|   Milestone:   
Component:  MacRuby |Keywords:   
+---
 String#length and String#size return the byte size instead of the number
 of characters in the string.
 {{{
 # coding: utf-8
 p 'あ'.length
 p 'あ'.size
 p 'あ'.bytesize
 }}}

 Ruby 1.9:
 {{{
 1
 1
 3
 }}}

 MacRuby:
 {{{
 3
 3
 3
 }}}

 For #size, the function is declared normally in string.c but for #length,
 you have to remove it from opt_length in insns.def.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel