Giter Site home page Giter Site logo

Comments (3)

s-u avatar s-u commented on August 26, 2024

Sorry, I'm not quite sure I understand the issue - you are setting the environment before Rserve is started (typically using R CMD) - it merely uses the R home defined by the environment. Normally, the way chrooted Rserve is used to have the corresponding R setup in the chroot which is typically a subset of the system R. Rserve doesn't "bind" anything itself, it's being linked against whatever R is available - and that happens before it's even run, so it has no control over that. If you want to have an entirely different R setup in your chroot jail, then you have to first chroot into the jail and then start Rserve - there is nothing Rserve itself can do to make that happen itself since it's linked to whatever R you start it with.

from rserve.

rfaelens avatar rfaelens commented on August 26, 2024

Thanks for the comment.

Indeed the right approach is to use LD_PRELOAD or other ld "tricks" to make sure RServe binds with the right R dll when run in a chroot environment. RServe links to whatever R the dynamic loader picks out, which is typically the system R.

You can close this as a "won't fix", we will try to make it work by either using LD_PRELOAD or by writing a wrapper to chroot first.

from rserve.

s-u avatar s-u commented on August 26, 2024

LD_PRELOAD doesn't sound quite right. R controls the locations that will be loaded using via R_HOME_DIR in the initial script and then $R_HOME_DIR/etc/ldpaths for the location of libraries, so I would rather make sure those are setup correctly instead.

from rserve.

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.