On 14 April 2010 20:34, MMRUser <[email protected]> wrote:
> Within which file this "LD_RUN_PATH=/usr/local/lib" available.. ?

It is not a command, you are setting the environment variable. I just
did it as part of the one command line so only applied to the
invocation of make.

The following is equivalent:

  LD_RUN_PATH=/usr/local/lib
  export LD_RUN_PATH
  make
  unsetenv LD_RUN_PATH

Graham

> On Apr 14, 4:19 pm, Graham Dumpleton <[email protected]>
> wrote:
>> The directory /usr/local/lib isn't in standard search path.
>>
>> Easiest way to work around that is to go into mod_wsgi source code and do:
>>
>>   make clean
>>   LD_RUN_PATH=/usr/local/lib make
>>   sudo make install
>>
>> The LD_RUN_PATH environment variable being set when running make
>> causes that directory to be embedded into .so file when built so
>> doesn't have to be dyanmically set at run time using LD_LIBRARY_PATH.
>>
>> Graham
>>
>> On 14 April 2010 20:06, MMRUser <[email protected]> wrote:
>>
>> > Finally........ I managed to installed it but still I'm getting an
>> > error when I try to start the server..that shared library thing
>>
>> > on line 200 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/
>> > modules/mod_wsgi.so into server: libpython2.6.so.1.0: cannot open
>> > shared object file: No such file or directory
>>
>> > this file is in my /usr/local/lib/libpython2.6.so.1.0
>>
>> > so as the wiki said I would a create a symlink to this file?
>>
>> > On Apr 14, 3:17 pm, Graham Dumpleton <[email protected]>
>> > wrote:
>> >> On 14 April 2010 18:37, MMRUser <[email protected]> wrote:
>>
>> >> > Found the answer wiki, so I need to re-compile Python2.6 for 64 bit.
>> >> > can someone please tell me the syntax..
>>
>> >> > ./configure --enable-shared CXFLAGS -m64 or
>>
>> >> > ./configure --enable-shared CFLAGS -m64
>>
>> >> As far as I know you just need:
>>
>> >>   ./configure --enable-shared
>>
>> >> It should automatically compile as 64 bit if the system is.
>>
>> >> For reference of others, the issue was documented in:
>>
>> >>  http://code.google.com/p/modwsgi/wiki/InstallationIssues#Mixing_32_Bi...
>>
>> >> Graham
>>
>> >> > On Apr 14, 1:33 pm, MMRUser <[email protected]> wrote:
>> >> >> New error
>>
>> >> >> make
>> >> >> /usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG   mod_wsgi.c
>> >> >> -L/usr/local/lib -L/usr/local/lib/python2.6/config  -lpython2.6 -
>> >> >> lpthread -ldl  -lutil -lm
>> >> >> /usr/lib64/apr-1/build/libtool --silent --mode=compile gcc -prefer-pic
>> >> >> -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-
>> >> >> protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-
>> >> >> aliasing  -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/
>> >> >> httpd  -I/usr/include/apr-1   -I/usr/include/apr-1  -I/usr/local/
>> >> >> include/python2.6 -DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch
>> >> >> mod_wsgi.slo
>> >> >> mod_wsgi.c: In function 'wsgi_server_group':
>> >> >> mod_wsgi.c:949: warning: unused variable 'value'
>> >> >> mod_wsgi.c: In function 'Log_writelines':
>> >> >> mod_wsgi.c:1732: warning: unused variable 'msg'
>> >> >> mod_wsgi.c: In function 'Adapter_output':
>> >> >> mod_wsgi.c:3010: warning: unused variable 'n'
>> >> >> mod_wsgi.c: In function 'Adapter_file_wrapper':
>> >> >> mod_wsgi.c:4024: warning: unused variable 'result'
>> >> >> mod_wsgi.c: In function 'wsgi_python_term':
>> >> >> mod_wsgi.c:5631: warning: unused variable 'tstate'
>> >> >> mod_wsgi.c:5630: warning: unused variable 'interp'
>> >> >> mod_wsgi.c: In function 'wsgi_python_child_init':
>> >> >> mod_wsgi.c:6760: warning: unused variable 'l'
>> >> >> mod_wsgi.c:6658: warning: unused variable 'interp'
>> >> >> mod_wsgi.c: In function 'wsgi_add_import_script':
>> >> >> mod_wsgi.c:7411: warning: unused variable 'error'
>> >> >> mod_wsgi.c: In function 'wsgi_add_handler_script':
>> >> >> mod_wsgi.c:7859: warning: unused variable 'dconfig'
>> >> >> mod_wsgi.c:7858: warning: unused variable 'sconfig'
>> >> >> mod_wsgi.c: In function 'wsgi_hook_handler':
>> >> >> mod_wsgi.c:8905: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c:8907: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c:8909: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c:8913: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c:8933: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c:8935: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c:8938: warning: suggest parentheses around assignment used
>> >> >> as truth value
>> >> >> mod_wsgi.c: In function 'wsgi_daemon_worker':
>> >> >> mod_wsgi.c:10227: warning: unused variable 'duration'
>> >> >> mod_wsgi.c:10226: warning: unused variable 'start'
>> >> >> mod_wsgi.c: In function 'wsgi_hook_daemon_handler':
>> >> >> mod_wsgi.c:12423: warning: unused variable 'i'
>> >> >> mod_wsgi.c:12421: warning: unused variable 'elts'
>> >> >> mod_wsgi.c:12420: warning: unused variable 'head'
>> >> >> mod_wsgi.c: At top level:
>> >> >> mod_wsgi.c:7824: warning: 'wsgi_set_user_authoritative' defined but
>> >> >> not used
>> >> >> mod_wsgi.c:14338: warning: 'wsgi_hook_check_user_id' defined but not
>> >> >> used
>> >> >> /usr/lib64/apr-1/build/libtool --silent --mode=link gcc -o
>> >> >> mod_wsgi.la  -rpath /usr/lib64/httpd/modules -module -avoid-version
>> >> >> mod_wsgi.lo -L/usr/local/lib -L/usr/local/lib/python2.6/config -
>> >> >> lpython2.6 -lpthread -ldl -lutil -lm
>> >> >> /usr/bin/ld: /usr/local/lib/libpython2.6.a(node.o): relocation
>> >> >> R_X86_64_32 against `a local symbol' can not be used when making a
>> >> >> shared object; recompile with -fPIC
>> >> >> /usr/local/lib/libpython2.6.a: could not read symbols: Bad value
>> >> >> collect2: ld returned 1 exit status
>> >> >> apxs:Error: Command failed with rc=65536
>> >> >> .
>> >> >> make: *** [mod_wsgi.la] Error 1
>>
>> >> >> On Apr 14, 12:43 pm, Graham Dumpleton <[email protected]>
>> >> >> wrote:
>>
>> >> >> > You installed the wrong Apache development version. You installed it
>> >> >> > for Apache 1.3. The version you install must match that for Apache 
>> >> >> > you
>> >> >> > have installed, which appears to be 2.2.4.
>>
>> >> >> > Graham
>>
>> >> >> > On 14 April 2010 16:32, MMRUser <[email protected]> wrote:
>>
>> >> >> > > Install http-devel again here's the error..
>>
>> >> >> > > ./configure --with-python=/usr/local/bin/python
>> >> >> > > checking for apxs2... no
>> >> >> > > checking for apxs... /usr/sbin/apxs
>> >> >> > > checking Apache version... apxs:Warning: /usr/bin/httpd not found 
>> >> >> > > or
>> >> >> > > not executable
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: No shared object support for Apache
>> >> >> > > apxs:Warning: available under your platform. Make sure
>> >> >> > > apxs:Warning: the Apache module mod_so is compiled into
>> >> >> > > apxs:Warning: your server binary `/usr/bin/httpd'.
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: /usr/bin/httpd not found or not executable
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: No shared object support for Apache
>> >> >> > > apxs:Warning: available under your platform. Make sure
>> >> >> > > apxs:Warning: the Apache module mod_so is compiled into
>> >> >> > > apxs:Warning: your server binary `/usr/bin/httpd'.
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: /usr/bin/httpd not found or not executable
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: No shared object support for Apache
>> >> >> > > apxs:Warning: available under your platform. Make sure
>> >> >> > > apxs:Warning: the Apache module mod_so is compiled into
>> >> >> > > apxs:Warning: your server binary `/usr/bin/httpd'.
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > 1.X
>> >> >> > > apxs:Warning: /usr/bin/httpd not found or not executable
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: No shared object support for Apache
>> >> >> > > apxs:Warning: available under your platform. Make sure
>> >> >> > > apxs:Warning: the Apache module mod_so is compiled into
>> >> >> > > apxs:Warning: your server binary `/usr/bin/httpd'.
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > configure: creating ./config.status
>> >> >> > > config.status: creating Makefile
>>
>> >> >> > > make
>> >> >> > > /usr/sbin/apxs -c -I/usr/local/include/python2.6 -DNDEBUG   
>> >> >> > > mod_wsgi.c
>> >> >> > > -L/usr/local/lib -L/usr/local/lib/python2.6/config  -lpython2.6 -
>> >> >> > > lpthread -ldl  -lutil -lm
>> >> >> > > apxs:Warning: /usr/bin/httpd not found or not executable
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > apxs:Warning: No shared object support for Apache
>> >> >> > > apxs:Warning: available under your platform. Make sure
>> >> >> > > apxs:Warning: the Apache module mod_so is compiled into
>> >> >> > > apxs:Warning: your server binary `/usr/bin/httpd'.
>> >> >> > > apxs:Warning: Continuing anyway...
>> >> >> > > gcc -O2 -m486 -fno-strength-reduce -DLINUX=2 -DUSE_EXPAT -I../lib/
>> >> >> > > expat-lite -fpic -DSHARED_MODULE -I/usr/include/apache 
>> >> >> > > -I/usr/local/
>> >> >> > > include/python2.6 -DNDEBUG  -c mod_wsgi.c
>> >> >> > > mod_wsgi.c: In function âwsgi_hook_interceptâ:
>> >> >> > > mod_wsgi.c:7989: error: âAP_MAX_REG_MATCHâ undeclared (first use in
>> >> >> > > this function)
>> >> >> > > mod_wsgi.c:7989: error: (Each undeclared identifier is reported 
>> >> >> > > only
>> >> >> > > once
>> >> >> > > mod_wsgi.c:7989: error: for each function it appears in.)
>> >> >> > > apxs:Break: Command failed with rc=1
>> >> >> > > make: *** [mod_wsgi.so] Error 1
>>
>> >> >> > > On Apr 14, 11:47 am, Graham Dumpleton <[email protected]>
>> >> >> > > wrote:
>> >> >> > >> On 14 April 2010 15:25, MMRUser <[email protected]> wrote:
>>
>> >> >> > >> > I installed apache with yum.. and I'm not sure whether it split 
>> >> >> > >> > apxs,
>> >> >> > >> > even it split apxs from within the installation it should be in 
>> >> >> > >> > my
>> >> >> > >> > system correct me if I'm wrong.. and mod_wsgi should detect it.
>> >> >> > >> > Should I install apache-devel package it includes apxs see 
>> >> >> > >> > here:http://
>> >> >> > >> > rpm.pbone.net/index.php3/stat/6/idpl/3383565/dir/redhat_5.x/com/apache-
>> >> >> > >> > devel-1.3.4-1.i386.rpm
>>
>> >> >> > >> > /usr/sbin/apxs
>>
>> >> >> > >> You have to have apache-devel anyway.
>>
>> >> >> > >> Sounds like you should remove that other apxs package, then 
>> >> >> > >> install
>> >> >> > >> apache-devel.
>>
>> >> >> > >> The apache-devel package may still probably want some version of 
>> >> >> > >> perl
>> >> >> > >> for apxs to run.
>>
>> >> >> > >> Don't you have any perl version installed?
>>
>> >> >> > >> Graham
>>
>> >> >> > >> > On Apr 14, 10:35 am,
>>
>> ...
>>
>> read more »
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to