Now I remember, this is what happened when I tried to run "pip3.6 install 
mod_wsgi":

server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so 
-L/apps/python-3.6.3/lib -L/apps/python-3.6.3/lib/python3.6/config-3.6m 
-lpython3.6m
    /usr/bin/ld: /apps/python-3.6.3/lib/libpython3.6m.a(abstract.o): 
relocation R_X86_64_32S against `_PyObject_NextNotImplemented' can not be 
used when making a shared object; recompile with -fPIC
    /apps/python-3.6.3/lib/libpython3.6m.a: could not read symbols: Bad 
value
    collect2: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/apps/python-3.6.3/bin/python3.6 -u -c "import setuptools, 
tokenize;__file__='/tmp/pip-build-lsdntr6f/mod-wsgi/setup.py';f=getattr(tokenize,
 
'open', open)(__file__);code=f.read().replace('\r\n', 
'\n');f.close();exec(compile(code, __file__, 'exec'))" install --record 
/tmp/pip-ltr8j01f-record/install-record.txt 
--single-version-externally-managed --compile" failed with error code 1 in 
/tmp/pip-build-lsdntr6f/mod-wsgi/


I will try the setup.py next... I think that was the one that worked 
better...





On Wednesday, November 8, 2017 at 12:05:49 AM UTC-5, O haya wrote:
>
> Hi,
>
> Ok thanks for that info.
>
> I didn't get into detail earlier, but among the attempts that I tried to 
> build mod-wsgi earlier, I actually DID get the "mod_wsgi-express 
> start-server" to work, but then when I tried to add the LoadModule to my 
> Apache 2.4.25, the Apache still failed again, for the same error (the one 
> with "mech" in the error message).  The configuration is now gone (I 
> restored a snapshot).
>
> I have to think about this some more :(...
>
> Jim
>
>
> On Tuesday, November 7, 2017 at 11:28:13 PM UTC-5, Graham Dumpleton wrote:
>>
>> Short answer is you cannot use a mod_wsgi.so from a yum package against 
>> anything but the binary distribution of Apache it was built for. You cannot 
>> use it with a separate Apache you compiled from source code as how it was 
>> built would likely be incompatible.
>>
>> I can only recommend you start out with the pip method for installation 
>> as described in the issue at:
>>
>> * https://github.com/GrahamDumpleton/mod_wsgi
>>
>> as the easiest way to move forward.
>>
>> If you cannot get that working as I described such that 'mod_wsgi-express 
>> start-server' does something, you need to provide the details of what 
>> errors you are getting and what you were doing at that point. I can't guess 
>> why you can't install it without seeing the errors.
>>
>> Also use either the mailing list or the issue, and not both.
>>
>> Graham
>>
>> On 8 Nov 2017, at 3:22 PM, O haya <[email protected]> wrote:
>>
>> Hi,
>>
>> Re. why I was copying the mod_wsgi.so - that was mainly because I was 
>> trying to get it into the Apache modules directory.  FYI, I also tried just 
>> using the path+file to the mod_wsgi.so in the LoadModule, with same 
>> symptoms.
>>
>> Re. was Apache installed by yum - no, it was built from the Apache 2.4.25 
>> source (originally from a tar.gz from apache.org).
>>
>> Re. "Are you also trying to install mod_wsgi using pip?" - I am not sure 
>> what you mean by that, but as I mentioned on the issues (which I assume you 
>> saw), after I failed trying to get the built-mod_wsgi.so (from yum install) 
>> working I tried building the mod_wsgi a number of times, including using 
>> the system.py approach, the pip install and also the configure/make/make 
>> altinstall - all failed.
>>
>> Re. "the Apache installation you are using is much older than the version 
>> the mod_wsgi module was compiled for." - The Apache I was trying was built 
>> from the 2.4.25 source.  Current Apache source on apache.org is 2.4.29, 
>> so it's not terribly old :).  So are you saying that you think that if I 
>> went to say build Apache 2.4.29 that the mod_wsgi from yum would work? 
>>
>> If so, I would try that, but FYI, our Apaches at work are even older that 
>> the 2.4.25, so if we want mod_wsgi for those would an older mod_wsgi 
>> (either rpm maybe or source) work with the older Apache?
>>
>> Thanks,
>> Jim
>>
>>
>> On Tuesday, November 7, 2017 at 6:51:38 PM UTC-5, Graham Dumpleton wrote:
>>>
>>> I am confused about why you are copying the mod_wsgi.so file anywhere. 
>>> When you install mod_wsgi using yum, it should put everything in the 
>>> correct place to start with.
>>>
>>> Are you also using Apache install by yum?
>>>
>>> Are you also trying to install mod_wsgi using pip?
>>>
>>> That error indicates that the Apache installation you are using is much 
>>> older than the version the mod_wsgi module was compiled for.
>>>
>>> Graham
>>>
>>> On 8 Nov 2017, at 10:37 AM, O haya <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> I am trying to use WSGI on Apache 2.4.x on CENTOS.
>>>
>>> I installed mod_wsgi using yum (yum install mod_wsgi), then I copied the 
>>> mod_wsgi.so to the Apache modules dir and added a Load Module for mod_wsgi.
>>>
>>> However, when I try to start Apache I am getting this:
>>>
>>> /apps/apache/bin/apachectl start
>>>
>>> httpd: Syntax error on line 152 of /apps/apache/conf/httpd.conf: Cannot 
>>> load modules/mod_wsgi.so into server: /apps/apache/modules/mod_wsgi.so: 
>>> undefined symbol: ap_accept_lock_mech
>>>
>>> Can anyone tell me why this error is occurring and also, how can I get 
>>> mod_wsgi to work?
>>>
>>> Thanks,
>>> Jim
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "modwsgi" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/modwsgi.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "modwsgi" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at https://groups.google.com/group/modwsgi.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to