rubyscript2exe (Couldn't execute this command (rc=):

Discussion in 'Ruby' started by Nick Thisguy, Feb 21, 2008.

  1. Nick Thisguy

    Nick Thisguy Guest

    Hello,
    I am very new to ruby and can't seem to get rubyscript2exe to work
    correctly I am running windows vista...i know...I have tried all of the
    standard things I know how to do, such as reinstall ruby, the ruby gems,
    rubyscript2exe, place all needed files in the same directory add require
    'rubyscript2exe' at the top of the script along with exit if
    rubyscript2exe.is_compiling, also have tried running with myscript.rb,
    myscript.rbw, myscript.txt. But i still seem the get the same error.
    everything I have works fine with Ubuntu 7.10, but I need to get this
    working with windows for work purposes. The error is as follows:

    Tracing myScript ...
    Couldn't execute this command (rc=):
    C:\Dir\Me\ruby\bin\ruby -r 'rubygems/rubygems_version.rb' -r '
    rubygems/defaults.rb' -r 'thread.so' -r 'thread.rb' -r 'rbconfig.rb' -r
    'rbconfi
    g/datadir.rb' -r 'rubygems/exceptions.rb' -r 'rubygems/requirement.rb'
    -r 'rubyg
    ems/version.rb' -r 'rubygems/dependency.rb' -r
    'rubygems/gem_path_searcher.rb' -
    r 'rubygems/user_interaction.rb' -r 'rubygems/platform.rb' -r
    'rubygems/specific
    ation.rb' -r 'rubygems/source_index.rb' -r 'rubygems/builder.rb' -r
    'rubygems/cu
    stom_require.rb' -r 'rubygems.rb' -r 'ubygems.rb' -r 'etc.so' -r
    'fileutils.rb'
    -I
    'C:/Dir/ME~1/AppData/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe
    ' -I 'C:/Dir/ME~1/AppData/Local/Temp/tar2rubyscript.d.11508.1' -I
    'C:/Dir
    s/Me/ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin' -I 'C
    :/Dir/Me/ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/lib'
    -I 'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8' -I
    'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt' -I
    'C:/Dir/Me/ruby/lib/ruby/site_ruby' -I 'C:/Dir/Me/ruby/lib/ruby/1.
    8' -I 'C:/Dir/Me/ruby/lib/ruby/1.8/i386-mswin32' -I '.' -I 'C:
    /Dir/Me/ruby/bin' -I 'C:/Dir/ME~1/AppData/Local/Temp/tar
    2rubyscript.d.11508.1/rubyscript2exe' -I
    'C:/Dir/ME~1/AppData/Local/Temp/t
    ar2rubyscript.d.11508.1/rubyscript2exe/lib' -I
    'C:/Dir/ME~1/AppData/Local/
    Temp/tar2rubyscript.d.11508.1/rubyscript2exe' -I
    'C:/Dir/ME~1/AppData/Loca
    l/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/lib' -r
    'C:/Dir/ME~1/AppDat
    a/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/require2lib.rb'
    'myScript.r
    bw'

    any information on this matter would be greatly appreciated.

    Thanks in advance!

    koooee
    --
    Posted via http://www.ruby-forum.com/.
    Nick Thisguy, Feb 21, 2008
    #1
    1. Advertising

  2. Nick Thisguy

    Luis Lavena Guest

    On Feb 21, 1:38 am, Nick Thisguy <> wrote:
    > Hello,
    > I am very new to ruby and can't seem to get rubyscript2exe to work
    > correctly I am running windows vista...i know...I have tried all of the
    > standard things I know how to do, such as reinstall ruby, the ruby gems,
    > rubyscript2exe, place all needed files in the same directory add require
    > 'rubyscript2exe' at the top of the script along with exit if
    > rubyscript2exe.is_compiling, also have tried running with myscript.rb,
    > myscript.rbw, myscript.txt. But i still seem the get the same error.
    > everything I have works fine with Ubuntu 7.10, but I need to get this
    > working with windows for work purposes. The error is as follows:
    >
    > Tracing myScript ...
    > Couldn't execute this command (rc=):
    > C:\Dir\Me\ruby\bin\ruby -r 'rubygems/rubygems_version.rb' -r '
    > rubygems/defaults.rb' -r 'thread.so' -r 'thread.rb' -r 'rbconfig.rb' -r
    > 'rbconfi
    > g/datadir.rb' -r 'rubygems/exceptions.rb' -r 'rubygems/requirement.rb'
    > -r 'rubyg
    > ems/version.rb' -r 'rubygems/dependency.rb' -r
    > 'rubygems/gem_path_searcher.rb' -
    > r 'rubygems/user_interaction.rb' -r 'rubygems/platform.rb' -r
    > 'rubygems/specific
    > ation.rb' -r 'rubygems/source_index.rb' -r 'rubygems/builder.rb' -r
    > 'rubygems/cu
    > stom_require.rb' -r 'rubygems.rb' -r 'ubygems.rb' -r 'etc.so' -r
    > 'fileutils.rb'
    > -I
    > 'C:/Dir/ME~1/AppData/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe
    > ' -I 'C:/Dir/ME~1/AppData/Local/Temp/tar2rubyscript.d.11508.1' -I
    > 'C:/Dir
    > s/Me/ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/bin' -I 'C
    > :/Dir/Me/ruby/lib/ruby/gems/1.8/gems/rubyscript2exe-0.5.3/lib'
    > -I 'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8' -I
    > 'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt' -I
    > 'C:/Dir/Me/ruby/lib/ruby/site_ruby' -I 'C:/Dir/Me/ruby/lib/ruby/1.
    > 8' -I 'C:/Dir/Me/ruby/lib/ruby/1.8/i386-mswin32' -I '.' -I 'C:
    > /Dir/Me/ruby/bin' -I 'C:/Dir/ME~1/AppData/Local/Temp/tar
    > 2rubyscript.d.11508.1/rubyscript2exe' -I
    > 'C:/Dir/ME~1/AppData/Local/Temp/t
    > ar2rubyscript.d.11508.1/rubyscript2exe/lib' -I
    > 'C:/Dir/ME~1/AppData/Local/
    > Temp/tar2rubyscript.d.11508.1/rubyscript2exe' -I
    > 'C:/Dir/ME~1/AppData/Loca
    > l/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/lib' -r
    > 'C:/Dir/ME~1/AppDat
    > a/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/require2lib.rb'
    > 'myScript.r
    > bw'
    >
    > any information on this matter would be greatly appreciated.
    >
    > Thanks in advance!


    That is supposed to be one command line?!?

    I think there is a limit of 2K, and you didn't provided the code of
    your script or the actual error message you're getting.

    My experience with RubyScript2Exe was excellent, and never encountered
    situations like you described, even it loads rubygems and other
    things.

    Can you provide more information?

    --
    Luis Lavena
    Luis Lavena, Feb 21, 2008
    #2
    1. Advertising

  3. Nick Thisguy

    Not Thisguy Guest

    Luis Lavena wrote:
    > On Feb 21, 1:38 am, Nick Thisguy <> wrote:
    >>
    >> 'rubygems/specific
    >> -I 'C:/Dir/Me/ruby/lib/ruby/site_ruby/1.8' -I
    >> l/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/lib' -r
    >> 'C:/Dir/ME~1/AppDat
    >> a/Local/Temp/tar2rubyscript.d.11508.1/rubyscript2exe/require2lib.rb'
    >> 'myScript.r
    >> bw'
    >>
    >> any information on this matter would be greatly appreciated.
    >>
    >> Thanks in advance!

    >
    > That is supposed to be one command line?!?
    >
    > I think there is a limit of 2K, and you didn't provided the code of
    > your script or the actual error message you're getting.
    >
    > My experience with RubyScript2Exe was excellent, and never encountered
    > situations like you described, even it loads rubygems and other
    > things.
    >
    > Can you provide more information?


    The command I typed into the prompt was as follows

    C:\Dir\Me\ruby\bin> ruby rubyscript2exe myScript.rbw

    typed this from inside the directory that contains ruby and
    rubyscript2exe

    the error I posted was copied verbatim and pasted directly from the
    command prompt into the post.

    Thanks so much for taking the time to help with this matter.

    koooee
    --
    Posted via http://www.ruby-forum.com/.
    Not Thisguy, Feb 21, 2008
    #3
  4. Nick Thisguy

    Not Thisguy Guest

    I also do believe that entire thing is suppose to be one command that
    rubyscript2exe is generating automatically.
    --
    Posted via http://www.ruby-forum.com/.
    Not Thisguy, Feb 21, 2008
    #4
  5. Nick Thisguy

    Not Thisguy Guest

    Not Thisguy, Feb 24, 2008
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Lucas Cowald
    Replies:
    4
    Views:
    1,030
    Tohid
    Oct 23, 2003
  2. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    220
    Genich
    Oct 22, 2003
  3. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    186
    Oliver
    Oct 22, 2003
  4. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    168
    Lucas Cowald
    Oct 22, 2003
  5. Lucas Cowald

    RUN/execute a Command-Line command from an ASP page.

    Lucas Cowald, Oct 22, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    222
    Lucas Cowald
    Oct 22, 2003
Loading...

Share This Page