在 Fedora 版本 8 上安装 bigquery 命令行
Posted
技术标签:
【中文标题】在 Fedora 版本 8 上安装 bigquery 命令行【英文标题】:installing bigquery command line on fedora release 8 【发布时间】:2012-07-27 10:44:23 【问题描述】:我正在按照installation steps 的安装说明进行操作
我遇到了以下错误
#python setup.py install
Traceback (most recent call last):
File "setup.py", line 18, in <module>
use_setuptools()
File "/mnt/ravi/BQTools/bigquery-2.0.6/ez_setup.py", line 76, in use_setuptools
return do_download()
File "/mnt/ravi/BQTools/bigquery-2.0.6/ez_setup.py", line 72, in do_download
import setuptools; setuptools.bootstrap_install_from = egg
zipimport.ZipImportError: can't decompress data; zlib not available
我以为我必须安装 zlib 才能摆脱这个错误,但这并没有帮助
#yum install zlib
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* updates-newkey: kdeforge.unl.edu
* fedora: kdeforge.unl.edu
* updates: kdeforge.unl.edu
updates-newkey | 2.3 kB 00:00
fedora | 2.1 kB 00:00
updates | 2.6 kB 00:00
s3tools | 1.7 kB 00:00
Setting up Install Process
Parsing package install arguments
Package zlib-1.2.3-14.fc8.i386 already installed and latest version
Nothing to do
搜索结果如下
#yum search zlib
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* updates-newkey: kdeforge.unl.edu
* fedora: kdeforge.unl.edu
* updates: kdeforge.unl.edu
================================ Matched: zlib ================================
arm-gp2x-linux-zlib.noarch : Cross Compiled zlib Library targeted at arm-gp2x-
: linux
iptstate.i386 : A top-like display of IP Tables state table entries
jzlib.i386 : JZlib re-implementation of zlib in pure Java
jzlib-demo.i386 : Examples for jzlib
jzlib-javadoc.i386 : Javadoc for jzlib
minizip.i386 : Minizip manipulates files from a .zip archive
minizip-devel.i386 : Development files for the minizip library
ocaml-cryptokit.i386 : OCaml library of cryptographic and hash functions
perl-Archive-Tar.noarch : A module for Perl manipulation of .tar files
perl-Compress-Raw-Zlib.i386 : Low-Level Interface to the zlib compression
: library
perl-Compress-Zlib.noarch : A module providing Perl interfaces to the zlib
: compression library
perl-IO-Compress-Zlib.noarch : Perl interface to allow reading and writing of
: gzip and zip data
perl-IO-Zlib.noarch : Perl IO:: style interface to Compress::Zlib
perl-POE-Filter-Zlib.noarch : POE filter wrapped around Compress::Zlib
php-pecl-phar.i386 : Allows running of complete applications out of .phar files
rb_libtorrent-devel.i386 : Development files for rb_libtorrent
zlib.i386 : The zlib compression and decompression library
zlib-devel.i386 : Header files and libraries for Zlib development
zziplib.i386 : Lightweight library to easily extract data from zip files
zziplib-devel.i386 : Development files for the zziplib library
zziplib-utils.i386 : Utilities for the zziplib library
我不确定zlib是否安装正确
# zlib
-bash: zlib: command not found
请建议下一步
【问题讨论】:
【参考方案1】:这里的问题是你机器上的 python 副本是在没有 zlib 支持的情况下构建的。幸运的是,需要 zlib 的唯一原因是安装 setuptools,在您的情况下,有一种更简单的方法可以做到这一点 - 只需尝试:
yum install python-setuptools
然后您可以照常进行,或者(更简单)只需输入easy_install -U bigquery
即可安装 bq。
【讨论】:
我想我已经尝试过了,但没有成功,所以后来切换到 Ubuntu 机器,事情进展顺利以上是关于在 Fedora 版本 8 上安装 bigquery 命令行的主要内容,如果未能解决你的问题,请参考以下文章
wildfly-9.0.0.Final 在 linux x86 上自动停止。 Fedora 3.14.8-200.fc20。 java版本“1.8.0_45”。我该如何解决?