How to install RMagick

How to install RMagick

Posted by: mdgustavo
Posted on: 2007-05-17 15:15:00

Hello!
I don´t know what is going wrong about installing RMagick on my account.

I´ve following the wiki, but something is wrong on that... it doesn´t work.

Step by step

1: Install ImageMagick

2: Add instructions to .bash_profile :

export PATH=$HOME/local/bin:$PATH
export LD_LIBRARY_PATH=$HOME/local/lib

3. mkdir ~/gems

4. Add to .bash_profile:

export GEM_PATH=$HOME/gems:/usr/lib/ruby/gems/1.8

5. Install RMagick:

gem install -i ~/gems rmagick

Error:

mkdir /usr/share/RMagick
hook /home/.gump/mdgustavo/gems/gems/rmagick-1.15.6/./post-install.rb
failed:

Permission denied - /usr/share/RMagick
Try 'ruby setup.rb --help' for detailed usage.

What am I doing wrong?
Please, somebody help me!

Re: How to install RMagick

Posted by: patricktan
Posted on: 2007-05-17 23:18:00

Why don't you try DH's ImageMagick http://wiki.dreamhost.com/index.php/Image_Magick

Re: How to install RMagick

Posted by: mdgustavo
Posted on: 2007-05-18 05:44:00

My application is a rails application...

I´m using file_column plugin... and just tried do use DH´s ImageMagick, but it didn´t work.

What I have to do is install my own gem on my account

Re: How to install RMagick

Posted by: patricktan
Posted on: 2007-05-18 20:33:00

I'm not familiar with rails. Sorry I can't help any more.

Hope somebody else can help you out :P

Re: How to install RMagick

Posted by: krupenin
Posted on: 2007-06-10 00:18:00

I got exactly the same problem. If anybody found a way around it, please post here. Thanks!

Re: How to install RMagick

Posted by: krupenin
Posted on: 2007-06-14 14:30:00

I finally made it work. Although the gem installation process encountered an error, turns out the error occured after the gem had been installed, during the documentation setup, which is really not important.

The trick after that was to include the line:
require '/home/<YOUR USER NAME>/gems/gems/rmagick-1.15.6/lib/RMagick'
at the end of the config/environment.rb file. Then you can use RMagick.

Tags: gemsusrimagemagickmkdirld libraryrbrubyliblibrary pathexport pathpermission denieddoesnt worki dont knowstep 1ivehookwiki