You are not logged in.

#1 2012-03-14 21:55:21

chueewowee
Member
Registered: 2012-03-14
Posts: 14

build uwsgi with contributor plugin: Advice?

I wish to install uwsgi with  contributor plugin not included in core distribution. I need advice/confirmation as to how I may acheive this using the package system, rather than install from binaries. I am running an ec2 arch linux instance, and am new to Arch linux,  feeling  good about it. I have read the wiki on makepkg ASB, AUR etc..   and taken  a good look at the Thanks.

To enable the plugin, it's author advises:
----------------------------------------------------------                                                                                           
                                                                                                               
By default, the cgi plugin is not built in the core. You have to compile it as a plugin or create a new     
build profile including it.                                                                                 
                                                                                                           
As an example you can compile it as a plugin:                                                               
                                                                                                           
$ python uwsgiconfig.py --plugin plugins/cgi

The output from running the above, is as follows:
----------------------------------------------------------------------

using profile: buildconf/default.ini
detected include path: ['/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include', '/usr/local/include', '/usr/lib/gcc/x86_64-unknown-linux-gnu/4.6.3/include-fixed', '/usr/include']
*** uWSGI building and linking plugin plugins/cgi ***
[gcc -pthread] ./cgi_plugin.so
*** cgi plugin built and available in ./cgi_plugin.so ***

Starting uwsgi, using  uwsgi.ini to call the plugin , as shown below, the process starts but the call to the plug in throws an error, and cgi calls don't work roll :

./cgi_plugin.so: cannot open shared object file: No such file or directory

my uwsgi.ini
------------------
[uwsgi]
plugins = cgi
socket = /etc/nginx/tmp/uwsgi_temp/server.sock
cgi = /cgi-bin = /etc/nginx/html/cgi-bin
chmod-socket = 666
harakiri = 30the plugin doesn't work. I get the following report when starting:



package installation of standard uwsgi is as follows:
--------------------------------------------------------------------------
$ cd /opt                                                                                                                               
$ wget http://aur.archlinux.org/packages/uwsgi/uwsgi.tar.gz                                                                             
$ tar -zxvf uwsgi.tar.gz
       
#build package and install
$ cd /opt/uwsgi                                                                                                                         
$ makepkg --asroot   #use force option -f to overide earlier package installed                                                                                                                   
$ pacman -U uwsgi*.pkg.*

Relevant section in the PKGBUILD
----------------------------------------------------
build() {
  cd $srcdir/$pkgname-$pkgver
  CFLAGS='' make -f Makefile.Py27
}


The contents of Makefile.Py27
---------------------------------------------
all:
        python2.7 uwsgiconfig.py --build



Cheers. smile

Offline

Board footer

Powered by FluxBB