# New to Ruby; Trying to use RMagick

**URL:** <https://www.ruby-forum.com/t/new-to-ruby-trying-to-use-rmagick/175831>\
**Category:** Ruby\
**Created:** [September 21, 2009, 1:28am UTC](https://www.ruby-forum.com/t/new-to-ruby-trying-to-use-rmagick/175831 "2009-09-21T01:28:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![janovetz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Post date:** [September 21, 2009, 1:28am UTC](https://www.ruby-forum.com/t/new-to-ruby-trying-to-use-rmagick/175831/1 "2009-09-21T01:28:26Z")

</div>

Hey, guys. I am new to ruby, but need to move through using it quickly,  
as I am doing an internship at my school that requires progress on my  
current project. I need to start graphing numerical experiments quickly.  
Starting with Gaussian functions.

I followed the instructions for installing RMagick and am interested in  
the RVG library for graphing.

I attempted to run the first program from  
[http://www.imagemagick.org/RMagick/doc/rvgtut.html](http://www.imagemagick.org/RMagick/doc/rvgtut.html) and get the error:

“D:\MyProjects\C++\Internship\ruby\>ruby graph.rb  
graph.rb:1:in `require’: no such file to load – rvg/rvg (LoadError)  
from graph.rb:1”

I apologize for not knowing how to fix such a seemingly simple problem,  
but what should I do to get this to run?

---

<div class="post-metadata">

**Author:** ![janovetz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Post date:** [September 21, 2009, 1:49am UTC](https://www.ruby-forum.com/t/new-to-ruby-trying-to-use-rmagick/175831/2 "2009-09-21T01:49:22Z")

</div>

On Sep 20, 2009, at 4:28 PM, Jake J. wrote:

> I attempted to run the first program from  
> [http://www.imagemagick.org/RMagick/doc/rvgtut.html](http://www.imagemagick.org/RMagick/doc/rvgtut.html) and get the error:
> 
> “D:\MyProjects\C++\Internship\ruby\>ruby graph.rb  
> graph.rb:1:in `require’: no such file to load – rvg/rvg (LoadError)  
> from graph.rb:1”
> 
> I apologize for not knowing how to fix such a seemingly simple  
> problem,  
> but what should I do to get this to run?

Did you require rubygems?

* * *

Aaron P.  
[http://tenderlovemaking.com](http://tenderlovemaking.com)

---

<div class="post-metadata">

**Author:** ![janovetz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Post date:** [September 21, 2009, 2:42am UTC](https://www.ruby-forum.com/t/new-to-ruby-trying-to-use-rmagick/175831/3 "2009-09-21T02:42:38Z")

</div>

okayÂ I am new to, Ruby and it seems that no one to help you out. but I  
am still having a very hard time getting this ruby to work. so what are  
your trying to do?

— On Sun, 9/20/09, Aaron P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

From: Aaron P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: New to Ruby; Trying to use RMagick  
To: “ruby-talk ML” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Date: Sunday, September 20, 2009, 5:48 PM

On Sep 20, 2009, at 4:28 PM, Jake J. wrote:

> “D:\MyProjects\C++\Internship\ruby\>ruby graph.rb  
> graph.rb:1:in `require’: no such file to load – rvg/rvg (LoadError)  
> Â Â Â Â from graph.rb:1”
> 
> I apologize for not knowing how to fix such a seemingly simple problem,  
> but what should I do to get this to run?

Did you require rubygems?

* * *

Aaron P.  
[http://tenderlovemaking.com](http://tenderlovemaking.com)

---

<div class="post-metadata">

**Author:** ![janovetz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/53a042/32.png) [@janovetz](https://www.ruby-forum.com/u/janovetz)\
**Post date:** [September 21, 2009, 4:21am UTC](https://www.ruby-forum.com/t/new-to-ruby-trying-to-use-rmagick/175831/4 "2009-09-21T04:21:11Z")

</div>

Aaron P. wrote:

> Did you require rubygems?

Ah, that was something that I actually forgot I was supposed to do, but  
read about in the past. Thanks!

James: Just start your ruby file with require ‘rubygems’.
