title: Sketchup Ruby Load external library
body: <p>I have a problem with loading externel library in Sketchup</p>
  
  <p>I want to know the orginal width and height of image. But i didn't find out  in Sketchup API. So i download fastimage, a library can do it. (https://github.com/sdsykes/fastimage) . I installed it by using command: </p>
  
  <pre><code>gems install fastimage
  </code></pre>
  
  <p>This new gem is installed in: C:\Ruby186\lib\ruby\gems\1.8 .Then i require it in my script (by following the turorial in above link) : </p>
  
  <pre><code>require 'fastimage'
  </code></pre>
  
  <p>But i got the error: no such file to load -- fastimage</p>
  
  <p><p>Then i found one solution in this link :<a href="http://sketchucation.com/forums/viewtopic.php?t=29412#p257058" rel="nofollow">http://sketchucation.com/forums/viewtopic.php?t=29412#p257058</a>. Create a loadpath script ,and create a linking to external library. After creating this script, put them into plugin folder in Sketchup,and run Sketchup again. But i still get the error : No such file to load.</p>.</p>
  
  <p>Version of my ruby is 1.8.6, and when i type command : puts RUBY_VERSION in Sketchup ruby console. Its output is 1.8.6 (the same version as my ruby). I don't understand why it can not require new gem. Please help me, thanks you. </p>