The answer is:

default_environment["LD_LIBRARY_PATH"] = "your_path:$LD_LIBRARY_PATH"

end it solved my issue

On Apr 4, 10:12 am, rtacconi <[email protected]> wrote:
> This is the error:
>
>   * executing "bundle install --gemfile /sites/rails-data/qna/releases/
> 20110404075216/Gemfile --path /sites/rails-data/qna/shared/bundle --
> deployment --quiet --without development test"
>     servers: ["rpntcsunwsd01.ds.wolseley.com"]
>     [rpntcsunwsd01.ds.wolseley.com] executing command
> *** [err :: rpntcsunwsd01.ds.wolseley.com] /usr/ruby-enterprise/lib/
> ruby/1.8/sparc-solaris2.10/stringio.so: ld.so.1: ruby: fatal:
> libgcc_s.so.1: open failed: No such file or directory - /usr/ruby-
> enterprise/lib/ruby/1.8/sparc-solaris2.10/stringio.so (LoadError)
>
> If I run bundle with the library path on the server I do not get any
> error. The sys admin told me the LD_LIBRARY_PATH set the path to the
> encryption library. I run bundler using:
>
> require 'bundler/capistrano'
>
> in deploy.rb
>
> On Apr 1, 9:05 pm, Bryan Crossland <[email protected]> wrote:
>
> > On Fri, Apr 1, 2011 at 11:00 AM, rtacconi <[email protected]> wrote:
> > > I used to deploy my Rails app using Capistrano. A new server has been
> > > rebuild (Solaris) but now the sys admin does not want to set up
> > > PermitUserEnvironment true and bundle fails. How can I set
> > > LD_LIBRARY_PATH in Capistrano?
>
> > Setting the LD_LIBRARY_PATH on any *nix based system is a major security
> > concern. I don't blame your sys admin for not wanting to set it. Please
> > paste the error you are getting and the steps you did to get this error that
> > is leading you to believe the LD_LIBRARY_PATH should be set.
>
> > B.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to