in `gem_original_require': no such file to load -- win32screenshot (MissingSourceFile)

289 views
Skip to first unread message

Rajiv Nanduani

unread,
Aug 25, 2010, 7:05:21 AM8/25/10
to watir-...@googlegroups.com
Hi All,

I am facing the problem while running my script
It gives me an error like this

C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- win32screenshot (MissingSourceFile)
        from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in `new_constants_in'
        from C:/Ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in `require'

--




RAJIV KUMAR

<http://rajivkumarnandvani.wordpress.com/>
<http://learnqtphelp.blogspot.com/>


Željko Filipin

unread,
Aug 25, 2010, 7:07:06 AM8/25/10
to watir-...@googlegroups.com
On Wed, Aug 25, 2010 at 1:05 PM, Rajiv Nanduani <rajivkuma...@gmail.com> wrote:
> no such file to load -- win32screenshot

How is this related to Watir?

If it is, please show us your Watir code.

Željko
--
watir.com - community manager
watirpodcast.com - host
testingpodcast.com - audio podcasts on software testing. all of them
vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi

Arihan

unread,
Aug 25, 2010, 8:22:32 AM8/25/10
to watir-...@googlegroups.com
Have you installed gem install win32ole 

If yes use require 'win32ole'

Regards
Arihan
Sent from my iPhone
--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.
 
You received this message because you are subscribed to http://groups.google.com/group/watir-general
To post: watir-...@googlegroups.com
To unsubscribe: watir-genera...@googlegroups.com

Rajiv Nanduani

unread,
Aug 26, 2010, 1:50:24 AM8/26/10
to watir-...@googlegroups.com
yes i have and with use(require 'win32ole') it did not work. One thing i forgot to mention that oci8 did not install  so i use the direct gem install by get the gem oci8 from rubyforge site. but i am not sure is that related to that or not. in my framework we write the log details in dataabse


*** LOCAL GEMS ***

actionmailer (2.3.8)
actionpack (2.3.8)
activesupport (2.3.8)
builder (2.1.2)
commonwatir (1.6.5)
ffi (0.6.3 x86-mswin32)
firewatir (1.6.5)
fxri (0.3.7, 0.3.6)
fxruby (1.6.16 x86-mswin32-60)
hoe (2.6.1)
hpricot (0.8.2 x86-mswin32, 0.6.164 mswin32)
json_pure (1.4.6)
libxml-ruby (1.1.4 x86-mswin32-60)
log4r (1.1.8, 1.0.5)
mkrf (0.2.3)
nokogiri (1.4.3.1 x86-mswin32)
parseconfig (0.5.2, 0.4.2)
ptools (1.1.9, 1.1.6)
rack (1.2.1, 1.1.0)
rake (0.8.7, 0.8.1)
rmagick (2.12.0 mswin32)
roxml (3.1.5, 2.5.3)
ruby-oci8 (2.0.4 x86-mingw32)
ruby-opengl (0.60.0 i386-mswin32)
rubyforge (2.0.4)
rubygems-update (1.3.7)
s4t-utils (1.0.4)
test-unit (2.1.1, 2.0.1)
user-choices (1.1.6.1)
watir (1.6.5)
win32-api (1.4.6 x86-mswin32-60, 1.2.1 x86-mswin32-60, 1.2.0 x86-mswin32-60)
win32-clipboard (0.5.2, 0.4.4)
win32-dir (0.3.7, 0.3.2)
win32-eventlog (0.5.2, 0.5.0)
win32-file (0.6.5, 0.5.5)
win32-file-stat (1.3.4, 1.3.1)
win32-process (0.6.2, 0.5.9)
win32-sapi (0.1.5, 0.1.4)
win32-sound (0.4.2, 0.4.1)
win32ole-pp (1.2.0)
win32screenshot (0.0.7)
windows-api (0.4.0, 0.2.4)
windows-pr (1.0.9, 0.9.3)
xml-simple (1.0.12)

i try to install the oci8 by using this steps  but it did not work

  5) Install oci8 by -

       i)   Goto http://www.oracle.com/technology/software/tech/oci/instantclient/index.html, and download Instant Client Package - Basic, and Instant Client Package - SDK.

       ii)  Extract from the two downloaded zip files, and move everything inside the two unzipped folders under one of the two instantclient_11_1 (this is the version at the time of writing) folder, which is

            directly under the each of the two extracted folders.

       iii) Goto C:\oracle, and if the oracle directory does not exist, create it under C:\.

       iv) Place the instantclient_11_1 folder under C:\oracle.

       v)  Add instantclient_11_1 to the "Environmental Variables":

            a) Right click on the "My Computer" icon

            b) Left click on "Properties"

            c) Left click on "Advanced"

            d) Left click on "Environmental Variables"

            e) Under "System Variables", double left click on the line starting with "Path"

            f)  At the end of the text box next to "Variable value", add -

                ;C:\oracle\instantclient_11_1

            g) Click "OK"

            h) Click "OK" under the "Environmental Variables" window

            i)  Click "OK" under the "System Properties" window

  6) Install oci8 by typing into a command window:

         gem install ruby-oci8

       Note: Wait for the gem installation process to finish.


BUT

It shows me this error

C:\Documents and Settings\rajiv.nanduani>gem install ruby-oci8
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-oci8:
        ERROR: Failed to build gem native extension.

C:/Ruby/bin/ruby.exe extconf.rb
checking for load library path...
  PATH...
    checking C:\oracle\instantclient_11_1... yes
  C:/oracle/instantclient_11_1/oci.dll looks like an instant client.
checking for cc... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby/bin/ruby
        --with-instant-client
        --without-instant-client
./oraconf.rb:562:in `check_cc': RuntimeError (RuntimeError)
        from ./oraconf.rb:549:in `init'
        from ./oraconf.rb:1001:in `initialize'
        from ./oraconf.rb:343:in `new'
        from ./oraconf.rb:343:in `get'
        from extconf.rb:18
ng
---------------------------------------------------
Error Message:
  C compiler doesn't work correctly.
Backtrace:
  ./oraconf.rb:562:in `check_cc'
  ./oraconf.rb:549:in `init'
  ./oraconf.rb:1001:in `initialize'
  ./oraconf.rb:343:in `new'
  ./oraconf.rb:343:in `get'
  extconf.rb:18
---------------------------------------------------
See:
 * http://ruby-oci8.rubyforge.org/en/HowToInstall.html
 * http://ruby-oci8.rubyforge.org/en/ReportInstallProblem.html



Gem files will remain installed in C:/Ruby/lib/ruby/gems/1.8/gems/ruby-oci8-2.0.4 for in
Results logged to C:/Ruby/lib/ruby/gems/1.8/gems/ruby-oci8-2.0.4/ext/oci8/gem_make.out


error details of mkmf.log file
"cl -nologo -Feconftest -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32 -I. -IC:/Ruby/lib/ruby/1.8/i386-mswin32  -MD -Zi -O2b2xg- -G6 conftest.c   msvcrt-ruby18-static.lib  oldnames.lib user32.lib advapi32.lib shell32.lib ws2_32.lib   -link    -libpath:"." -libpath:"C:/Ruby/lib" -stack:0x2000000"
checked program was:
/* begin */
1: int main() { return 0; }
/* end */

Željko Filipin

unread,
Aug 26, 2010, 4:56:51 AM8/26/10
to watir-...@googlegroups.com
On Thu, Aug 26, 2010 at 7:50 AM, Rajiv Nanduani <rajivkuma...@gmail.com> wrote:
> i try to install the oci8 by using this steps  but it did not work

Again, how is this related to Watir?

If this is general Ruby question, you will get better replies at a Ruby list/forum/group. I do not know what oci8 is, but you could ask at their support list.

Željko

Jarmo Pertman

unread,
Aug 26, 2010, 4:03:22 PM8/26/10
to Watir General
Despite of the fact that this is not a Watir's question obviously and
you haven't shown us your source, you need to require 'win32/
screenshot' instead of 'win32screenshot'.

Jarmo Pertman
-----
IT does really matter - http://www.itreallymatters.net


On Aug 26, 11:56 am, Željko Filipin <zeljko.fili...@wa-research.ch>
wrote:
> On Thu, Aug 26, 2010 at 7:50 AM, Rajiv Nanduani <
>

Rajiv Nanduani

unread,
Aug 29, 2010, 11:21:39 AM8/29/10
to watir-...@googlegroups.com
thanks to all,

Now my problem get solved it was issue with gem version  when i installed the  automation framework past six month before  that time gem version and now the gem version get changed due to this i was facing the problem. now i installed the gem with old version and it is working fine now.

--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

You received this message because you are subscribed to http://groups.google.com/group/watir-general
To post: watir-...@googlegroups.com
To unsubscribe: watir-genera...@googlegroups.com

Jarmo Pertman

unread,
Sep 2, 2010, 6:57:20 AM9/2/10
to Watir General
What gem? win32screenshot? Or the gem using win32screenshot?

Anyway, what gem is using win32screenshot? I highly recommend using
the newest version of win32screenshot, because there are some bugs
which prevent to capture screenshots in some circumstances with the
old version.

Jarmo

On Aug 29, 6:21 pm, Rajiv Nanduani <rajivkumarnandv...@gmail.com>
wrote:
> thanks to all,
>
> Now my problem get solved it was issue with gem version  when i installed
> the  automation framework past six month before  that time gem version and
> now the gem version get changed due to this i was facing the problem. now i
> installed the gem with old version and it is working fine now.
>
>
>
>
>
> On Fri, Aug 27, 2010 at 1:33 AM, Jarmo Pertman <jarm...@gmail.com> wrote:
> > Despite of the fact that this is not a Watir's question obviously and
> > you haven't shown us your source, you need to require 'win32/
> > screenshot' instead of 'win32screenshot'.
>
> > Jarmo Pertman
> > -----
> > IT does really matter -http://www.itreallymatters.net
>
> > On Aug 26, 11:56 am, Željko Filipin <zeljko.fili...@wa-research.ch>
> > wrote:
> > > On Thu, Aug 26, 2010 at 7:50 AM, Rajiv Nanduani <
>
> > > rajivkumarnandv...@gmail.com> wrote:
> > > > i try to install the oci8 by using this steps  but it did not work
>
> > > Again, how is this related to Watir?
>
> > > If this is general Ruby question, you will get better replies at a Ruby
> > > list/forum/group. I do not know what oci8 is, but you could ask at their
> > > support list.
>
> > > Željko
>
> > --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > You received this message because you are subscribed to
> >http://groups.google.com/group/watir-general
> > To post: watir-...@googlegroups.com
> > To unsubscribe: watir-genera...@googlegroups.com<watir-general%2Bunsubscribe@goog legroups.com>

Rajiv Nanduani

unread,
Sep 3, 2010, 9:34:48 AM9/3/10
to watir-...@googlegroups.com
Sorry for late reply

it was  oci8 gem
 install ruby-oci8 -v 1.0.6


--
Before posting, please read http://watir.com/support. In short: search before you ask, be nice.


You received this message because you are subscribed to http://groups.google.com/group/watir-general
To post: watir-...@googlegroups.com
To unsubscribe: watir-genera...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages