Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Need some help installing on Kubuntu 11.10

Help
Anonymous
2012-02-22
2013-03-19

  • Anonymous
    2012-02-22

    Hello, I am trying to install gnofract4d-3.14 on Kubuntu 11.10 from source.  I have installed an earlier Python version (2.6.7) to /opt/python2.6.7, with a link to /usr/bin/python2.6.7.  When I run the script I receive this error message: 

    starchild@573114N3bu74:~/gnofract4d-3.14$ ./setup.py build && ./setup.py install
    bash: ./setup.py: /opt/python2.6.7: bad interpreter: Permission denied
    

    I am very new at this and it's very likely  I have done something wrong. 

    Appreciate any help you can offer.

     
  • Rachel Mant
    Rachel Mant
    2012-02-23

    Hello anonymous poster,

    It sounds like your installation of Python is not executable, or if it is, it's not for everybody. It must also be readable by everybody. This gives you a base-line of privileges of 0755 for the file in question. also, you've not shown how you made your link. It must be a symlink.

    Try the following two commands:

    sudo chmod 0755 /opt/python2.6.7
    sudo ln -svf /opt/python2.6.7 /usr/bin/python2.6.7

    Hope that helps.
    ~DX-MON

     

  • Anonymous
    2012-02-24

    That did indeed fix the problem!  Thanks much :)

     

  • Anonymous
    2012-03-06

    OP here.  I have a new PC, this one is running Kubuntu 11.10 64-bit.  I am having very similar problems as to last time.  I have installed python2.6.7 to /opt/python2.6.7 and changed permissions and setup the link as per your instructions.  However, when I run the commands to install I am receiving the following error: 

    ./setup.py build && ./setup.py install
    Can't find 'libpng'
    Some functionality will be disabled
    NO PNG HEADERS FOUND
    Can't find 'libpng'
    Some functionality will be disabled
    NO JPEG HEADERS FOUND
    running build
    running build_py
    running my_build_ext
    compiling with None
    running build_scripts
    Traceback (most recent call last):
      File "./setup.py", line 284, in <module>
        os.path.walk("build",copy_libs,None)
      File "/opt/python2.6.7/lib/python2.6/posixpath.py", line 236, in walk
        walk(name, func, arg)
      File "/opt/python2.6.7/lib/python2.6/posixpath.py", line 236, in walk
        walk(name, func, arg)
      File "/opt/python2.6.7/lib/python2.6/posixpath.py", line 228, in walk
        func(arg, top, names)
      File "./setup.py", line 282, in copy_libs
        shutil.copy(name, target)
      File "/opt/python2.6.7/lib/python2.6/shutil.py", line 84, in copy
        copyfile(src, dst)
      File "/opt/python2.6.7/lib/python2.6/shutil.py", line 51, in copyfile
        with open(dst, 'wb') as fdst:
    IOError: [Errno 13] Permission denied: 'fract4d/fract4dc.so'
    

    If I run it as root I receive a different error: 

    sudo ./setup.py build && ./setup.py install
    Can't find 'libpng'
    Some functionality will be disabled
    NO PNG HEADERS FOUND
    Can't find 'libpng'
    Some functionality will be disabled
    NO JPEG HEADERS FOUND
    running build
    running build_py
    running my_build_ext
    compiling with None
    running build_scripts
    Can't find 'libpng'
    Some functionality will be disabled
    NO PNG HEADERS FOUND
    Can't find 'libpng'
    Some functionality will be disabled
    NO JPEG HEADERS FOUND
    running install
    running build
    running build_py
    running my_build_ext
    compiling with None
    running build_scripts
    running install_lib
    running build_ext
    changing mode of /opt/python2.6.7/lib/python2.6/site-packages/fractutils/get.py to 755
    error: /opt/python2.6.7/lib/python2.6/site-packages/fractutils/get.py: Operation not permitted
    

    Also note I have changed the first line in setup.py to read:  #!/usr/bin/env pyththon2.6.7

     

  • Anonymous
    2012-03-07

    I have tried this several times now, reinstalling python2.6.7, recreating the link, each time I am either met with the same 'permission denied' error I received originally, or I receive these new errors.   I really need to get this working..Any help would be appreciated.

     
  • Rachel Mant
    Rachel Mant
    2012-03-07

    Hi again,
    First you need to "sudo apt-get install libpng-dev libjpeg-dev" to get rid of the headers issues.
    Then you must run the install as root - this is all detailed in the HOWTO on installing Gnofract4d from sources. to run the install as root after a successful build, run "sudo ./setup.py install"
    Once you have the -dev packages down, delete the build folder with "yes | rm -rf build" as to get PNG and JPEG support, you'll need to do a clean rebuild which is what that will do.
    This will fix your issue.

    Yours,
    ~DX-MON