Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 

Go Back   XSL - XML - RSS Forums > Programming and XML > Ruby on Rails and XML

Tags:



Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 08-09-2008, 04:56 PM
Ryan Davis
 
Posts: n/a

Default Re: About circular dependencies in RubyGems (the library). And about the order in $".


On Aug 8, 2008, at 19:18 , ippalix@gmail.com wrote:

> This doesn't work on my XP machine with newest oneclick rubyinstall
> and rubygems 1.2 (same Gem::Exception error as usual)
> I've tried with both rubyscript2exe and rubyscript2exe.rb. Do you have
> any other workaround ideas until something is made about rubygems?


While there IS a fix that we can add to a file in rubygems, I think it
is necessary to point out that rubyscript2exe is going to have these
problems again and again. Depending on $LOADED_FEATURES is going to be
problematic.

Also, are you sure you added "require 'rubygems'" at the top of your
app? It really should fix the issue.


Reply With Quote
Sponsored Links
  #12 (permalink)  
Old 08-09-2008, 04:57 PM
ippalix@gmail.com
 
Posts: n/a

Default Re: About circular dependencies in RubyGems (the library). And aboutthe order in $".

On 9 Aug, 11:52, Ryan Davis <ryand-r...@zenspider.com> wrote:
> On Aug 8, 2008, at 19:18 , ippa...@gmail.com wrote:
>
> > This doesn't work on *my XP machine with newest oneclick rubyinstall
> > and rubygems 1.2 (same Gem::Exception error as usual)
> > I've tried with both rubyscript2exe and rubyscript2exe.rb. Do you have
> > any other workaround ideas until something is made about rubygems?

>
> While there IS a fix that we can add to a file in rubygems, I think it *
> is necessary to point out that rubyscript2exe is going to have these *
> problems again and again. Depending on $LOADED_FEATURES is going to be *
> problematic.
>
> Also, are you sure you added "require 'rubygems'" at the top of your *
> app? It really should fix the issue.



I've tried with and without require 'rubygems' on top of hello.rb,
actually I've tried all possible combinations of theese 4 lines:
---
require "rubygems"
# require "rubyscript2exe"
# exit if RUBYSCRIPT2EXE.is_compiling?
puts "hello world!"
---

"rubyscript2exe hello.rb" always gives me this: http://pastie.org/250556

(The remote_fetcher.rb:19: uninitialized constant Gem::Exception
(NameError) error)
Reply With Quote
  #13 (permalink)  
Old 09-04-2008, 11:22 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2

Default

Hi.

I'm experiencing the same error in rubyscript2exe and I tried this fix as well. I removed RUBY_OPT from my environment variables and tried to run rubyscript2exe on this script:

require 'rubygems'
puts "asdf"

Could somebody elaborate on the fix that will solve this in the rubygems file?
Reply With Quote
  #14 (permalink)  
Old 09-05-2008, 06:15 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2

Default

Well, it's working now, for me. On my machine the gem version of the script doesn't work with the fix, but the .rb version (http://www.erikveen.dds.nl/rubyscrip...yscript2exe.rb) does.
Reply With Quote
  #15 (permalink)  
Old 09-19-2008, 03:47 PM
Andrew Goifeld
 
Posts: n/a

Default Re: About circular dependencies in RubyGems (the library). And about the order in $".

unknown wrote:
> On 9 Aug, 11:52, Ryan Davis <ryand-r...@zenspider.com> wrote:
>> problematic.
>>
>> Also, are you sure you added "require 'rubygems'" at the top of your �
>> app? It really should fix the issue.

>
>
> I've tried with and without require 'rubygems' on top of hello.rb,
> actually I've tried all possible combinations of theese 4 lines:
> ---
> require "rubygems"
> # require "rubyscript2exe"
> # exit if RUBYSCRIPT2EXE.is_compiling?
> puts "hello world!"
> ---
>
> "rubyscript2exe hello.rb" always gives me this: http://pastie.org/250556
>
> (The remote_fetcher.rb:19: uninitialized constant Gem::Exception
> (NameError) error)


Hi guys,

I am a newbie with ruby. I have an identical problem as described above
and my output matches http://pastie.org/250556. Is there a workaround /
fix ? Have I missed anything?

I am just using helloworld.rb

Much appreciated..
Andy.
--
Posted via http://www.ruby-forum.com/.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Contact Us -|- XSL - XML - RSS Forums -|- Archive -|- Top -|-Rules/Disclaimer-|-Help/Support -|-Advertise
© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
All times are GMT. The time now is 10:12 PM.
Style Developed by Epic Designz