Git Product home page Git Product logo

Comments (7)

rollf avatar rollf commented on August 17, 2024

Maybe you can simply set the LD_LIBRARY_PATH to the directory where the newer version is placed? Like here. (I'm guessing though).

from bcbio-nextgen.

lovebaboon1989 avatar lovebaboon1989 commented on August 17, 2024

Hi, thanks for your help, I tried that before but unfortunately it didn't work.

from bcbio-nextgen.

naumenko-sa avatar naumenko-sa commented on August 17, 2024

You could try to build a newer glibc and use LD_PRELOAD?
https://www.jertype.com/upgrading-glibc/

from bcbio-nextgen.

lovebaboon1989 avatar lovebaboon1989 commented on August 17, 2024

Hi there, I tried using LD_PRELOAD but got the following errors:
Strategy 1.
LD_PRELOAD=/PHShome/wj092/miniconda3/pkgs/glibc-2.28-999/lib/libc.so.6 /data/klengellab/tools/bcbio/anaconda/bin/bcbio_nextgen.py

And I got the following error message:
/data/klengellab/tools/bcbio/anaconda/bin/python: relocation error: /lib64/librt.so.1: symbol __vdso_clock_gettime, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference

Strategy 2.
export LD_PRELOAD=/PHShome/wj092/miniconda3/pkgs/glibc-2.28-999/lib/libc.so.6 /data/klengellab/tools/bcbio/anaconda/bin/bcbio_nextgen

And I got the following error message:
-bash: export: `/data/klengellab/tools/bcbio/anaconda/bin/bcbio_nextgen': not a valid identifier

The article in the link mentions linking the 'libc.so.6' to an executable app, but I'm not sure whether I did it in a correct way...

from bcbio-nextgen.

naumenko-sa avatar naumenko-sa commented on August 17, 2024

linking was to solve a timezone issue.
your second example lacks .py (bcbio_nextgen.py)

from bcbio-nextgen.

lovebaboon1989 avatar lovebaboon1989 commented on August 17, 2024

Hi, I also tried adding '.py' in the second example:
export LD_PRELOAD=/PHShome/wj092/miniconda3/pkgs/glibc-2.28-999/lib/libc.so.6 /data/klengellab/tools/bcbio/anaconda/bin/bcbio_nextgen.py
But I got the same error message...
-bash: export: `/data/klengellab/tools/bcbio/anaconda/bin/bcbio_nextgen.py': not a valid identifier

from bcbio-nextgen.

naumenko-sa avatar naumenko-sa commented on August 17, 2024

Yes, this error I can understand: export sets a variable (or many variables) in the current environment and in the child ones, i.e.

$ export A=5 B=6 C
$ echo $A
5
$ echo $B
6
$ echo $C

(C was set as an empty string variable)

However, if you are trying to set something which is not a valid variable name, i.e. a path to a program, bash errors out.

$ export A=5 ./somebin
bash: export: `./somebin': not a valid identifier

So, I am taking back the previous suggestion, you'd need to get PRELOAD working without export.

SN

from bcbio-nextgen.

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.