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..
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?
thank you, I got it.
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>'
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’