Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Need python 2.6 in Suse 11.4

  1. #1

    Default Need python 2.6 in Suse 11.4

    Hello

    I've tried installing Graphite One under my new clean Suse 11.4 64-bit installation. However, graphite one apparently needs python 2.6 to install and suse 11.4 comes with 2.7.
    I hope I can just create symbolic links to satisfy the installer to run?!?!?

    I've tried to make 2.6 links under /usr/bin and /usr/lib64. I'm using
    Code:
    sudo ln -s libpython2.7.so.1.0 libpython2.6.so.1.0
    to create the links, but I've sort of lost track of all the python librarys (.so .so.1 .so.1.0 and so on). Furthermore I have no idea about how to verify if it is correct.
    Code:
    ls -l /usr/bin/python*
    gives
    Code:
    lrwxrwxrwx 1 root root   18 12 mar 19:25 /usr/bin/python -> /usr/bin/python2.6*
    lrwxrwxrwx 1 root root   18 12 mar 19:25 /usr/bin/python2 -> /usr/bin/python2.6*
    lrwxrwxrwx 1 root root    9 12 mar 20:06 /usr/bin/python2.6 -> python2.7*
    -rwxr-xr-x 1 root root 6416 22 feb 22:42 /usr/bin/python2.7*
    So, basicly I need to know what I'm doing! Is it possible to fool the installer, to use Python 2.7 via symbolic links? And how do I get it right?

  2. #2

    Default Re: Need python 2.6 in Suse 11.4

    bump



    I have the same problem while trying to compile opencv with gpu support

  3. #3

    Default Re: Need python 2.6 in Suse 11.4

    As "superuser", in the /usr/lib64 directory, your link (ln -s libpython2.7.so.1.0 libpython2.6.so.1.0) worked to fix the "non-start" 'can't find 2.6.so.1.0' problem for my MakeHuman application. I did not have to make any other links. [I will, however, pass the information on to the MH dev's.]

  4. #4
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Need python 2.6 in Suse 11.4

    The clean solution if you need several python versions in parallel is to
    compile the extra versions from source. Python supports the option to
    compile and have as many parallel versions as you want by a make target. (I
    have myself several versions)

    Download the appropriate python version from
    http://www.python.org/download/releases/
    Then do

    ../configure
    make

    as usual, but after that do NOT do a "make install" as root, but instead a
    "make altinstall" which does not overwrite anything and adds the full
    version number to all library paths and creates also the binaries with
    version numbers appended.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.2 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  5. #5

    Default Re: Need python 2.6 in Suse 11.4

    Quote Originally Posted by martin_helm View Post
    The clean solution if you need several python versions in parallel is to
    compile the extra versions from source. Python supports the option to
    compile and have as many parallel versions as you want by a make target. (I
    have myself several versions)

    Download the appropriate python version from
    Releases
    Then do

    ../configure
    make

    as usual, but after that do NOT do a "make install" as root, but instead a
    "make altinstall" which does not overwrite anything and adds the full
    version number to all library paths and creates also the binaries with
    version numbers appended.
    And how i can install some lib for my python 2.6 instance, and how i execute a script with the 2.6 version instead the 2.7?

    Thanks

  6. #6
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Need python 2.6 in Suse 11.4

    sjstanich wrote:
    > And how i can install some lib for my python 2.6 instance, and how i
    > execute a script with the 2.6 version instead the 2.7?
    >
    > Thanks
    >

    Sorry for the late reply, I was not at home the last days. Both is easy: The
    executable for python 2.6 is python2.6 so you simply call that instead of
    python. If you have a script you need to change the !# line.
    Installing a library is of course done in the traditional way not with a rpm
    which depends on the library. In many cases you install a library with

    python2.6 setup.py install
    instead of
    python setup.py install

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  7. #7

    Default Re: Need python 2.6 in Suse 11.4

    Thanks martin

  8. #8
    Join Date
    May 2011
    Location
    Reno, Nevada, USA
    Posts
    22

    Default Re: Need python 2.6 in Suse 11.4

    Helped me too!
    Cheers, Joe

  9. #9

    Default Re: Need python 2.6 in Suse 11.4

    I am having a little trouble compiling python 2.6.
    I don't know which package(s) provide the dependencies...
    Code:
    /Python-2.6.6/Modules/_curses_panel.c:17:19: fatal error: panel.h: No such file or directory
    compilation terminated.
    
    Failed to find the necessary bits to build these modules:
    _bsddb             _tkinter           bsddb185        
    dl                 imageop            sunaudiodev     
    To find the necessary bits, look in setup.py in detect_modules() for the module's name.
    
    
    Failed to build these modules:
    _curses_panel

  10. #10
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Need python 2.6 in Suse 11.4

    ed v wrote:

    > panel.h

    I would say you need ncurses-devel

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •