Hi,

Running the web app, give me in the production.log :

Processing DashboardController#index (for 192.168.0.20 at 2014-07-02 11:58:53) [GET]
  Parameters: {"controller"=>"dashboard", "action"=>"index"}
LoadError (Cannot load specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so):
  /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
  lib/rrdmon.rb:4
  app/controllers/dashboard_controller.rb:7:in `index'

Below, a beginning of dashboard_controller.rb file :
class DashboardController < ApplicationController
  def index
    @proc = Mailserver.new.processes
    @updates = Mailserver.new.updates
    # problem to load rrdtools - can not load specified object RRD.so
    Rrdmon.new.daily
  end


The error was away in the install using LD_PRELOAD in the install process.
But i don't know how to correct this app, if you can help me.

Thank you very much.







Rendering /var/mailserv/admin/public/500.html (500 Internal Server Error)

On 01.07.2014 03:14, Stuart Henderson wrote:
On 2014-06-30, Wesley MOUEDINE ASSABY <open...@e-solutions.re> wrote:
dlopen: /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: done
(failed).
/usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so: Cannot load
specified object - /usr/local/lib/ruby/site_ruby/1.8/i386-openbsd/RRD.so
...

and verify now : ldconfig -r | grep libpthread.so.18.0
68:-lpthread.18.0 => /usr/lib/libpthread.so.18.0

and the file exists.

I don't understand why it is not loaded ...

dlopen() doesn't automatically pull in libpthread. Either the main
program must be linked against it, or you need LD_PRELOAD.


On 2014-06-30, Wesley MOUEDINE ASSABY <open...@e-solutions.re> wrote:
On 30.06.2014 18:11, Ted Unangst wrote:

LD_PRELOAD=libpthread.so ruby ....

I tried this : env LD_PRELOAD=/usr/lib/libpthread.so.18.0 ruby18
path_to_rb
The error go away. But the ruby app doesn't work.

So this fixed one problem, now you have another and need to debug a
bit further..

Reply via email to