> On 12 Jul 2016, at 12:12 AM, Ebrahim Karam <[email protected]> wrote: > > This is a system Python Version. I got it from this specific site. > https://www.python.org/downloads/ > > I tried to reinstall Python 3.5.2 > > I re downloaded the source code "Python-3.5.2.tar.xz" and extracted the > contents > Then I went to the diretory > > I ran > sudo make distclean > To ensure there weren't any make files > > I than ran > sudo ./configure --enable-shared > > Afterwasrds I ran > sudo make && sudo make install > > I got the following message at the end of the log however > gcc -pthread -shared -Wl,--no-as-needed -o libpython3.so > -Wl,-hlibpython3.so libpython3.5m.so > gcc -pthread -Xlinker -export-dynamic -o python Programs/python.o -L. > -lpython3.5m -lpthread -ldl -lutil -lrt -lm > LD_LIBRARY_PATH=/home/ebrahim/Python-3.5.2 (2) ./python -E -S -m sysconfig > --generate-posix-vars ;\ > if test $? -ne 0 ; then \ > echo "generate-posix-vars failed" ; \ > rm -f ./pybuilddir.txt ; \ > exit 1 ; \ > fi > /bin/sh: 1: Syntax error: "(" unexpected > make: *** [pybuilddir.txt] Error 2
This blew up because you are trying to install into a path which includes spaces, as well as brackets. /home/ebrahim/Python-3.5.2 (2) Use a path which doesn’t have spaces or any special characters. Try installing again ensuring that --enable-shared is used. Graham > I ignored the message and continued to reinstalling mod_wsgi > pip install mod_wsgi > > I tried running > mod_wsgi-express start-server > > I got the same error as before > for completeness here it is > Syntax error on line 151 of /tmp/mod_wsgi-localhost:8000:1029/httpd.conf: > Cannot load > /home/ebrahim/Blog_Tutorial_with_Apache/TestIt/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so > into server: > /home/ebrahim/Blog_Tutorial_with_Apache/TestIt/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so: > undefined symbol: fmod > > I ran > ldd > /home/ebrahim/Blog_Tutorial_with_Apache/TestIt/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so > > and got the following log again which is different than before > n-35m-i386-linux-gnu.so > linux-gate.so.1 => (0xb77a6000) > libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb7468000) > libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb72bf000) > /lib/ld-linux.so.2 (0xb77a7000) > > > > > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <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.
