Coder Social home page Coder Social logo

Comments (12)

giner avatar giner commented on June 12, 2024 1

As a test I tried to put oracle libs to libs_native and apply the following change to the buildpack and it worked for me:

--- a/bin/compile
+++ b/bin/compile
@@ -6,6 +6,8 @@ $stdout.sync = true
 cache_dir = ARGV[1]
 compile_extensions_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'compile-extensions'))

+ENV["LD_LIBRARY_PATH"] = "#{ARGV[0]}/libs_native"
+
 exit(44) unless system("#{compile_extensions_dir}/bin/check_stack_support")

 $:.unshift File.expand_path("../../lib", __FILE__)

from ruby-buildpack.

cf-gitbot avatar cf-gitbot commented on June 12, 2024

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/134132605

The labels on this github issue will be updated when the story is started.

from ruby-buildpack.

sclevine avatar sclevine commented on June 12, 2024

Environment variables specified in an application's manifest.yml file are exposed during staging (at least in CF v239, not sure about v230). You may be able to set LD_LIBRARY_PATH there.

from ruby-buildpack.

CAFxX avatar CAFxX commented on June 12, 2024

@sclevine is this behavior documented somewhere? I checked https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#env-block but couldn't find any mention of this...

from ruby-buildpack.

giner avatar giner commented on June 12, 2024

Thank you @sclevine. I can confirm, specifying variable in manifest helps (release v230).
At the same time it seems to be not mentioned anywhere in documentation as @CAFxX already said.

from ruby-buildpack.

RochesterinNYC avatar RochesterinNYC commented on June 12, 2024

Thanks @CAFxX and @giner for bringing this to our attention. Submitted a PR to the docs to update it with a note about the manifest env vars being in the staging container environment as well: cloudfoundry/docs-dev-guide#137

from ruby-buildpack.

pcsgithubid avatar pcsgithubid commented on June 12, 2024

I have added the LD_LIBRARY_PATH: /home/vcap/app/ld_library_path to manifest file, but still the ruby oci8 gem fails. Please assist me.

from ruby-buildpack.

n-gottam avatar n-gottam commented on June 12, 2024

@pcsgithubid Did that work for you? I am looking for the same. Please let me know. Thanks.

from ruby-buildpack.

n-gottam avatar n-gottam commented on June 12, 2024

@liuweichu Could you please share what you ended up doing to resolve this?

from ruby-buildpack.

pcsgithubid avatar pcsgithubid commented on June 12, 2024

@liuweichu Still working on this issue

from ruby-buildpack.

dgodd avatar dgodd commented on June 12, 2024

@pcsgithubid @n-gottam If you could open a new issue and provide a sample app which fails, we can look into this for you

from ruby-buildpack.

giner avatar giner commented on June 12, 2024

@pcsgithubid, the following should work:
LD_LIBRARY_PATH: ld_library_path
or
LD_LIBRARY_PATH: mylib:/tmp/app/mylib

from ruby-buildpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.