Installing Vim With Python 3 Support Linux Unicorn Meta Zoo #1: Why another podcast? ...

Has a Nobel Peace laureate ever been accused of war crimes?

How do I check if a string is entirely made of the same substring?

Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?

What is /etc/mtab in Linux?

What does a straight horizontal line above a few notes, after a changed tempo mean?

Is there any pythonic way to find average of specific tuple elements in array?

What was Apollo 13's "Little Jolt" after MECO?

Was Dennis Ritchie being too modest in this quote about C and Pascal?

Contradiction proof for inequality of P and NP?

Is it acceptable to use working hours to read general interest books?

As an international instructor, should I openly talk about my accent?

Do I need to watch Ant-Man and the Wasp and Captain Marvel before watching Avengers: Endgame?

How can I wire a 9-position switch so that each position turns on one more LED than the one before?

Could moose/elk survive in the Amazon forest?

How much cash can I safely carry into the USA and avoid civil forfeiture?

Negative Resistance

What *exactly* is electrical current, voltage, and resistance?

Can you stand up from being prone using Skirmisher outside of your turn?

Intern got a job offer for same salary than a long term team member

First instead of 1 when referencing

How long after the last departure shall the airport stay open for an emergency return?

Why must Chinese maps be obfuscated?

Does Mathematica have an implementation of the Poisson binomial distribution?

Sharepoint Designer Discontinuation - software to modify existing workflows



Installing Vim With Python 3 Support Linux



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraInstalling vim7.2 on Solaris Sparc 10 as non-rootgvim redraw failurevim: Vim: Caught deadly signal SEGV on multiple filesHow to solve it when make the mod_python?vim "+ register unreachable. + key causes unwanted motiongcc --as-needed linker flag not workingReduce timeout value for “A start job is running for dev-disk-by” linuxApache process dies unexpectedlyadding an SSL cert to my Amazon AMI Linux distroInstalling TorChat on Kali Linux





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















This seems to be a relatively common problem but I've tried a variety of approaches and have not been able to compile Vim from source. I recently got an AWS EC2 Linux instance which I've been tinkering around with. Here are some baseline OS stats:



$ cat /proc/version 
Linux version 4.14.104-95.84.amzn2.x86_64 (mockbuild@ip-10-0-1-219) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Sat Mar 2 00:40:20 UTC 2019
$ cat /etc/*release
NAME="Amazon Linux"
VERSION="2"
ID="amzn"
ID_LIKE="centos rhel fedora"
VERSION_ID="2"
PRETTY_NAME="Amazon Linux 2"
ANSI_COLOR="0;33"
CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
HOME_URL="https://amazonlinux.com/"
Amazon Linux release 2 (Karoo)
$ uname -a
Linux ip-172-31-22-73.us-east-2.compute.internal 4.14.104-95.84.amzn2.x86_64 #1 SMP Sat Mar 2 00:40:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


The issue is I've tried upgrading vim to be version 8.1 but whenever I vim into anything, I see:




You need vim compiled with Python 2.6, 2.7 or 3.2 and later support
for Powerline to work. Please consult the documentation for more
details.




Which led me to check vim --version and I see:



+comments          +libcall           -python            +visualextra
+conceal +linebreak -python3 +viminfo


You'll note that the python support isn't actually there. However, I've configured with this:



./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr


And the configuration output shows this:



checking Python version... (cached) 3.7
checking Python is 3.0 or better... yep
checking Python's abiflags... (cached) m
checking Python's install prefix... (cached) /usr
checking Python's execution prefix... (cached) /usr
(cached) checking Python's configuration directory... (cached) /usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu
(cached) checking Python3's dll name... (cached) libpython3.7m.so.1.0
checking if -pthread should be used... yes
checking if compile and link flags for Python 3 are sane... yes
checking if -fPIE can be added for Python3... yes


Leading me to believe that everything should be set up fine for the vim upgrade. After I run that ./configure command, I run sudo make and then sudo make install - which I think is the correct workflow. I'm still seeing the same vim complaint.



Does anyone have any ideas? The below links were good starting points for me.



https://github.com/powerline/powerline/issues/432
https://vi.stackexchange.com/questions/11526/how-to-enable-python-feature-in-vim










share|improve this question







New contributor




jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    0















    This seems to be a relatively common problem but I've tried a variety of approaches and have not been able to compile Vim from source. I recently got an AWS EC2 Linux instance which I've been tinkering around with. Here are some baseline OS stats:



    $ cat /proc/version 
    Linux version 4.14.104-95.84.amzn2.x86_64 (mockbuild@ip-10-0-1-219) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Sat Mar 2 00:40:20 UTC 2019
    $ cat /etc/*release
    NAME="Amazon Linux"
    VERSION="2"
    ID="amzn"
    ID_LIKE="centos rhel fedora"
    VERSION_ID="2"
    PRETTY_NAME="Amazon Linux 2"
    ANSI_COLOR="0;33"
    CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
    HOME_URL="https://amazonlinux.com/"
    Amazon Linux release 2 (Karoo)
    $ uname -a
    Linux ip-172-31-22-73.us-east-2.compute.internal 4.14.104-95.84.amzn2.x86_64 #1 SMP Sat Mar 2 00:40:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


    The issue is I've tried upgrading vim to be version 8.1 but whenever I vim into anything, I see:




    You need vim compiled with Python 2.6, 2.7 or 3.2 and later support
    for Powerline to work. Please consult the documentation for more
    details.




    Which led me to check vim --version and I see:



    +comments          +libcall           -python            +visualextra
    +conceal +linebreak -python3 +viminfo


    You'll note that the python support isn't actually there. However, I've configured with this:



    ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr


    And the configuration output shows this:



    checking Python version... (cached) 3.7
    checking Python is 3.0 or better... yep
    checking Python's abiflags... (cached) m
    checking Python's install prefix... (cached) /usr
    checking Python's execution prefix... (cached) /usr
    (cached) checking Python's configuration directory... (cached) /usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu
    (cached) checking Python3's dll name... (cached) libpython3.7m.so.1.0
    checking if -pthread should be used... yes
    checking if compile and link flags for Python 3 are sane... yes
    checking if -fPIE can be added for Python3... yes


    Leading me to believe that everything should be set up fine for the vim upgrade. After I run that ./configure command, I run sudo make and then sudo make install - which I think is the correct workflow. I'm still seeing the same vim complaint.



    Does anyone have any ideas? The below links were good starting points for me.



    https://github.com/powerline/powerline/issues/432
    https://vi.stackexchange.com/questions/11526/how-to-enable-python-feature-in-vim










    share|improve this question







    New contributor




    jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      This seems to be a relatively common problem but I've tried a variety of approaches and have not been able to compile Vim from source. I recently got an AWS EC2 Linux instance which I've been tinkering around with. Here are some baseline OS stats:



      $ cat /proc/version 
      Linux version 4.14.104-95.84.amzn2.x86_64 (mockbuild@ip-10-0-1-219) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Sat Mar 2 00:40:20 UTC 2019
      $ cat /etc/*release
      NAME="Amazon Linux"
      VERSION="2"
      ID="amzn"
      ID_LIKE="centos rhel fedora"
      VERSION_ID="2"
      PRETTY_NAME="Amazon Linux 2"
      ANSI_COLOR="0;33"
      CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
      HOME_URL="https://amazonlinux.com/"
      Amazon Linux release 2 (Karoo)
      $ uname -a
      Linux ip-172-31-22-73.us-east-2.compute.internal 4.14.104-95.84.amzn2.x86_64 #1 SMP Sat Mar 2 00:40:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


      The issue is I've tried upgrading vim to be version 8.1 but whenever I vim into anything, I see:




      You need vim compiled with Python 2.6, 2.7 or 3.2 and later support
      for Powerline to work. Please consult the documentation for more
      details.




      Which led me to check vim --version and I see:



      +comments          +libcall           -python            +visualextra
      +conceal +linebreak -python3 +viminfo


      You'll note that the python support isn't actually there. However, I've configured with this:



      ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr


      And the configuration output shows this:



      checking Python version... (cached) 3.7
      checking Python is 3.0 or better... yep
      checking Python's abiflags... (cached) m
      checking Python's install prefix... (cached) /usr
      checking Python's execution prefix... (cached) /usr
      (cached) checking Python's configuration directory... (cached) /usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu
      (cached) checking Python3's dll name... (cached) libpython3.7m.so.1.0
      checking if -pthread should be used... yes
      checking if compile and link flags for Python 3 are sane... yes
      checking if -fPIE can be added for Python3... yes


      Leading me to believe that everything should be set up fine for the vim upgrade. After I run that ./configure command, I run sudo make and then sudo make install - which I think is the correct workflow. I'm still seeing the same vim complaint.



      Does anyone have any ideas? The below links were good starting points for me.



      https://github.com/powerline/powerline/issues/432
      https://vi.stackexchange.com/questions/11526/how-to-enable-python-feature-in-vim










      share|improve this question







      New contributor




      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      This seems to be a relatively common problem but I've tried a variety of approaches and have not been able to compile Vim from source. I recently got an AWS EC2 Linux instance which I've been tinkering around with. Here are some baseline OS stats:



      $ cat /proc/version 
      Linux version 4.14.104-95.84.amzn2.x86_64 (mockbuild@ip-10-0-1-219) (gcc version 7.3.1 20180303 (Red Hat 7.3.1-5) (GCC)) #1 SMP Sat Mar 2 00:40:20 UTC 2019
      $ cat /etc/*release
      NAME="Amazon Linux"
      VERSION="2"
      ID="amzn"
      ID_LIKE="centos rhel fedora"
      VERSION_ID="2"
      PRETTY_NAME="Amazon Linux 2"
      ANSI_COLOR="0;33"
      CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2"
      HOME_URL="https://amazonlinux.com/"
      Amazon Linux release 2 (Karoo)
      $ uname -a
      Linux ip-172-31-22-73.us-east-2.compute.internal 4.14.104-95.84.amzn2.x86_64 #1 SMP Sat Mar 2 00:40:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


      The issue is I've tried upgrading vim to be version 8.1 but whenever I vim into anything, I see:




      You need vim compiled with Python 2.6, 2.7 or 3.2 and later support
      for Powerline to work. Please consult the documentation for more
      details.




      Which led me to check vim --version and I see:



      +comments          +libcall           -python            +visualextra
      +conceal +linebreak -python3 +viminfo


      You'll note that the python support isn't actually there. However, I've configured with this:



      ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr


      And the configuration output shows this:



      checking Python version... (cached) 3.7
      checking Python is 3.0 or better... yep
      checking Python's abiflags... (cached) m
      checking Python's install prefix... (cached) /usr
      checking Python's execution prefix... (cached) /usr
      (cached) checking Python's configuration directory... (cached) /usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu
      (cached) checking Python3's dll name... (cached) libpython3.7m.so.1.0
      checking if -pthread should be used... yes
      checking if compile and link flags for Python 3 are sane... yes
      checking if -fPIE can be added for Python3... yes


      Leading me to believe that everything should be set up fine for the vim upgrade. After I run that ./configure command, I run sudo make and then sudo make install - which I think is the correct workflow. I'm still seeing the same vim complaint.



      Does anyone have any ideas? The below links were good starting points for me.



      https://github.com/powerline/powerline/issues/432
      https://vi.stackexchange.com/questions/11526/how-to-enable-python-feature-in-vim







      linux vim python redhat-enterprise-linux






      share|improve this question







      New contributor




      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 23 hours ago









      jlarks32jlarks32

      1011




      1011




      New contributor




      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Classic. Of course after a day of trying things, I see this 5 minute after posting:
          https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source



          And notice that the --prefix command differs between what i was trying (/usr) and what Valloric was suggesting (/usr/local).



          Specifying this configuration command:



          sudo ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr/local


          Actually does fix the issue. However, I'm unsure as to why the prefix flag should have been pointed to the local directory instead of just the /usr folder.






          share|improve this answer








          New contributor




          jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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
            });


            }
            });






            jlarks32 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1429225%2finstalling-vim-with-python-3-support-linux%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














            Classic. Of course after a day of trying things, I see this 5 minute after posting:
            https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source



            And notice that the --prefix command differs between what i was trying (/usr) and what Valloric was suggesting (/usr/local).



            Specifying this configuration command:



            sudo ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr/local


            Actually does fix the issue. However, I'm unsure as to why the prefix flag should have been pointed to the local directory instead of just the /usr folder.






            share|improve this answer








            New contributor




            jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              0














              Classic. Of course after a day of trying things, I see this 5 minute after posting:
              https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source



              And notice that the --prefix command differs between what i was trying (/usr) and what Valloric was suggesting (/usr/local).



              Specifying this configuration command:



              sudo ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr/local


              Actually does fix the issue. However, I'm unsure as to why the prefix flag should have been pointed to the local directory instead of just the /usr folder.






              share|improve this answer








              New contributor




              jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.























                0












                0








                0







                Classic. Of course after a day of trying things, I see this 5 minute after posting:
                https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source



                And notice that the --prefix command differs between what i was trying (/usr) and what Valloric was suggesting (/usr/local).



                Specifying this configuration command:



                sudo ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr/local


                Actually does fix the issue. However, I'm unsure as to why the prefix flag should have been pointed to the local directory instead of just the /usr folder.






                share|improve this answer








                New contributor




                jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                Classic. Of course after a day of trying things, I see this 5 minute after posting:
                https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source



                And notice that the --prefix command differs between what i was trying (/usr) and what Valloric was suggesting (/usr/local).



                Specifying this configuration command:



                sudo ./configure --enable-python3interp --with-python3-config-dir=/usr/lib64/python3.7/config-3.7m-x86_64-linux-gnu --enable-rubyinterp --enable-gui=no --without-x --enable-cscope --enable-multibyte --prefix=/usr/local


                Actually does fix the issue. However, I'm unsure as to why the prefix flag should have been pointed to the local directory instead of just the /usr folder.







                share|improve this answer








                New contributor




                jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 23 hours ago









                jlarks32jlarks32

                1011




                1011




                New contributor




                jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                jlarks32 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                    jlarks32 is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    jlarks32 is a new contributor. Be nice, and check out our Code of Conduct.













                    jlarks32 is a new contributor. Be nice, and check out our Code of Conduct.












                    jlarks32 is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1429225%2finstalling-vim-with-python-3-support-linux%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

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

                    looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...