溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

linux系統(tǒng)怎么安裝pennCNV軟件

發(fā)布時(shí)間:2022-01-20 15:16:51 來源:億速云 閱讀:260 作者:iii 欄目:開發(fā)技術(shù)

本篇內(nèi)容介紹了“l(fā)inux系統(tǒng)怎么安裝pennCNV軟件”的有關(guān)知識,在實(shí)際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領(lǐng)大家學(xué)習(xí)一下如何處理這些情況吧!希望大家仔細(xì)閱讀,能夠?qū)W有所成!

pennCNV主要用于芯片數(shù)據(jù)分析CNV軟件

PennCNV安裝

wget https://github.com/WGLab/PennCNV/archive/v1.0.4.tar.gz
tar xvfz v1.0.4.tar.gz

cd kext/
make

但是會報(bào)錯(cuò):

gcc `perl -MExtUtils::Embed -e ccopts` -fPIC   -c -o khmm_wrap.o khmm_wrap.c
khmm_wrap.c: In function ‘SWIG_AsCharPtrAndSize’:
khmm_wrap.c:1576: error: ‘bool’ undeclared (first use in this function)
khmm_wrap.c:1576: error: (Each undeclared identifier is reported only once
khmm_wrap.c:1576: error: for each function it appears in.)
khmm_wrap.c:1576: error: expected ‘:’ before numeric constant
khmm_wrap.c: In function ‘_wrap_estHMMFromFile_CHMM’:
khmm_wrap.c:1875: error: ‘bool’ undeclared (first use in this function)
khmm_wrap.c:1875: error: expected ‘:’ before numeric constant
khmm_wrap.c:1875: error: expected ‘:’ before numeric constant
khmm_wrap.c:1890: error: expected ‘:’ before numeric constant
khmm_wrap.c:1890: error: expected ‘:’ before numeric constant
khmm_wrap.c:1905: error: expected ‘:’ before numeric constant
khmm_wrap.c:1905: error: expected ‘:’ before numeric constant
khmm_wrap.c: In function ‘_wrap_testVit_CHMM’:
khmm_wrap.c:2005: error: ‘bool’ undeclared (first use in this function)
khmm_wrap.c:2005: error: expected ‘:’ before numeric constant
khmm_wrap.c:2005: error: expected ‘:’ before numeric constant
khmm_wrap.c: In function ‘_wrap_GetStateProb_CHMM’:
khmm_wrap.c:2137: error: ‘bool’ undeclared (first use in this function)
khmm_wrap.c:2137: error: expected ‘:’ before numeric constant
khmm_wrap.c:2137: error: expected ‘:’ before numeric constant
khmm_wrap.c: In function ‘_wrap_testVitTrio_CHMM’:
khmm_wrap.c:2325: error: ‘bool’ undeclared (first use in this function)
khmm_wrap.c:2325: error: expected ‘:’ before numeric constant
khmm_wrap.c:2325: error: expected ‘:’ before numeric constant
khmm_wrap.c: In function ‘_wrap_reg_linear’:
khmm_wrap.c:2443: error: ‘bool’ undeclared (first use in this function)
khmm_wrap.c:2443: error: expected ‘:’ before numeric constant
khmm_wrap.c:2443: error: expected ‘:’ before numeric constant
khmm_wrap.c:2458: error: expected ‘:’ before numeric constant
khmm_wrap.c:2458: error: expected ‘:’ before numeric constant
khmm_wrap.c:2473: error: expected ‘:’ before numeric constant
khmm_wrap.c:2473: error: expected ‘:’ before numeric constant
khmm_wrap.c:2488: error: expected ‘:’ before numeric constant
khmm_wrap.c:2488: error: expected ‘:’ before numeric constant
make: *** [khmm_wrap.o] Error 1

解決辦法:

sed -i -e '/#undef bool/d' khmm_wrap.c

然后:

make clean
make

還是報(bào)錯(cuò):

gcc `perl -MExtUtils::Embed -e ccopts` -fPIC   -c -o khmm_wrap.o khmm_wrap.c
gcc `perl -MExtUtils::Embed -e ccopts` -fPIC   -c -o khmm.o khmm.c
gcc `perl -MExtUtils::Embed -e ccopts` -fPIC   -c -o kc.o kc.c
gcc `perl -MExtUtils::Embed -e ccopts` -fPIC   -c -o khmmDev.o khmmDev.c
gcc -shared -o khmm.so khmm_wrap.o khmm.o kc.o khmmDev.o `perl -MExtUtils::Embed -e ldopts`
/usr/bin/ld: /share/work/biosoft/perl/perl-5.22.1/lib/5.22.1/x86_64-linux-thread-multi/CORE/libperl.a(op.o): relocation R_X86_64_32 against `PL_op_mutex' can not be used when making a shared object; recompile with -fPIC
/share/work/biosoft/perl/perl-5.22.1/lib/5.22.1/x86_64-linux-thread-multi/CORE/libperl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [khmm.so] Error 1

本人谷歌和查找說明文檔,說GCC必須是4版本,而且perl版本要低于5.14.2:,于是安裝低版本perl:

wget https://www.cpan.org/src/5.0/perl-5.14.2.tar.gztar xvfz perl-5.14.2.tar.gz
cd perl-5.14.2
./Configure -des -Dprefix=/share/work/perl/perl-v5.14.2 -Accflags='-fPIC'make
make install

然后再把這個(gè)版本的perl添加到PATH的開頭就可以,順利make 安裝成功了。

“l(fā)inux系統(tǒng)怎么安裝pennCNV軟件”的內(nèi)容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關(guān)的知識可以關(guān)注億速云網(wǎng)站,小編將為大家輸出更多高質(zhì)量的實(shí)用文章!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI