[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Trouble setting LD_LIBRARY_PATH for FastCGI script

Coey Minear

7/20/2006 7:50:00 PM

Chris Gansen writes:
> Hello -
>
> I'm trying to exec a ruby script via FastCGI (on Apache 2.0), and cannot
> properly set the env. variable LD_LIBRARY_PATH at run time.
>
> I've tried adding:
>
> SetEnv LD_LIBRARY_PATH /path/to/lib
>
> in a .htaccess file, but to no avail. Perl, however, happily recognizes it.
> Setting ENV['LD_LIBRARY_PATH'] does not take effect either.
>

I set this in Apache's httpd.conf file, in the <VirtualHost>
declaration. You will also want to make sure you declare all the
libraries needed. If you just declare "/path/to/lib", the libraries
wouldn't necessarily know where to find libraries in /usr/lib, for
example. Here is the line I used (on my Solaris system):
SetEnv LD_LIBRARY_PATH /usr/lib:/usr/local/lib:/usr/openwin/lib:/usr/local/pgsql/lib

(Probably don't really need the /usr/openwin/lib, but...)
You would have to restart Apache, but I expect you would have to do
that anyways if one could set the same thing in the .htaccess.

> In the error_log, I see:
>
> [Thu Jul 20 11:32:33 2006] [warn] FastCGI: (dynamic) server
> "/web/server_root/fcgi-bin/index.fcgi" restarted (pid 11242)
> /path/to/ruby_bin/lib/ruby/site_ruby/1.8/i686-linux/fcgi.so: libfcgi.so.0:
> cannot open shared object file: No such file or directory -
> /path/to/ruby_bin/lib/ruby/site_ruby/1.8/i686-linux/fcgi.so (LoadError)
> from
> /path/to/ruby_bin/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
> `require'
> from /path/to/index.fcgi:23
>
>
> Strangely, when I execute the fcgi script from the command line, as:
>
> $ LD_LIBRARY_PATH=/path/to/lib ./index/fcgi
>
> I receive:
>
> ./index.fcgi:25: undefined method `each_cgi' for FCGI:Class (NoMethodError)
>
> Which is particularly vexing. This configuration works on another machine,
> where the libraries are not in 'special' places.
>
> Any advice on how to get Ruby to find the correct library?
>
> -c-

Are you sure you've installed FastCGI on this system? Based on what I
see in the log file:
1) The server cannot find libfcgi.so.0, which is installed with
FastCGI. Make sure the file is present.
2) You've probably installed ruby-fcgi since it knew about
FCGI:Class, but the fcgi.so file would require the libfcgi.so library.
Did you copy the ruby libraries over, but not the system libraries?

Coey


--
Coey Minear
Senior Test Engineer
(651) 628-2831
coey_minear@securecomputing.com

Secure Computing(R)
Securing Connections between People, Applications, and Networks(tm)
http://www.securecom...
NASDAQ: SCUR


*** The information contained in this email message may be privileged,
confidential and protected from disclosure. If you are not the intended
recipient, any review, dissemination, distribution or copying is
strictly prohibited. If you have received this email message in error,
please notify the sender by reply email and delete the message and any
attachments. ***

1 Answer

Harold Burton

9/23/2011 2:33:00 AM

0

In article
<e26ccc13-b6ea-4c27-90b7-7e60bdd908f9@o9g2000vbo.googlegroups.com>,
SilentOtto <silentotto@hotmail.com> wrote:

> On Sep 20, 10:01?pm, Harold Burton <hal.i.bur...@hotmail.com> wrote:
> > In article
> > <2a0acc05-9890-4d96-9592-923798074...@d2g2000vbk.googlegroups.com>,
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > ?SilentOtto <silento...@hotmail.com> wrote:
> > > On Sep 19, 9:54 pm, Harold Burton <hal.i.bur...@hotmail.com> wrote:
> > > > In article
> > > > <78bcf4f4-7751-4629-9680-59c249d80...@f41g2000yqh.googlegroups.com>,
> >
> > > > SilentOtto <silento...@hotmail.com> wrote:
> > > > > On Sep 16, 10:21 pm, Harold Burton <hal.i.bur...@hotmail.com> wrote:
> > > > > > In article
> > > > > > <9b8a082a-3e82-4cba-9566-9f6cee4f0...@y4g2000vbx.googlegroups.com>,
> >
> > > > > > SilentOtto <silento...@hotmail.com> wrote:
> > > > > > > On Sep 16, 9:06 pm, Harold Burton <hal.i.bur...@hotmail.com>
> > > > > > > wrote:
> > > > > > > > In article
> > > > > > > > <ebd1cd3a-789b-4dc5-8a2e-e7896b7e4...@e8g2000vbc.googlegroups.co
> > > > > > > > m>,
> >
> > > > > > > > SilentOtto <silento...@hotmail.com> wrote:
> > > > > > > > > On Sep 15, 6:56 pm, Bill Smith <squand...@comcast.net> wrote:
> > > > > > > > > > >> Hitler's party and government had elements of both
> > > > > > > > > > >> extremes
> > > > > > > > > > >> of
> > > > > > > > > > >> the
> > > > > > > > > > >> left and right. Hitler regarded his people and his
> > > > > > > > > > >> country
> > > > > > > > > > >> (and
> > > > > > > > > > >> very
> > > > > > > > > > >> likely, the world if he could have pulled it off) as his
> > > > > > > > > > >> personal
> > > > > > > > > > >> property. You can argue all day about whether it was,
> > > > > > > > > > >> ultimately,
> > > > > > > > > > >> left
> > > > > > > > > > >> or right, but it clearly doesn't matter unless there's
> > > > > > > > > > >> some
> > > > > > > > > > >> point
> > > > > > > > > > >> you
> > > > > > > > > > >> wish to make about it. If there is, what might that be?
> >
> > > > > > > > > > >Yea?
> >
> > > > > > > > > > >How about you list some of the "left wing" elements in
> > > > > > > > > > >Hitler's
> > > > > > > > > > >government.
> >
> > > > > > > > > > >Because, accusations aside, none of the "Hitler was a
> > > > > > > > > > >socialist"
> > > > > > > > > > >crowd
> > > > > > > > > > >have done so.
> >
> > > > > > > > > > It is a stupid argument.
> >
> > > > > > > > > It is if one is trying to prove that Nazi Germany was a
> > > > > > > > > socialist
> > > > > > > > > state, as the rightards on these groups are continually
> > > > > > > > > attempting to
> > > > > > > > > do.
> >
> > > > > > > > > And, even your compromise position, "Hitler's party and
> > > > > > > > > government
> > > > > > > > > had
> > > > > > > > > elements of both extremes of the left and right", is wrong
> > > > > > > > > unless
> > > > > > > > > you're willing to posit that it was an extremely lopsided
> > > > > > > > > mixture
> > > > > > > > > in
> > > > > > > > > favor of capitalism.
> >
> > > > > > > > Hahahahahahah. 'splain how Hitler was in favor of capitalism.
> >
> > > > > > > That's easy, rightard.
> >
> > > > > > > The government worked through a capitalist framework when
> > > > > > > acquiring
> > > > > > > government resources, and passed laws favorable to private
> > > > > > > business
> > > > > > > and industry.
> >
> > > > > > Care to cite any of those "alleged" laws?
> > > > ^^^^
> >
> > > > > How about the one which allowed Ley and the DAF to take over almost
> > > > > all trade unions in April/May, 1933, rightard?
> >
> > > > Which one is that exactly, please cite it.
> >
> > > > What part of "cite" don't you understand?
> >
> > > The part where you rightards are too dogshit stupid too look up -any-
> > > article on the Nazi's activities in 1933.
> >
> > > Put "Nazi Germany May 2, 1933" into your search engine, rightard.
> >
> > You claimed it, you do it.
> >
> > I can play this game.
> >
> > Ley and the DAF were never allowed to take over any trade unions in
> > April/May, 1933.
> >
> > Prove me wrong.
>
> Why?


Because it would prove you right?


> We both know I'm right

Nope, we both know you're wrong, as amply proved by the fact you can't
provide one iota of proof for any of your lies.


Leftards, batshit crazy and dogshit stupid, every single last one of you