ubuntu 15.04 下 GFirefly环境搭建和运行出现的问题和解决方案

0.首先 python setup.py install 前面要加sudo

1.报出错误 

  Traceback (most recent call last):
  File "setup.py", line 1, in <module>
    from setuptools import setup, find_packages

对新手的我经过一番艰苦寻找,终于找到解决方案:

      没有安装Python的 setuptools,所以在官网按照教程按照

地址:https://pip.pypa.io/en/latest/installing.html

      sudo python get-pip.py

2. sh: 1: mysql_config: not found   EnvironmentError: mysql_config not found

   解决方案: 

sudo apt-get install libmysqlclient-dev

sudo updatedb

locate mysql_config


3._mysql.c:29:20: fatal error: Python.h: 没有那个文件或目录

error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

解决方案:没有python编译环境

sudo apt-get install python-dev


4.Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       None
detect/vers.c:3:17: fatal error: zmq.h: 没有那个文件或目录
 #include "zmq.h"
                 ^
compilation terminated.
Failed with default libzmq, trying again with /usr/local
******************************************
Configure: Autodetecting ZMQ settings...
    Custom ZMQ dir:       /usr/local
detect/vers.c:3:17: fatal error: zmq.h: 没有那个文件或目录
 #include "zmq.h"
                 ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Fatal: 
    Failed to compile ZMQ test program.  Please check to make sure:


    * You have a C compiler installed
    * A development version of Python is installed (including header files)
    * A development version of ZMQ >= 2.1.4 is installed (including header files)
    * If ZMQ is not in a default location, supply the argument --zmq=<path>
    * If you did recently install ZMQ to a default location, 
      try rebuilding the ld cache with `sudo ldconfig`
      or specify zmq's location with `--zmq=/usr/local`
    
******************************************
******************************************
error: Setup script exited with 1

解决方案:

sudo apt-get install libzmq-dev


最后执行

sudo python setup.py install

果断完成


有一些问题

在第4个问题的时候我自己下载了libzmq-master 然后执行./autogen.sh 

报错:autogen.sh: error: could not find libtool.  libtool is required to run autogen.sh.

然后:sudo apt-get install libtool

sudo ln -s /usr/bin/libtoolize /usr/bin/libtool

但是没有解决问题

google搜索:

https://groups.google.com/forum/#!topic/sage-devel/CfEZLe5W0qw

From your log, it seems that zmq is not installed on your computer 
(http://zeromq.org/). If you are on a debian like OS this is just 

 $ apt-get install libzmq-dev 

Vincent 


最后Test:

gfirefly-admin.py createproject myproject

create dir myproject 
create success 


才解决!

夜深了,到此结束;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值