Results 1 to 5 of 5

Thread: creating hard or soft links

  1. #1
    Join Date
    Jun 2012
    Beans
    93

    creating hard or soft links

    I have installed python 3.3 and am trying to create a link from /usr/bin to where I have installed the new version. In the /usr/bin folder I find

    python -> python2.7
    python2 -> python2.7

    Which are links to enable python to be run. Now I want to leave python2.7 where it is and create another link called python3 and point it to the location of the executable where my new install is. I have tried a few things like

    ln -i python3 /home/berny/python/Python-3.3.0/debug/python

    this did not work. Lost my python file so had to re-install, also tried

    ln -s python3 /home/berny/python/Python-3.3.0/debug/python

    but this did'nt work either

    please advise. Thanks in advance

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: creating hard or soft links

    I have the 3.2 version installed from the repositories and this is what I have. Did you change to make python executeable?

    Whatever you do, do not modify any settings on python or python2.7 links. The Ubuntu system relies on those links and if you break them, you may have to reinstall.
    Attached Images Attached Images
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Aug 2010
    Location
    Lancs, United Kingdom
    Beans
    1,300
    Distro
    Ubuntu Mate 16.04 Xenial Xerus

    Re: creating hard or soft links

    You have your arguments to ln the wrong way round.
    Code:
    sudo ln -s /home/berny/python/Python-3.3.0/debug/python /usr/bin/python3
    However, if this is just for you to run, I would suggest putting it in your own bin directory instead, rather than /usr/bin.
    Code:
    ln -s /home/berny/python/Python-3.3.0/debug/python ~/bin/python3

  4. #4
    Join Date
    Jun 2012
    Beans
    93

    Re: creating hard or soft links

    Thanks for your comments guys, and SPJACSON, I had suspected that but decided to ask the experts before proceeding. Will try now.

  5. #5
    Join Date
    Jun 2012
    Beans
    93

    Re: creating hard or soft links

    That has worked. Thanks again for your help. I will mark it as solved.

Bookmarks

Posting Permissions

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