[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Problems with ZenOptimize (via ZenHacks gem

Jim Freeze

6/28/2005 11:49:00 PM

Hi

I installed the ZenHacks gem and tried to run it, but it complained
about missing RubyInline. So I installed that and now it complains
about missing ruby_to_c. Am I really supposed to go and find all
these libraries to use zenoptimize or am I doing something wrong?

ruby ex.rb
/Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require__': No such file to load -- ruby_to_c (LoadError)
from
/Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
`require'
from
/Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/gems/1.8/gems/ZenHacks-1.0.0/lib/zenoptimize.rb:3
from
/Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
`require__'
from
/Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
`require'
from ex.rb:5


The first two lines of ex.rb are:

require 'rubygems'
require 'zenoptimize'

Thanks
--
Jim Freeze


2 Answers

Joe Van Dyk

6/29/2005 5:10:00 PM

0

Yeah, you're probably going to need all those different things.

On 6/28/05, Jim Freeze <jim@freeze.org> wrote:
> Hi
>
> I installed the ZenHacks gem and tried to run it, but it complained
> about missing RubyInline. So I installed that and now it complains
> about missing ruby_to_c. Am I really supposed to go and find all
> these libraries to use zenoptimize or am I doing something wrong?
>
> ruby ex.rb
> /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
> `require__': No such file to load -- ruby_to_c (LoadError)
> from
> /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in
> `require'
> from
> /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/gems/1.8/gems/ZenHacks-1.0.0/lib/zenoptimize.rb:3
> from
> /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
> `require__'
> from
> /Users/jdf/local_ruby/ruby-1.8.2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:24:in
> `require'
> from ex.rb:5
>
>
> The first two lines of ex.rb are:
>
> require 'rubygems'
> require 'zenoptimize'
>
> Thanks
> --
> Jim Freeze
>
>


Ryan Davis

6/30/2005 8:16:00 AM

0


On Jun 28, 2005, at 4:49 PM, Jim Freeze wrote:

> I installed the ZenHacks gem and tried to run it, but it complained
> about missing RubyInline. So I installed that and now it complains
> about missing ruby_to_c. Am I really supposed to go and find all
> these libraries to use zenoptimize or am I doing something wrong?
>
> ruby ex.rb
> [...]
>
> The first two lines of ex.rb are:
>
> require 'rubygems'
> require 'zenoptimize'

ZenHacks doesn't have any requirements in it on purpose. I didn't
want it to be a "go get every damn thing I've ever played with" type
package, esp when you want to simply read 1-2 scripts for fun.

Looks like I was stupid about my ordering, and should have put
ruby_to_c before inline. Not that that would help too much as I
haven't gemified ruby_to_c yet... long ways to go on that one. I'd
prefer to wait for another gems release to get some of the
enhancements we added to rubygems.

So, yeah. It's... rough. But I did name it ZenHACKS after all. :P

--
ryand-ruby@zenspider.com - Seattle.rb - http://www.zens...
seattle.rb
http://blog.zens... - http://rubyforge.org/proje...