Prev: JSpec command line run command doesn't work
Next: Can't do "gem update --system" - libcrypto.so.4: cannot open sharedobject file: No such file or directory -/usr/local/lib/ruby/1.8/i686-linux/digest/md5.so (LoadError)
From: Raveendran Perumalsamy on 4 Sep 2009 03:08 I am getting this error C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe/require2lib.rb:60:in `gat herlibs': undefined method `list' for Gem::Specification:Class (NoMethodError) from C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe/require2lib. rb:30 from jazzez-FFbook-urls.rb:16 Couldn't execute this command (rc=256): C:\ruby\bin\ruby -I 'C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe' -I 'C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1' -I 'C:/ruby/lib/ruby/site_ruby/1.8' - I 'C:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt' -I 'C:/ruby/lib/ruby/site_ruby' -I 'C:/ruby/lib/ruby /1.8' -I 'C:/ruby/lib/ruby/1.8/i386-mswin32' -I '.' -I 'C:/ruby/bin' -I 'C:/DOCUME~1/RAVEEN~1/LOCAL S~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe' -I 'C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscr ipt.d.3048.1/rubyscript2exe/lib' -I 'C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rub yscript2exe' -I 'C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe/lib' -r 'C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe/require2lib.rb' 'jazzez- FFbook-urls.rb' --require2lib-verbose Stopped. Bat file code: echo off cd :: Setting working dir to the dir of this .bat file: cd %0\.. if "%OS%"=="Windows_NT" ((cd /d %~dp0)&(goto next)) echo %0 | find.exe ":" >nul if not errorlevel 1 %0\ cd %0\.. :next echo Working dir: cd set rubyopt= :: begin long line ruby C:\ruby\lib\ruby\gems\1.8\gems\rubyscript2exe-0.5.3\bin\rubyscript2exe %1 --rubyscript2exe-verbose :: end long line set rubyopt=-rubygems pause I have tried from the link --> https://groups.google.com/group/ruby-talk-google/tree/browse_frm/thread/f922ec9ef52af7e4/79ed5e66091744bb?rnum=1&_done=/group/ruby-talk-google/browse_frm/thread/f922ec9ef52af7e4%3Ftvc%3D1%26#doc_cd01f5645fdf9c8d Still no solution for this issue -- Posted via http://www.ruby-forum.com/.
From: Wu Junchen on 4 Sep 2009 04:04 Maybe you should try ocra instead of rubyscript2exe,it's excellent! It support ruby1.9,waitr and so on. http://github.com/larsch/ocra/tree/master -- Posted via http://www.ruby-forum.com/.
From: James Dinkel on 4 Sep 2009 10:24 Wu Junchen wrote: > Maybe you should try ocra instead of rubyscript2exe,it's excellent! > It support ruby1.9,waitr and so on. > http://github.com/larsch/ocra/tree/master I've pretty much given up on r2exe. I don't want to be stuck using an old version of ruby and rubygems, and rc2exe development has been abandoned. it looks like OCRA is the new choice, although I do not like it nearly as well as r2exe. -- Posted via http://www.ruby-forum.com/.
From: Raveendran Perumalsamy on 8 Sep 2009 01:12 Hi Wu and james, Yes. Ocra Rocks. Thanks P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.
From: Leslie Viljoen on 9 Sep 2009 08:49
On Fri, Sep 4, 2009 at 9:08 AM, Raveendran Perumalsamy<jazzezravi(a)gmail.com> wrote: > I am getting this error > > C:/DOCUME~1/RAVEEN~1/LOCALS~1/Temp/tar2rubyscript.d.3048.1/rubyscript2exe/require2lib.rb:60:in > `gat > herlibs': undefined method `list' for Gem::Specification:Class > (NoMethodError) I have fixed this in my own local copy of RubyScript2Exe because I can't get Ocra to work (my Ocra problem is here: http://rubyforge.org/forum/forum.php?thread_id=45617&forum_id=31710) If you need to get RubyScript2Exe working on Windows, do this: > c: > cd \ruby\lib\ruby\gems\1.8\gems\rubyscript2exe-0.5.3 > C:\ruby\lib\ruby\gems\1.8\gems\rubyscript2exe-0.5.3>ruby realstuff.rb --tar2rubyscript-justextract > C:\ruby\lib\ruby\gems\1.8\gems\rubyscript2exe-0.5.3>cd rubyscript2exe ... now make the changes mentioned below, then repackage with: > C:\ruby\lib\ruby\gems\1.8\gems\rubyscript2exe-0.5.3>tar2rubyscript rubyscript2exe realstuff.rb The changes needed are in require2lib.rb, line 60 onwards needs to be like so: #Gem::Specification.list.each do |gem| Gem.loaded_specs.each do |name, gem| #if gem.loaded? $stderr.puts "Found gem #{gem.name} (#{gem.version})." if VERBOSE fromdir = File.join(gem.installation_path, "specifications") todir = File.expand_path("rubyscript2exe.gems/specifications", LIBDIR) fromfile = File.join(fromdir, "#{gem.full_name}.gemspec") tofile = File.join(todir, "#{gem.full_name}.gemspec") File.copy(fromfile, tofile) fromdir = gem.full_gem_path todir = File.expand_path(File.join("rubyscript2exe.gems/gems", gem.full_name), LIBDIR) Dir.copy(fromdir, todir) Dir.find(todir).each do |file| if File.file?(file) gem.require_paths.each do |lib| unless lib.empty? lib = File.expand_path(lib, todir) lib = lib + "/" requireablefiles << file[lib.length..-1] if file =~ /^#{lib}/ end end end end #end end end ($" + LOADED).each do |req| |