My answers below:

which python3 > /usr/bin/python3

Did you install this from source code yourself?  Yes, I did install from 
the source code by myself. Was not aware that CentOS would have relatively 
latest "Python 3".

which yes > /usr/bin/yes

On Tuesday, April 6, 2021 at 11:50:33 PM UTC+1 Graham Dumpleton wrote:

> You didn't answer the question of what you get for:
>
>     which python3
>
> Also, why do you have Python in:
>
>     /usr/local/python/Python-3.9.2
>
> Did you install this from source code yourself? Why aren't you using the 
> Python that CentOS provides? Installing Python from source code can cause 
> various problems if you don't configure it correctly.
>
> Also, what do you get for running:
>
>     which yes
>
> Graham
>
> On 7 Apr 2021, at 8:47 am, Satinder Singh <[email protected]> wrote:
>
> I am on CentOS 8 and Python version is 3.9.2. As a matter of fact 
> completely new to Python as well and the Django web framework that I am 
> attempting to run. 
>
> On Tuesday, April 6, 2021 at 11:36:55 PM UTC+1 Graham Dumpleton wrote:
>
>> What operating system are you using?
>>
>> Also, the PATH doesn't really look quite right since Python executable 
>> would usually be in a "bin" directory. What do you get for:
>>
>>     which python3
>>
>> On 7 Apr 2021, at 8:33 am, Satinder Singh <[email protected]> wrote:
>>
>> Thanks Graham,
>>
>> 1- I installed httpd-devel successfully.
>> 2 - Have the following PATH in my .bash_profile
>>
>> # User specific environment and startup programs
>>
>> PATH=$PATH:$HOME/bin:/usr/local/python/Python-3.9.2
>>
>> export PATH
>>
>> 3- When I execute ./configure --with-python python3, I get the following 
>> message:
>>
>> checking Apache version... 2.4.37
>>
>> followed by the message below multiple times:
>>
>> yes: invalid option -- 'c'
>>
>> Try 'yes --help' for more information.
>>
>> yes: invalid option -- 'c'
>>
>> Try 'yes --help' for more information.
>>
>> and finally terminating with the below messages:
>>
>> configure: creating ./config.status
>>
>> config.status: creating Makefile
>>
>> 4 - There is some content in these files, but wouldn't know what to do 
>> next. I am completely new to this world of modwsgi . Neither does the guide 
>> that I listed in my original post makes any mention of these two files.
>>
>> Regards 
>> On Tuesday, April 6, 2021 at 10:58:30 PM UTC+1 Graham Dumpleton wrote:
>>
>>> At a guess, you only have Python 3 installed and it doesn't provide a 
>>> link from python to python3, plus you don't have Apache devel package 
>>> installed either.
>>>
>>> Ensure you install the appropriate Apache devel package for you your 
>>> operating system variant.
>>>
>>> Then use:
>>>
>>>     ./configure --with-python python3
>>>
>>> to tell configure the name of the Python program.
>>>
>>> Graham
>>>
>>> On 7 Apr 2021, at 7:54 am, Satinder Singh <[email protected]> wrote:
>>>
>>> I am trying to follow this documentation here:
>>>
>>>
>>> https://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html
>>>
>>> However, when I execute .configure (to configure the source code of 
>>> mod_wsgi), I keep getting the following errors:
>>>
>>> checking for python... no
>>>
>>> ./configure: line 2849: python: command not found
>>>
>>> ./configure: line 2853: python: command not found
>>>
>>> ./configure: line 2861: python: command not found
>>>
>>> ./configure: line 2866: python: command not found
>>>
>>> ./configure: line 2880: python: command not found
>>>
>>> ./configure: line 2884: python: command not found
>>>
>>> ./configure: line 2887: python: command not found
>>>
>>> ./configure: line 2890: python: command not found
>>>
>>> ./configure: line 2893: python: command not found
>>>
>>> ./configure: line 2919: python: command not found
>>>
>>> ./configure: line 2922: python: command not found
>>>
>>> ./configure: line 2964: apxs: command not found
>>>
>>> configure: creating ./config.status
>>>
>>> config.status: creating Makefile
>>>
>>>
>>> What is a solution to this? Please advise.
>>>
>>> -- 
>>> 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 view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/modwsgi/19c29353-9669-4844-a01e-d32c5f133064n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/modwsgi/19c29353-9669-4844-a01e-d32c5f133064n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>>
>>>
>> -- 
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/modwsgi/9be14c77-d146-4512-bf5c-49ee3a231c05n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/modwsgi/9be14c77-d146-4512-bf5c-49ee3a231c05n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
>>
> -- 
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/modwsgi/cafd81d4-2453-427a-b4a9-3582d966a7f2n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/modwsgi/cafd81d4-2453-427a-b4a9-3582d966a7f2n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/modwsgi/55c3f040-f671-432c-9676-cc4e65b42081n%40googlegroups.com.

Reply via email to