Installation on debian - libruby.so.1.8.7 not found

134 views
Skip to first unread message

agherschon

unread,
Nov 26, 2009, 3:03:36 PM11/26/09
to WebROaR - Ruby Application Server
Hi, I'm trying to test your web server, but a really weird problem
occurs.

When I launch the command "webroar install", I got :

Checking for the dependencies ...
Checking for ruby........found at /usr/local/bin/ruby.
Checking for libruby.so.1.8.7........not found.
Checking for openssl-ruby........found.
Checking for zlib-ruby........found.
Checking for ruby_headers........found at /usr/local/lib/ruby/1.8/
i686-linux/ruby.h.
Checking for rubygems........found.
Checking for gcc........found at /usr/bin/gcc.
Checking for make........found at /usr/bin/make.
Checking for libsqlite3.so........found at /usr/lib/libsqlite3.so.
Checking for sqlite3.h........found at /usr/include/sqlite3.h.
Checking for starling........found at /usr/local/bin/starling.
The following dependencies required for installation could not be
found:
libruby.so.1.8.7
Checking for the dependencies ...
Checking for ruby........found at /usr/local/bin/ruby.
Checking for libruby.so.1.8.7........not found.
Checking for openssl-ruby........found.
Checking for zlib-ruby........found.
Checking for ruby_headers........found at /usr/local/lib/ruby/1.8/
i686-linux/ruby.h.
Checking for rubygems........found.
Checking for gcc........found at /usr/bin/gcc.
Checking for make........found at /usr/bin/make.
Checking for libsqlite3.so........found at /usr/lib/libsqlite3.so.
Checking for sqlite3.h........found at /usr/include/sqlite3.h.
Checking for starling........found at /usr/local/bin/starling.
The following dependencies required for installation could not be
found:
libruby.so.1.8.7


I found the asked file in the folder /opt/bin and I even put it in the
PATH variable, nothing helps.

Thank you for your help,
Alexander.

Aditya Babbar

unread,
Nov 27, 2009, 6:45:45 AM11/27/09
to web...@googlegroups.com
Alexander,
Thank you for trying out WebROaR.

The server needs dynamic ruby library (libruby.so) as a prerequisite. If one installs ruby from source, --enabled-shared flag needs to be passed to its ./configure script to create it.

Can you try building ruby from source again with this flag?

I am not sure the about the libruby.so you found in /opt/bin. I would not like to recommend adding it to LD_LIBRARY_PATH. 

Aditya

agherschon

unread,
Dec 16, 2009, 3:54:12 PM12/16/09
to WebROaR - Ruby Application Server
Hello,

I tried by adding the --enable-shared to the ./configure script, and I
saw no particular errors rebuilding ruby from the sources. Whoewer,
nothing changed when I try the command "webroar install".

At the beginning, I installed ruby1.8 with an "apt-get install
ruby1.8".
I'm afraid to remove it by "apt-get remove" because it wants to also
remove rubygems , rdoc, and a lot of ruby librairies...

When I type ruby -v, i got the version I compiled it : ruby 1.8.7
(2008-08-11 patchlevel 72) [i686-linux]

How should I proceed from this ?



On 27 nov, 12:45, Aditya Babbar <aditya.bab...@webroar.in> wrote:
> Alexander,
> Thank you for trying out WebROaR.
>
> The server needs dynamic ruby library (libruby.so) as a prerequisite. If one
> installs ruby from source, --enabled-shared flag needs to be passed to its
> ./configure script to create it.
>
> Can you try building ruby from source again with this flag?
>
> I am not sure the about the libruby.so you found in /opt/bin. I would not
> like to recommend adding it to LD_LIBRARY_PATH.
>
> Aditya
>
> On Fri, Nov 27, 2009 at 1:33 AM, agherschon
> <alexandre.ghersc...@gmail.com>wrote:

Aditya Babbar

unread,
Dec 22, 2009, 8:43:33 AM12/22/09
to web...@googlegroups.com
Alexander,
Sorry, i was under the wrong impression that you had originally installed ruby from source. Hence i gave the suggestion of passing --enable-shared flag to ensure shared lib is also installed during the build.

We just improved the logic for detection of shared lib. Could you please pull the latest code from Github repository and try it out? 

You can use these commands:

-----
sudo gem uninstall webroar

cd webroar
sudo rake install. 
------

Thanks a lot for your efforts.

Aditya

Sunil

unread,
Feb 18, 2010, 7:45:24 AM2/18/10
to WebROaR - Ruby Application Server
Hi Aditya,

We were also facing similar issue as Alex during install for webroar
We tried installing from git repository as you have suggested. But
after running rake install, we are getting same error :

Checking for the dependencies ...

Checking for ruby........found at /opt/ruby/bin/ruby.
Checking for libruby.so.1.8.7........not found.
Unable to find libruby.so.1.8.7 at /opt/ruby/lib.


Checking for openssl-ruby........found.
Checking for zlib-ruby........found.

Checking for ruby_headers........found at /opt/ruby/lib/ruby/1.8/


i686-linux/ruby.h.
Checking for rubygems........found.
Checking for gcc........found at /usr/bin/gcc.
Checking for make........found at /usr/bin/make.
Checking for libsqlite3.so........found at /usr/lib/libsqlite3.so.
Checking for sqlite3.h........found at /usr/include/sqlite3.h.

Checking for starling........found at /opt/ruby/bin/starling.


The following dependencies required for installation could not be
found:
libruby.so.1.8.7

Please refer the user guide for the list of prerequisites.
Sorry, WebROaR could not be installed on this machine.
rake aborted!
Command failed with status (1): [webroar install ...]

(See full trace by running task with --trace)

any suggestion would be helpful

Thanks,
Sunil

On Dec 22 2009, 8:43 am, Aditya Babbar <aditya.bab...@webroar.in>
wrote:
> Alexander,


> Sorry, i was under the wrong impression that you had originally installed
> ruby from source. Hence i gave the suggestion of passing --enable-shared
> flag to ensure shared lib is also installed during the build.
>
> We just improved the logic for detection of shared lib. Could you please
> pull the latest code from Github repository and try it out?
>
> You can use these commands:
>
> -----
> sudo gem uninstall webroar
>
> git clone git://github.com/webroar/webroar.git
> cd webroar
> sudo rake install.
> ------
>
> Thanks a lot for your efforts.
>
> Aditya
>
> On Thu, Dec 17, 2009 at 2:24 AM, agherschon

> <alexandre.ghersc...@gmail.com>wrote:

Aditya Babbar

unread,
Feb 19, 2010, 6:43:21 AM2/19/10
to web...@googlegroups.com
Sunil,
Thank you for trying out WebROaR.

The installer is unable to find libruby.so.1.8.7 (Config::CONFIG["LIBRUBY_SO"]) in /opt/ruby/lib (Config::CONFIG["libdir"]).

1. Could you please run the following command in /opt/ruby/lib and let us know the output
ls -lash libruby*

2. Also please let us know the ruby configuration output by the following command:
ruby -e 'Config::CONFIG.each_pair{ |key,value| puts "\"#{key}\" => \"#{value}\"" } if require "mkmf" '  

Aditya
Reply all
Reply to author
Forward
0 new messages