2013-02-23 204 views
0

安裝ngch時出現gcc失敗錯誤:https://github.com/seandavi/ngCGH 它給出同樣的錯誤,而easy_install以及我使用的是windows。命令'gcc'失敗,退出狀態爲1安裝ngcgh

Running pysam-0.7.4\setup.py -q bdist_egg --dist-dir c:\users\sam\appdata\lo 
cal\temp\easy_install-ilqggk\pysam-0.7.4\egg-dist-tmp-rolwff 
In file included from pysam\csamtools.c:241: 
samtools/razf.h:38:18: error: zlib.h: No such file or directory 
In file included from pysam\csamtools.c:241: 
samtools/razf.h:91: error: expected specifier-qualifier-list before 'z_stream' 
pysam\csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_10fetch': 
pysam\csamtools.c:9814: warning: passing argument 7 of 'bam_fetch' from incompatible 
pointer type 
pysam\csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_11mate': 
pysam\csamtools.c:10254: warning: passing argument 7 of 'bam_fetch' from incompa 
tible pointer type 
pysam\csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_12count': 
pysam\csamtools.c:10730: warning: passing argument 7 of 'bam_fetch' from incompa 
tible pointer type 
pysam\csamtools.c: In function '__pyx_pf_9csamtools_7Samfile_13pileup': 
pysam\csamtools.c:11148: warning: passing argument 7 of 'bam_fetch' from incompa 
tible pointer type 
pysam\csamtools.c: In function '__pyx_f_9csamtools___advance_snpcalls': 
pysam\csamtools.c:17424: warning: implicit declaration of function 'bam_prob_rea 
ln' 
pysam\csamtools.c:17452: warning: implicit declaration of function 'bam_cap_mapQ 
' 
pysam\csamtools.c: In function '__pyx_pf_9csamtools_20IteratorColumnRegion_1__ne 
xt__': 
pysam\csamtools.c:18907: warning: passing argument 1 of '__pyx_f_9csamtools_make 
PileupProxy' from incompatible pointer type 
pysam\csamtools.c: In function '__pyx_pf_9csamtools_21IteratorColumnAllRefs_1__n 
ext__': 
pysam\csamtools.c:19134: warning: passing argument 1 of '__pyx_f_9csamtools_make 
PileupProxy' from incompatible pointer type 
pysam\csamtools.c: In function '__Pyx_InitGlobals': 
pysam\csamtools.c:38587: warning: this decimal constant is unsigned only in ISO 
C90 
error: Setup script exited with error: command 'gcc' failed with exit status 1 

任何人都可以讓我知道我該如何克服這個錯誤?

+0

你有zlib的頭文件安裝?這是什麼平臺? – 2013-02-23 16:48:41

+0

是的,我已經安裝了zlib已經從http://gnuwin32.sourceforge.net/packages/zlib.htm – sam 2013-02-23 16:54:14

+0

不知道如何在Windows上構建包,但'pysam'包沒有找到zlib庫的C頭。 – 2013-02-23 16:55:06

回答

0

這很可能是由於缺少zlib-dev而無法編譯的pysam。嘗試在Ubuntu即前安裝它我: sudo apt-get install zlib1g-dev

爲Fedora你可以試試:
yum install zlib-devel

我不知道,雖然窗戶...

相關問題