error while loading shared libraries: libruby.so.1.8: cannot open shared object file: No such file or directory

406 views
Skip to first unread message

Sebastian

unread,
Mar 24, 2010, 7:19:38 AM3/24/10
to Phusion Passenger Discussions
Hi there,

I installed Passenger into Apache but my Rails application won't be
served. I get a 500 Internal Server Error. The Apache error log says:

---------- error_log ----------
/opt/bitnami/ruby/bin/.ruby.bin: error while loading shared libraries:
libruby.so.1.8: cannot open shared object file: No such file or
directory
[ pid=9113 file=ext/apache2/Hooks.cpp:727 time=2010-03-24
10:24:18.271 ]:
Unexpected error in mod_passenger: Cannot spawn application '/opt/
bitnami/projects/event/current': Could not read from the spawn server:
Connection reset by peer (104)
Backtrace:
in 'virtual boost::shared_ptr<Passenger::Application::Session>
Passenger::ApplicationPoolServer::Client::get(const
Passenger::PoolOptions&)' (ApplicationPoolServer.h:471)
in 'int Hooks::handleRequest(request_rec*)' (Hooks.cpp:523)
---------------------------------

There's a neat installation of the required ruby lib within /opt/
bitnami/ruby/lib. It contains libruby.so.1.8, which is a symbolic link
and points to the file libruby.so.1.8.7 in the same directory. The
ruby configuration seems to point to that directory as well.

Static content of the "public" directory is served fine, btw.

I feel I'm missing something very basic here but I just can't get it
to work. Any help from you would be highly appreciated. Thanks in
advance,
Sebastian

Hongli Lai

unread,
Mar 24, 2010, 3:36:57 PM3/24/10
to Sebastian, Phusion Passenger Discussions
On Wed, Mar 24, 2010 at 12:19 PM, Sebastian <Sebastia...@gmx.de> wrote:
> Hi there,
>
> I installed Passenger into Apache but my Rails application won't be
> served. I get a 500 Internal Server Error. The Apache error log says:
>
> ---------- error_log ----------
> /opt/bitnami/ruby/bin/.ruby.bin: error while loading shared libraries:
> libruby.so.1.8: cannot open shared object file: No such file or
> directory

Looks like the Bitnami stack's Ruby needs some environment variables.
Is there a /opt/bitname/ruby/bin/ruby? Try setting PassengerRuby to
that.

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)

Sebastian

unread,
Mar 25, 2010, 7:00:49 AM3/25/10
to Phusion Passenger Discussions
On 24 Mrz., 20:36, Hongli Lai <hon...@phusion.nl> wrote:
> Looks like the Bitnami stack's Ruby needs some environment variables.
> Is there a /opt/bitname/ruby/bin/ruby? Try setting PassengerRuby to
> that.

Thanks for the hint. I included that like the installation
instructions of passenger said:

----------- httpd.conf snippet ------------
LoadModule passenger_module /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/
passenger-2.2.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/bitnami/ruby/lib/ruby/gems/1.8/gems/
passenger-2.2.11
PassengerRuby /opt/bitnami/ruby/bin/ruby
---------------------------------------------------

Sebastian

unread,
Mar 25, 2010, 7:07:18 AM3/25/10
to Phusion Passenger Discussions
On 25 Mrz., 12:00, Sebastian <SebastianKrai...@gmx.de> wrote:
> Thanks for the hint. I included that like the installation
> instructions of passenger said:

Meaning: It has already been there, so that wasn't the problem

Hongli Lai

unread,
Mar 25, 2010, 8:41:29 AM3/25/10
to phusion-...@googlegroups.com

I think you need to ask the Bitnami guys. This is almost certainly a
problem in the Ruby installation.

Reply all
Reply to author
Forward
0 new messages