Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to compile without system zlib? #1932

Open
mjsteinbaugh opened this issue Aug 22, 2023 · 2 comments
Open

How to compile without system zlib? #1932

mjsteinbaugh opened this issue Aug 22, 2023 · 2 comments

Comments

@mjsteinbaugh
Copy link

mjsteinbaugh commented Aug 22, 2023

Hi @alexdobin , I'm trying to write an install recipe for STAR that uses a version pinned external zlib library, rather than using system zlib. I've tried a couple of approaches without success (e.g. setting CPPFLAGS, LDFLAGS, LDLIBS, etc.; adjusting htslib Makefile).

My install script is here, for reference:
https://github.com/acidgenomics/koopa/blob/main/lang/bash/include/install/common/shared/star.sh

It seems like this is an issue that keeps popping up, without a solution other than installing system zlib, which may not be an option on some Linux instances without admin permissions:

Potentially related htslib issues:

Any advice would be much appreciated!

Best,
Mike

@mjsteinbaugh
Copy link
Author

Also it looks like this htslib unbundle pull request would fix my issue, as I can install htslib successfully outside of the one bundled with STAR: #1586

@mjsteinbaugh
Copy link
Author

Also, here's how bioconda is currently unbundling htslib, which removes the system zlib requirement:
https://github.com/bioconda/bioconda-recipes/blob/master/recipes/star/patches/0002-donotuse_own_htslib.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant