SUSE 12 installation python3.6

Step ( must be installed in the order given below , do not ask me why, because I stepped pit Saturn has so much):

  Install zlib-1.2.11.tar.gz

      ./configure

      make

      make install

  Install readline-devel

    suse do apt-get and yum, use the zypper, so at the command line, enter zypper -i readline-devel to get

  Install Python-3.6.8.tgz

    ./configure --prefix=/usr/local/python3

    make

    make install

If I upset the order according to the above installation, there is such a pit below may occur when the solution in the order above me do it again just fine

  Pit 1:

  zipimport.ZipImportError: Decompress Data CAN Not; Not Available zlib 
  the Makefile: 1079: Recipe for target 'the install' failed 
  the make: *** [the install] Error. 1 
  If the installation package directly python, this error occurs, so need to install zlib pack and install python

  Pit 2:

    Appears import readline ImportError: No module named readline error, and Tab, left direction key and the like do not work, but other distortion output ^ D

    The reason is not installed readline-devel,

    But do not think that there is no readline-devel, then install a readline-devel get away, after readline-devel you need to install over, re-install python, otherwise, an error will occur below the Pit 3

  Pit 3:

    *** Error in `python3': double free or corruption (out): 0x00007f15dbfb4560 ***

    Install python, install readline-devel package in interactive mode, constantly press the Enter health, this error will occur if there is, on the order above me, and do it again like

 

Guess you like

Origin www.cnblogs.com/SBJBA/p/11406752.html