红联Linux门户
Linux帮助

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

发布时间:2015-06-02 22:53:23来源:blog.csdn.net/atgczcl作者:atgczcl

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

才解决!


Ubuntu15.04网站服务器环境搭建,php/html/css等学习环境搭建教:http://www.linuxdiyf.com/linux/12227.html

Ubuntu下Android编译环境搭建:http://www.linuxdiyf.com/linux/11596.html