# Problems With Rails Deployment

**URL:** <https://www.ruby-forum.com/t/problems-with-rails-deployment/137799>\
**Category:** Deployment\
**Created:** [May 16, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/problems-with-rails-deployment/137799 "2008-05-16T14:36:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [May 16, 2008, 2:36pm UTC](https://www.ruby-forum.com/t/problems-with-rails-deployment/137799/1 "2008-05-16T14:36:16Z")

</div>

Good Afternoon,

I am fairly new to Ruby on Rails and im am having countless problems  
with the deployment of a eccommerce site onto a linux server, i am  
currently onto my second hosting company ([www.eukhost.com](http://www.eukhost.com)) and have  
purchase a VPS.

As the first company we went with took down the site as it was using  
high level of the CPU around 80%([Aventurehost.com](http://Aventurehost.com)) Reseller Account.

after a little playing aroung with the config etc the site was working  
fine although running alittle slow on first hosting company but as i  
said was taken down.

i was reccommended to go for a VPS and that they didnt have any VPS  
packages left we had to look else where.

Now we have the VPS but now cant get the site running at all and the  
hosting company dont have a clue on what is wrong.

Where we are at:-

The site has been uploaded to the server, a database has been created,  
the rails apps has been added and a rewrite has been made. i have asked  
the eukhost to install all of the gems that are needed for the site to  
run as they have told me this has been done,

The Problem,

When we try to run the apps via the CPANEL we get a error on the mongral  
log saying :  
“/usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so:  
libMagickCore.so.1: cannot open shared object file: No such file or  
directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so  
(LoadError)”

we have informed the host of this issue but they dont have a clue how to  
solve it and all the information we can find on the internet is

Help! I’m getting the message “libMagickWand.so.1: cannot open shared  
object file: No such file or directory” I know ImageMagick is installed!  
What should I do?  
The full text of the message is:

/usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so:  
libMagickWand.so.1: cannot open shared object file: No such file or  
directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so  
(LoadError)

The message will be slightly different if you are installing RMagick  
from source or you’ve installed GraphicsMagick.

This message is extremely confusing. It looks like Ruby is complaining  
that it can’t find RMagick.so, but actually Ruby is complaining that it  
can’t find libMagickWand.so.

Unless you specify a different directory when you run the configure  
script, the ImageMagick/GraphicsMagick shared object file  
(libMagickWand.so or libGraphicsMagick.so) is installed in the  
/usr/local/lib directory. However, the Linux dynamic linker/loader only  
looks for shared objects in /lib and /usr/lib by default. You have to  
add /usr/local/lib to the list of locations it searches. The easiest way  
to do this is to use the LD\_LIBRARY\_PATH environment variable. Add this  
statement to one of your start-up files:

export LD\_LIBRARY\_PATH=/usr/local/lib

But this doesnt help and just generates more errors any help is greatly  
needed,

Error when the export lib path was added:-  
/home/italy/public\_html/config/environments/production.rb:22:in  
`load_environment': compile error (SyntaxError) /home/italy/public_html/config/environments/production.rb:22: unknown regexp options - lcal from /usr/lib/ruby/gems/1.8/gems/rails-1.2.6/lib/initializer.rb:209:in `load\_environment’

All help is greatly needed thanks in advance,

Chris,

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [May 26, 2008, 9:01pm UTC](https://www.ruby-forum.com/t/problems-with-rails-deployment/137799/2 "2008-05-26T21:01:23Z")

</div>

> When we try to run the apps via the CPANEL we get a error on the mongral  
> log saying :  
> “/usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so:  
> libMagickCore.so.1: cannot open shared object file: No such file or  
> directory - /usr/lib/ruby/gems/1.8/gems/rmagick-2.2.2/lib/RMagick2.so  
> (LoadError)”

For me this meant  
sudo cp /usr/local/lib/libMagickCore.so.1 /lib64  
GL!

---

<div class="post-metadata">

**Author:** ![yetanothergeek](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/8e8cbc/32.png) [@yetanothergeek](https://www.ruby-forum.com/u/yetanothergeek)\
**Post date:** [May 27, 2008, 3:46pm UTC](https://www.ruby-forum.com/t/problems-with-rails-deployment/137799/3 "2008-05-27T15:46:02Z")

</div>

What distribution are you running?

Also, relying on Cpanel in a VPS hosting doesn’t make much sense.

I haven’t seen any working Cpanel based administration that actually  
works or makes sense.

–  
Aníbal Rojas

> **[Home - Has Many Developers](https://hasmanydevelopers.com/)**
>
> We are the best choice for your building design and development

> **[RUBYCORNER.COM](https://www.rubycorner.com/)**
>
> RUBYCORNER.COM - Contact us for any business inquiries

[http://anibal.rojas.com](http://anibal.rojas.com)

On May 17, 7:36 am, Chris S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
