# RMagick Instant Rails install problem

**URL:** <https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539>\
**Category:** Rails\
**Created:** [March 8, 2006, 1:07am UTC](https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539 "2006-03-08T01:07:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteburgess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@peteburgess](https://www.ruby-forum.com/u/peteburgess)\
**Post date:** [March 8, 2006, 1:07am UTC](https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539/1 "2006-03-08T01:07:49Z")

</div>

Anyone help with this?

Am running Instant Rails on Win XP Sp2. Have downloaded the  
RMagick-win32-1.9.2 files into c:\Instant-Rails-1.0\temp from the  
rubyforge site.

Running “Gem install RMagick-win32-1.9.2-mswin32.gem” from the temp  
directory seems to work giving me a “Successfully installed  
RMagick-win32, version 1.9.2” message.

However, when I then try and go

“ruby postinstall.rb” from the same directory I get

“postinstall.rb:1in ‘require’ : no such file to load –  
postinstall/set\_environment (LoadError) from postinstall.rb:1”

I have no postinstall directory, should one have been corrected?

Thanks in advance.

Pete

---

<div class="post-metadata">

**Author:** ![peteburgess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@peteburgess](https://www.ruby-forum.com/u/peteburgess)\
**Post date:** [March 8, 2006, 3:42am UTC](https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539/2 "2006-03-08T03:42:37Z")

</div>

I followed these instructions and it worked for me

[http://rmagick.rubyforge.org/install-faq.html#win](http://rmagick.rubyforge.org/install-faq.html#win)

Pete B. wrote:

> Anyone help with this?
> 
> Am running Instant Rails on Win XP Sp2. Have downloaded the  
> RMagick-win32-1.9.2 files into c:\Instant-Rails-1.0\temp from the  
> rubyforge site.
> 
> Running “Gem install RMagick-win32-1.9.2-mswin32.gem” from the temp  
> directory seems to work giving me a “Successfully installed  
> RMagick-win32, version 1.9.2” message.
> 
> However, when I then try and go
> 
> “ruby postinstall.rb” from the same directory I get
> 
> “postinstall.rb:1in ‘require’ : no such file to load –  
> postinstall/set\_environment (LoadError) from postinstall.rb:1”
> 
> I have no postinstall directory, should one have been corrected?
> 
> Thanks in advance.
> 
> Pete

---

<div class="post-metadata">

**Author:** ![peteburgess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@peteburgess](https://www.ruby-forum.com/u/peteburgess)\
**Post date:** [March 8, 2006, 6:25am UTC](https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539/3 "2006-03-08T06:25:30Z")

</div>

On 3/7/06, Pete B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> However, when I then try and go
> 
> “ruby postinstall.rb” from the same directory I get
> 
> “postinstall.rb:1in ‘require’ : no such file to load –  
> postinstall/set\_environment (LoadError) from postinstall.rb:1”
> 
> I have no postinstall directory, should one have been corrected?

You have to make sure that the ruby\bin directory for the Ruby  
included in Instant Rails is on your path before you run gem or  
postinstall. The easiest way to ensure this is to open your Ruby  
console window from Instant Rails using the menu item \>\>Rails  
Applications\>\>Open Ruby Console Window"

Curt

---

<div class="post-metadata">

**Author:** ![peteburgess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@peteburgess](https://www.ruby-forum.com/u/peteburgess)\
**Post date:** [March 8, 2006, 11:35am UTC](https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539/4 "2006-03-08T11:35:41Z")

</div>

> You have to make sure that the ruby\bin directory for the Ruby  
> included in Instant Rails is on your path before you run gem or  
> postinstall. The easiest way to ensure this is to open your Ruby  
> console window from Instant Rails using the menu item \>\>Rails  
> Applications\>\>Open Ruby Console Window"
> 
> Curt

I was following the instructions on the RMagick website, and did in fact  
run the commands from the Instant Rails R. Console Window.

Given that the “gem install…” command appeared to work, presumably the  
path to Ruby is functional.

Any more ideas? I can now find RMagick under the  
Instant-Rails\Ruby\lib…\Gems\ directory, so it seems to have  
installed itself there.

Cheers,

Pete

---

<div class="post-metadata">

**Author:** ![peteburgess](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/838e76/32.png) [@peteburgess](https://www.ruby-forum.com/u/peteburgess)\
**Post date:** [March 8, 2006, 6:56pm UTC](https://www.ruby-forum.com/t/rmagick-instant-rails-install-problem/54539/5 "2006-03-08T18:56:17Z")

</div>

On 3/8/06, Pete B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> run the commands from the Instant Rails R. Console Window.
> 
> Given that the “gem install…” command appeared to work, presumably the  
> path to Ruby is functional.
> 
> Any more ideas? I can now find RMagick under the  
> Instant-Rails\Ruby\lib.…\Gems\ directory, so it seems to have  
> installed itself there.

No more ideas from me (I haven’t personally used RMagick). You’ll need  
to talk to the RMagick people.

Curt
