简体   繁体   中英

Compile UWSGI Emperor_mongodb plugin

I'm currently playing with uWSGI and trying to store the vassals configuration into my MongoDB.

however, I'm not able to launch an instance of uWSGI using the emperor_mongodb plugin.

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.

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:

[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/

(be sure to have mongodb-dev package on debian/ubuntu)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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