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

Devtools installing LeafCutter Error #241

Open
yr542 opened this issue Aug 16, 2023 · 5 comments
Open

Devtools installing LeafCutter Error #241

yr542 opened this issue Aug 16, 2023 · 5 comments

Comments

@yr542
Copy link

yr542 commented Aug 16, 2023

I am trying to install leafcutter using the recommended command:

devtools::install_github("davidaknowles/leafcutter/leafcutter")

I get the error

/path/to/R_Version_4.2/StanHeaders/path/to/init_threadpool_tbb.hpp: fatal error: tbb/task_scheduler_init.h: No such file or directory
 #include <tbb/task_scheduler_init.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [path/to/Makeconf:176: stanExports_bb_glm.o] Error 1
ERROR: compilation failed for package ‘leafcutter’
* removing ‘/path/to/leafcutter’
Warning message:
In i.p(...) :
  installation of package ‘/path/to/leafcutter_0.2.9.tar.gz’ had non-zero exit status

In case the issue with installation was just mine I asked someone else on my cluster to try and somehow they resolved the issue I have and then got the following interesting error:

Segmentation fault
* removing path/to/leafcutter
Warning message:
In i.p(...)  :
  installation of package path/to/leafcutter had non-zero exit status

What do I do to get around the error I am getting. Both me and this person cannot seem to install leafcutter using devtools::install_github.

@yr542 yr542 changed the title Devottools install Segmentation error Devtools install Segmentation error Aug 16, 2023
@yr542 yr542 changed the title Devtools install Segmentation error Devtools installing LeafCutter Error Aug 16, 2023
@mjhemmerlein
Copy link

I installed rstan and rstantools through install.packages. I then tried to install using devtools::install_github("davidaknowles/leafcutter/leafcutter") and received the same error.

@TheWizier
Copy link

Been trying to install this in a docker container for a while now, and I found this thread:
https://www.reddit.com/r/bioinformatics/comments/1601hfr/installation_of_leafcutter_fails_with_fatal_error/
"It's because the tbb/task_scheduler_init.h is deprecated and was removed from the latest release of TBB, that's why the error message is about not finding the header file"

@yr542
Copy link
Author

yr542 commented Sep 23, 2023

Yes but the issue remains that because of the error it cannot be installed.

@yaqisu
Copy link

yaqisu commented Nov 3, 2023

Hi I wonder have you solved the problem? I also got the same issue and still cant figure it out...

@yaqisu
Copy link

yaqisu commented Nov 4, 2023

Hi I wonder have you solved the problem? I also got the same issue and still cant figure it out...

nvm I followed the instruction here and it finally works!

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

4 participants