簡體   English   中英

編譯UWSGI Emperor_mongodb插件

[英]Compile UWSGI Emperor_mongodb plugin

我目前正在使用uWSGI,並嘗試將vassals配置存儲到我的MongoDB中。

但是,我無法使用emperor_mongodb插件啟動uWSGI實例。

關於明顯的錯誤消息,emperor_mongodb丟失了(我已經檢查過了),因此我嘗試使用uWSGI方法進行編譯,但是我遇到的問題與我缺乏技巧有關它。

錯誤信息:

[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] ***

那么,您能幫我建造它嗎?

這是我要使用的東西:

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

我知道package參數是存儲在/plugins/emperor.ini中的ini文件,但是我真的不知道在這些文件中放什么,除了以下幾行:

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

但它似乎不起作用:

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 ***

因此,如果您對如何將此功能編譯為插件有任何了解,我會很高興的!

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

(確保在debian / ubuntu上具有mongodb-dev軟件包)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM