stuck on simple problem!

Discussion in 'Ruby' started by Chris Finch, Feb 28, 2007.

  1. Chris Finch

    Chris Finch Guest

    Can anyone please tell me how to resolve this error? I just want to use
    ptools but can't?? Why doesn't require 'ptools' work?


    >gem install ptools


    Attempting local installation of 'ptools'
    Local gem file not found: ptools*.gem
    Attempting remote installation of 'ptools'
    Successfully installed ptools-1.1.1
    Installing RDoc documentation for ptools-1.1.1...

    >irb

    irb(main):001:0> require 'rubygems'
    => true
    irb(main):002:0> require 'ptools'
    LoadError: no such file to load -- win32/file/stat
    from
    C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    `require__'
    from
    C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    `require'
    from
    C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
    from
    C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
    `require'
    from (irb):2

    --
    Posted via http://www.ruby-forum.com/.
    Chris Finch, Feb 28, 2007
    #1
    1. Advertising

  2. Chris Finch

    Tim Becker Guest

    It looks like you might need to install this dependancy:
    http://raa.ruby-lang.org/project/win32-file-stat/

    On 2/28/07, Chris Finch <> wrote:
    > Can anyone please tell me how to resolve this error? I just want to use
    > ptools but can't?? Why doesn't require 'ptools' work?
    >
    >
    > >gem install ptools

    >
    > Attempting local installation of 'ptools'
    > Local gem file not found: ptools*.gem
    > Attempting remote installation of 'ptools'
    > Successfully installed ptools-1.1.1
    > Installing RDoc documentation for ptools-1.1.1...
    >
    > >irb

    > irb(main):001:0> require 'rubygems'
    > => true
    > irb(main):002:0> require 'ptools'
    > LoadError: no such file to load -- win32/file/stat
    > from
    > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    > `require__'
    > from
    > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    > `require'
    > from
    > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
    > from
    > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
    > `require'
    > from (irb):2
    >
    > --
    > Posted via http://www.ruby-forum.com/.
    >
    >
    Tim Becker, Feb 28, 2007
    #2
    1. Advertising

  3. Chris Finch

    Alin Popa Guest

    Chris Finch wrote:
    > Can anyone please tell me how to resolve this error? I just want to use
    > ptools but can't?? Why doesn't require 'ptools' work?
    >
    >
    >>gem install ptools

    >
    > Attempting local installation of 'ptools'
    > Local gem file not found: ptools*.gem
    > Attempting remote installation of 'ptools'
    > Successfully installed ptools-1.1.1
    > Installing RDoc documentation for ptools-1.1.1...
    >
    >>irb

    > irb(main):001:0> require 'rubygems'
    > => true
    > irb(main):002:0> require 'ptools'
    > LoadError: no such file to load -- win32/file/stat
    > from
    > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    > `require__'
    > from
    > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    > `require'
    > from
    > C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
    > from
    > C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
    > `require'
    > from (irb):2


    Hi Chris,

    Which kind of OS are you using ? (UNIX like / MS Win / etc. )
    I hope you got the idea that the files that you are missing are in MS
    Windows OS.

    Best regards,
    Alin

    --
    Posted via http://www.ruby-forum.com/.
    Alin Popa, Feb 28, 2007
    #3
  4. Chris Finch

    Chris Finch Guest

    Thanks guys,
    (Alin I'm using Windows XP.)

    I done
    gem install win32-file-stat
    and it works now.

    Is it odd that win32-file-stat is not included as a dependency for
    ptools? After all, it depends on it to work?!

    Chris


    Alin Popa wrote:
    > Chris Finch wrote:
    >> Can anyone please tell me how to resolve this error? I just want to use
    >> ptools but can't?? Why doesn't require 'ptools' work?
    >>
    >>
    >>>gem install ptools

    >>
    >> Attempting local installation of 'ptools'
    >> Local gem file not found: ptools*.gem
    >> Attempting remote installation of 'ptools'
    >> Successfully installed ptools-1.1.1
    >> Installing RDoc documentation for ptools-1.1.1...
    >>
    >>>irb

    >> irb(main):001:0> require 'rubygems'
    >> => true
    >> irb(main):002:0> require 'ptools'
    >> LoadError: no such file to load -- win32/file/stat
    >> from
    >> C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    >> `require__'
    >> from
    >> C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
    >> `require'
    >> from
    >> C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
    >> from
    >> C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
    >> `require'
    >> from (irb):2

    >
    > Hi Chris,
    >
    > Which kind of OS are you using ? (UNIX like / MS Win / etc. )
    > I hope you got the idea that the files that you are missing are in MS
    > Windows OS.
    >
    > Best regards,
    > Alin



    --
    Posted via http://www.ruby-forum.com/.
    Chris Finch, Feb 28, 2007
    #4
  5. Chris Finch

    Tim Becker Guest

    > Is it odd that win32-file-stat is not included as a dependency for
    > ptools? After all, it depends on it to work?!


    Only on Windows. Have a look at the gemspec for the project
    (http://raa.ruby-lang.org/gonzui/markup/ptools/ptools.gemspec), figure
    out how to add a plattform specific dependancy and report it to the
    maintainer so he can change it.
    Tim Becker, Feb 28, 2007
    #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. Davíð Þórisson

    stuck with this simple code

    Davíð Þórisson, Oct 24, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    1,713
    =?Utf-8?B?U0FOVE9TSA==?=
    Nov 2, 2004
  2. Paul Schouten
    Replies:
    2
    Views:
    2,417
    Vladimir Khvostov
    Jan 3, 2005
  3. GeezerButler

    Strange problem and I'm stuck

    GeezerButler, Feb 25, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    358
    GeezerButler
    Feb 25, 2007
  4. saurabh9

    stuck in simple css formatting

    saurabh9, Oct 17, 2008, in forum: HTML
    Replies:
    5
    Views:
    413
  5. TheSaint
    Replies:
    9
    Views:
    584
    TheSaint
    Jun 7, 2011
Loading...

Share This Page