简体   繁体   English

编译UWSGI Emperor_mongodb插件

[英]Compile UWSGI Emperor_mongodb plugin

I'm currently playing with uWSGI and trying to store the vassals configuration into my MongoDB. 我目前正在使用uWSGI,并尝试将vassals配置存储到我的MongoDB中。

however, I'm not able to launch an instance of uWSGI using the emperor_mongodb plugin. 但是,我无法使用emperor_mongodb插件启动uWSGI实例。

Regarding the obvious error message, the emperor_mongodb is missing (and it is, I've checked it), so I try to compile it using the uWSGI method, but I'm facing a problem which is directly related to my lack of skill on it. 关于明显的错误消息,emperor_mongodb丢失了(我已经检查过了),因此我尝试使用uWSGI方法进行编译,但是我遇到的问题与我缺乏技巧有关它。

Error Message: 错误信息:

[root@PRDUCE01 uwsgi]# ./uwsgi --plugin emperor_mongodb --emperor "mongodb://127.0.0.1:27107,emperor.vassals"
open("./emperor_mongodb_plugin.so"): No such file or directory [core/utils.c line 4755]
!!! UNABLE to load uWSGI plugin: ./emperor_mongodb_plugin.so: cannot open shared object file: No such file or directory !!!
*** Starting uWSGI 1.4.5 (64bit) on [Thu Jan 31 16:15:36 2013] ***

So, could you help me to build it? 那么,您能帮我建造它吗?

Here is what's I want to use: 这是我要使用的东西:

 python uwsgiconfig.py --plugin plugins/emperor_mongodb package emperor

I know that the package argument is the ini file stored on /plugins/emperor.ini, BUT I don't really know what to put on my file exept those lines: 我知道package参数是存储在/plugins/emperor.ini中的ini文件,但是我真的不知道在这些文件中放什么,除了以下几行:

[uwsgi]
    main_plugin = emperor
    inherit = base
    bin_name = emperor_mongodb_plugin.so
    as_shared_library = true

But it doesn't seems to be working: 但它似乎不起作用:

python uwsgiconfig.py --plugin plugins/emperor_mongodb package emperor_mongo using profile: buildconf/package.ini

detected include path: ['/usr/lib/gcc/x86_64-redhat-linux/4.4.6/include', '/usr/include']

*** uWSGI building and linking plugin plugins/emperor_mongodb ***

[gcc -pthread] /usr/lib/uwsgi/emperor_mongo_plugin.so
gcc: error trying to exec 'cc1plus': execvp: No such file or directory

*** unable to build emperor_mongo plugin ***

So, if you have any clue about how to compile as a plugin this feature, I'll be happy !D 因此,如果您对如何将此功能编译为插件有任何了解,我会很高兴的!

python uwsgiconfig.py --plugin plugins/emperor_mongodb/ python uwsgiconfig.py --plugin插件/ emperor_mongodb /

(be sure to have mongodb-dev package on debian/ubuntu) (确保在debian / ubuntu上具有mongodb-dev软件包)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM