美文网首页
Gfold安装:Error while loading shar

Gfold安装:Error while loading shar

作者: iBioinformatics | 来源:发表于2023-05-23 13:04 被阅读0次

    conda 下安装gfold

    conda activate python27
    conda install -c bioconda gfold
    
    ###安装后 ,gfold -h出现报错:Error while loading shared libraries: libgsl.so.0: cannot object file: No such fileopen shared object file: No such file or directory
    
    

    解决:

    1. gfold 依赖于gsl库,先确认好已安装好gsl相关软件,which gsl查找一下;
    2. 查找到已安装过gsl, ln -s软连接到conda 指定环境下的share文件夹,并重命名gsl为 libgsl.so.0;
    3. 确定没有安装,安装一下,再重复2的动作

    下载gsl软件包

    wget -c http://mirrors.ustc.edu.cn/gnu/gsl/gsl-2.4.tar.gz
    ##解压
    tar -zxvf gsl-2.4.tar.gz
    
    

    进入软件目录开始安装

    cd /home/u20111230014/workspace/software/gsl-2.4
    
    ###先configure
    ./configure --prefix=/home/u20111230014/workspace/software/gsl-2.4
    
    ##编译:
    make
    ###安装库之前测试一下是否make成功:
    make check
    PS:若make 或 make check报错:fatal error: gsl/gsl_minmax.h: No such file or directory
    则修改文件夹gsl-2.4为gsl, 再重新make,再make check
    
    ###安装库:make install
    ###最后所有都没报错后,重新configure一次
    ./configure --prefix=/home/u20111230014/workspace/software/gsl-2.4
    
    
    ##配置环境变量,添加以下入:vim ~/.bashrc
    export C_INCLUDE_PATH=$C_INCLUDE_PATH:/home/u20111230014/workspace/software/gsl-2.4/include
    export CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/home/u20111230014/workspace/software/gsl-2.4
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH::/home/u20111230014/workspace/software/gsl-2.4/lib
    export LIBRARY_PATH=$LIBRARY_PATH::/home/u20111230014/workspace/software/gsl-2.4/lib
    
    ###测试安装是否成功
    ##输入两句,分别生成test.o 和a.out,出现 a.out执行文件则成功
    gcc -Wall -I/home/u20111230014/workspace/software/gsl-2.4/include -c test.c
    chmod 755 test.c 
    gcc -L/home/u20111230014/workspace/software/gsl-2.4/lib test.o -lgsl -lgslcblas -lm
    
    #
    ##软连接到conda指定环境下的lib和share文件夹 
    /home/u20111230014/miniconda3/envs/python27/lib
    /home/u20111230014/miniconda3/envs/python27/share/:
    
    ln -s /home/u20111230014/workspace/software/gsl-2.4/lib/libgsl.so.23.0.0
    ln -s /home/u20111230014/workspace/software/gsl-2.4/lib/libgsl.so.23.0.0 libgsl.so.0
    
    必须两个文件夹均有软连接,不然重启conda 后又会一样报错
    
    

    唤醒软件

    gfold -h
         =============================================================================== 
              gfold    :   Generalized fold change for ranking differentially expressed   
                           genes from RNA-seq data.
    
              Author   :   Jianxing Feng (jianxing.tongji@gmail.com)
                Date   :   Sun May 24 07:42:36 CST 2015
              Version  :   V1.1.4
          =============================================================================== 
    
          USAGE:   Please go to the source code directory and use command 'man doc/gfold.man' 
                   or open doc/gfold.html to find documentation.
    
          Quick Examples: 
                   gfold count -ann hg19Ref.gtf -tag sample1.sam -o sample1.read_cnt          
                   gfold count -ann hg19Ref.gtf -tag sample2.sam -o sample2.read_cnt          
                   gfold diff -s1 sample1 -s2 sample2 -suf .read_cnt -o sample1VSsample2.diff 
    
    

    参考:
    https://blog.csdn.net/u012248802/article/details/80655902

    转自:https://www.jianshu.com/p/551ab323b593
    转录组&时序

    相关文章

      网友评论

          本文标题:Gfold安装:Error while loading shar

          本文链接:https://www.haomeiwen.com/subject/whexedtx.html