21 Oct 2009, 15:16
061_pragsmall

aashish kiran (5 posts)

hi, I am new to fxruby. I am trying out example given in FXRuby_Create_Lean_and_Mean_GUIs_with_Ruby-_Pragmatic_Bookshelf . I am stuck at require ‘photo’ line in picturebook.rb this is giving me error as no such file to load. I tried gem install photo , but it says no gem repository. Can you help me..

21 Oct 2009, 19:36
Lovablelyle_pragsmall

Lyle Johnson (47 posts)

It’s not a gem, it’s part of the PictureBook example that’s laid out in the book. Do copies of the book that you download from file sharing sites not include Chapters 3-6?

22 Oct 2009, 11:36
061_pragsmall

aashish kiran (5 posts)

thank you, I got it.

14 Jun 2011, 07:58
9cae3e141882c928148b9a38d058f5f7_pragsmall

Victor Ch. (8 posts)

Hello, guys. I have win xp. There is photo.rb in the folder with picturebook.rb But still my ruby tells me about mistake:

 <internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- photo (LoadError)
        from <internal:lib/rubygems/custom_require>:29:in `require'                              
        from picturebook.rb:15:in `<main>'     
14 Jun 2011, 09:39
9cae3e141882c928148b9a38d058f5f7_pragsmall

Victor Ch. (8 posts)

Already find an answer by myself. Because I use Ruby 1.9.2 - it no longer makes the current directory . part of my LOAD_PATH so better do <pre> reqiure ‘.\photo.rb’

  You must be logged in to comment