Comments (12)
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.
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.
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.
@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.
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.
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.
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.
@pcsgithubid Did that work for you? I am looking for the same. Please let me know. Thanks.
from ruby-buildpack.
@liuweichu Could you please share what you ended up doing to resolve this?
from ruby-buildpack.
@liuweichu Still working on this issue
from ruby-buildpack.
@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.
@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)
- Ruby is not available in cflinuxfs4 HOT 1
- Release: ruby-buildpack (Apr) HOT 1
- Install bootstrapped ruby into buildpack-specific namespace
- Release: ruby-buildpack (May) HOT 1
- Is there a cflinuxsf4 buildpack with ruby 2.x? HOT 2
- Release: ruby-buildpack (Jun) HOT 1
- CVE-2023-22796 HOT 2
- Release: ruby-buildpack (Jul) HOT 1
- Release: ruby-buildpack (Aug) HOT 1
- Release: ruby-buildpack (Sep) HOT 1
- Release: ruby-buildpack (Oct) HOT 1
- Release: ruby-buildpack (Nov) HOT 1
- rails 7.1 compatibility HOT 2
- Release: ruby-buildpack (Dec) HOT 1
- Release: ruby-buildpack (Jan) HOT 1
- Release: ruby-buildpack (Feb) HOT 1
- Release: ruby-buildpack (02-29) HOT 1
- Release: ruby-buildpack (03-14) HOT 1
- Release: ruby-buildpack (03-28) HOT 1
- Release: ruby-buildpack (04-11) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-buildpack.