mod_wgi installation failed with python3












0















trying to install mod_wsgi for django1.9 (python version 3.5 ) . But getting below error



gcc -pthread -shared build/temp.linux-x86_64-3.5/src/server/wsgi_validate.o build/temp.linux-x86_64-3.5/src/server/wsgi_thread.o build/temp.linux-x86_64-3.5/src/server/wsgi_stream.o build/temp.linux-x86_64-3.5/src/server/wsgi_server.o build/temp.linux-x86_64-3.5/src/server/wsgi_restrict.o build/temp.linux-x86_64-3.5/src/server/wsgi_metrics.o build/temp.linux-x86_64-3.5/src/server/wsgi_memory.o build/temp.linux-x86_64-3.5/src/server/wsgi_logger.o build/temp.linux-x86_64-3.5/src/server/wsgi_interp.o build/temp.linux-x86_64-3.5/src/server/wsgi_daemon.o build/temp.linux-x86_64-3.5/src/server/wsgi_convert.o build/temp.linux-x86_64-3.5/src/server/wsgi_buckets.o build/temp.linux-x86_64-3.5/src/server/wsgi_apache.o build/temp.linux-x86_64-3.5/src/server/mod_wsgi.o -o build/lib.linux-x86_64-3.5/mod_wsgi/server/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so -L/home/webdev01/python3/lib -L/home/webdev01/python3/lib/python3.5/config-3.5m -lpython3.5m
/usr/bin/ld: /home/webdev01/python3/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
/home/webdev01/python3/lib/libpython3.5m.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/web0/home/webdev01/pythonenv3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-6atgj_5e-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-bcnhqmnp-record/install-record.txt --single-version-externally-managed --compile --install-headers /web0/home/webdev01/pythonenv3/include/site/python3.5/mod-wsgi" failed with error code 1 in /tmp/pip-6atgj_5e-build/









share|improve this question





























    0















    trying to install mod_wsgi for django1.9 (python version 3.5 ) . But getting below error



    gcc -pthread -shared build/temp.linux-x86_64-3.5/src/server/wsgi_validate.o build/temp.linux-x86_64-3.5/src/server/wsgi_thread.o build/temp.linux-x86_64-3.5/src/server/wsgi_stream.o build/temp.linux-x86_64-3.5/src/server/wsgi_server.o build/temp.linux-x86_64-3.5/src/server/wsgi_restrict.o build/temp.linux-x86_64-3.5/src/server/wsgi_metrics.o build/temp.linux-x86_64-3.5/src/server/wsgi_memory.o build/temp.linux-x86_64-3.5/src/server/wsgi_logger.o build/temp.linux-x86_64-3.5/src/server/wsgi_interp.o build/temp.linux-x86_64-3.5/src/server/wsgi_daemon.o build/temp.linux-x86_64-3.5/src/server/wsgi_convert.o build/temp.linux-x86_64-3.5/src/server/wsgi_buckets.o build/temp.linux-x86_64-3.5/src/server/wsgi_apache.o build/temp.linux-x86_64-3.5/src/server/mod_wsgi.o -o build/lib.linux-x86_64-3.5/mod_wsgi/server/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so -L/home/webdev01/python3/lib -L/home/webdev01/python3/lib/python3.5/config-3.5m -lpython3.5m
    /usr/bin/ld: /home/webdev01/python3/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
    /home/webdev01/python3/lib/libpython3.5m.a: could not read symbols: Bad value
    collect2: error: ld returned 1 exit status
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
    Command "/web0/home/webdev01/pythonenv3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-6atgj_5e-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-bcnhqmnp-record/install-record.txt --single-version-externally-managed --compile --install-headers /web0/home/webdev01/pythonenv3/include/site/python3.5/mod-wsgi" failed with error code 1 in /tmp/pip-6atgj_5e-build/









    share|improve this question



























      0












      0








      0








      trying to install mod_wsgi for django1.9 (python version 3.5 ) . But getting below error



      gcc -pthread -shared build/temp.linux-x86_64-3.5/src/server/wsgi_validate.o build/temp.linux-x86_64-3.5/src/server/wsgi_thread.o build/temp.linux-x86_64-3.5/src/server/wsgi_stream.o build/temp.linux-x86_64-3.5/src/server/wsgi_server.o build/temp.linux-x86_64-3.5/src/server/wsgi_restrict.o build/temp.linux-x86_64-3.5/src/server/wsgi_metrics.o build/temp.linux-x86_64-3.5/src/server/wsgi_memory.o build/temp.linux-x86_64-3.5/src/server/wsgi_logger.o build/temp.linux-x86_64-3.5/src/server/wsgi_interp.o build/temp.linux-x86_64-3.5/src/server/wsgi_daemon.o build/temp.linux-x86_64-3.5/src/server/wsgi_convert.o build/temp.linux-x86_64-3.5/src/server/wsgi_buckets.o build/temp.linux-x86_64-3.5/src/server/wsgi_apache.o build/temp.linux-x86_64-3.5/src/server/mod_wsgi.o -o build/lib.linux-x86_64-3.5/mod_wsgi/server/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so -L/home/webdev01/python3/lib -L/home/webdev01/python3/lib/python3.5/config-3.5m -lpython3.5m
      /usr/bin/ld: /home/webdev01/python3/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
      /home/webdev01/python3/lib/libpython3.5m.a: could not read symbols: Bad value
      collect2: error: ld returned 1 exit status
      error: command 'gcc' failed with exit status 1

      ----------------------------------------
      Command "/web0/home/webdev01/pythonenv3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-6atgj_5e-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-bcnhqmnp-record/install-record.txt --single-version-externally-managed --compile --install-headers /web0/home/webdev01/pythonenv3/include/site/python3.5/mod-wsgi" failed with error code 1 in /tmp/pip-6atgj_5e-build/









      share|improve this question
















      trying to install mod_wsgi for django1.9 (python version 3.5 ) . But getting below error



      gcc -pthread -shared build/temp.linux-x86_64-3.5/src/server/wsgi_validate.o build/temp.linux-x86_64-3.5/src/server/wsgi_thread.o build/temp.linux-x86_64-3.5/src/server/wsgi_stream.o build/temp.linux-x86_64-3.5/src/server/wsgi_server.o build/temp.linux-x86_64-3.5/src/server/wsgi_restrict.o build/temp.linux-x86_64-3.5/src/server/wsgi_metrics.o build/temp.linux-x86_64-3.5/src/server/wsgi_memory.o build/temp.linux-x86_64-3.5/src/server/wsgi_logger.o build/temp.linux-x86_64-3.5/src/server/wsgi_interp.o build/temp.linux-x86_64-3.5/src/server/wsgi_daemon.o build/temp.linux-x86_64-3.5/src/server/wsgi_convert.o build/temp.linux-x86_64-3.5/src/server/wsgi_buckets.o build/temp.linux-x86_64-3.5/src/server/wsgi_apache.o build/temp.linux-x86_64-3.5/src/server/mod_wsgi.o -o build/lib.linux-x86_64-3.5/mod_wsgi/server/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so -L/home/webdev01/python3/lib -L/home/webdev01/python3/lib/python3.5/config-3.5m -lpython3.5m
      /usr/bin/ld: /home/webdev01/python3/lib/libpython3.5m.a(abstract.o): relocation R_X86_64_32S against `_Py_NotImplementedStruct' can not be used when making a shared object; recompile with -fPIC
      /home/webdev01/python3/lib/libpython3.5m.a: could not read symbols: Bad value
      collect2: error: ld returned 1 exit status
      error: command 'gcc' failed with exit status 1

      ----------------------------------------
      Command "/web0/home/webdev01/pythonenv3/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-6atgj_5e-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-bcnhqmnp-record/install-record.txt --single-version-externally-managed --compile --install-headers /web0/home/webdev01/pythonenv3/include/site/python3.5/mod-wsgi" failed with error code 1 in /tmp/pip-6atgj_5e-build/






      python mod-wsgi python-3.5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 20 at 14:14









      Cœur

      18.1k9108148




      18.1k9108148










      asked Mar 30 '17 at 12:06









      AnishAnish

      2,32442351




      2,32442351
























          1 Answer
          1






          active

          oldest

          votes


















          0














          Variation of:




          • http://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages


          You need to install Python with a shared library.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43117427%2fmod-wgi-installation-failed-with-python3%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Variation of:




            • http://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages


            You need to install Python with a shared library.






            share|improve this answer




























              0














              Variation of:




              • http://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages


              You need to install Python with a shared library.






              share|improve this answer


























                0












                0








                0







                Variation of:




                • http://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages


                You need to install Python with a shared library.






                share|improve this answer













                Variation of:




                • http://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html#mixing-32-bit-and-64-bit-packages


                You need to install Python with a shared library.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 30 '17 at 19:54









                Graham DumpletonGraham Dumpleton

                48.3k680106




                48.3k680106
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f43117427%2fmod-wgi-installation-failed-with-python3%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Liquibase includeAll doesn't find base path

                    How to use setInterval in EJS file?

                    Petrus Granier-Deferre