ATACseqQC icon indicating copy to clipboard operation
ATACseqQC copied to clipboard

error when install ATACseqQC

Open wangjiawen2013 opened this issue 6 years ago • 7 comments

Dear,

When I install ATACseqQC, the following error occurred: RandPSSMGen.cpp:32:31: fatal error: gsl/gsl_histogram.h: No such file or directory #include <gsl/gsl_histogram.h> The reason is that I have install gsl (GNU scientific library) at a non-standard position. I am not an root user, So I couldn't install it in the default path /usr/local/include/gsl. I have added the path of gsl to my environmental variables. However, I still can't install ATACseqQC. May be I need to change the header of ATACseqQC source file. Could you help me?

Best regards

wangjiawen2013 avatar Dec 07 '18 14:12 wangjiawen2013

Hi Wangjiawen,

This is a issue in package MotIV. You can add link path in ~/.R/Makevars like this: LDFLAGS: -L/path/to/you/local/lib

see details at https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Using-Makevars or google: Makevars.

Let me know if you still have any issues.

Jianhong.

On Fri, Dec 7, 2018 at 9:12 AM wangjiawen2013 [email protected] wrote:

Dear,

When I install ATACseqQC, the following error occurred: RandPSSMGen.cpp:32:31: fatal error: gsl/gsl_histogram.h: No such file or directory #include <gsl/gsl_histogram.h> The reason is that I have install gsl (GNU scientific library) at a non-standard position. I am not an root user, So I couldn't install it in the default path /usr/local/include/gsl. I have added the path of gsl to my environmental variables. However, I still can't install ATACseqQC. May be I need to change the header of ATACseqQC source file. Could you help me?

Best regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jianhong/ATACseqQC/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AFYSAxsPqxBFqxAJWtpWBa2gi3V7uEXNks5u2ndRgaJpZM4ZIg3C .

-- Yours sincerely, Jianhong Ou

jianhong avatar Dec 07 '18 14:12 jianhong

I cannot find .R in my home directory. I made a new directory ~/.R/Makevars and added new line "LDFLAGS: -L/path/to/you/local/lib". It didn't work at all. Then I downloaded MotIV package and modified Makevars (add new line LDFLAGS: -L/path/to/you/local/lib) in its src directory, then installed it with R CMD INSTALL. However, the Makevers.in file in src made new Makevars file and overlapped the old one. So this attempt failed again.

wangjiawen2013 avatar Dec 08 '18 05:12 wangjiawen2013

how do you set /path/to/you/local/lib?

jianhong avatar Dec 11 '18 14:12 jianhong

In .bashrc: export PATH=/home/wangjw/bin/gsl/bin:$PATH export LD_LIBRARY_PATH=/home/wangjw/bin/gsl/lib:$LD_LIBRARY_PATH

I cannot find .R in my home directory. I made a new directory ~/.R/Makevars and added new line "LDFLAGS: -L/home/wangjw/bin/gsl/lib"

wangjiawen2013 avatar Dec 12 '18 03:12 wangjiawen2013

try to add one more line in your ~/.R/Makevars: CFLAGS=-I/path/to/your/gsl/include

jianhong avatar Dec 12 '18 13:12 jianhong

It does not work. It seems that BiocManager cannot find my ~/.R/Makevars.

wangjiawen2013 avatar Dec 13 '18 02:12 wangjiawen2013

It works for me now, by setting ~/.R/Makevars

LDFLAGS=-L/path/to/your/gsl/lib -lgsl -lgslcblas CFLAGS=-I/path/to/your/gsl/include PKG_LIBS=-L/path/to/your/gsl/lib

Then add following to ~/.bashrc

export PATH=/path/to/your/gsl/bin:$PATH export LD_LIBRARY_PATH=/path/to/your/gsl/2.5/lib:/path/to/your/gsl/include:$LD_LIBRARY_PATH

sckinta avatar Dec 12 '19 16:12 sckinta