3

I'm trying to install python3.3.5 on /home/myUser/XX, where home is located on a separate partition. I'm relatively new to Linux and have only basic knowledge about installing packages on my own, without the synaptic package Manager.

Here is what I did: I followed the instructions from Sergey in this thread. I also used the similar explanation from James Nichsolson at this webpage

Everything worked fine so far except this part:

Some nice touches to install a py command by creating a symlink:

mkdir ~/bin
ln -s /opt/python3.3/bin/python3.3 ~/bin/py

As I understand it, this is to make python3.3 execuable via the terminal at any place? So if I write python3.3 it opens.

my paths are bit different from the ones in Sergeys description: path of python installation:

/home/metin/python/python3.3.5

my ./configure command was therefore:

./configure --prefix=/home/metin/python/python3.3.5

my command to create the link was:

 ln -s /home/metin/python/python3.3.5/bin/python3.3

Problem:

after I do this and when I type python3 in my terminal it says this programm is not installed, so something went wrong with creating the link?

Further Question:

Where is the difference between creating such a link and adding entries to $PATH? As I understand it Ubuntu can access all programs stored in $PATH, right? Why should'nt I just ad .../python3.3.5 to $PATH? So when do I use ln(links) and when do I add stuff to $PATH.

If I want to add dirs to $PATH how do I do that easy? I found some explanations on the internet but I'm confused. There is the file .bashrc in my /home dir. Is that the one were I add such dirs? Because there is also /etc/bash.bashrc and I remember adding

PATH=/home/metin/texlive/2012/bin/x86_64-linux:$PATH; export PATH
MANPATH=/home/metin/texlive/2012/texmf/doc/man:$MANPATH; export MANPATH
INFOPATH=/home/metin/texlive/2012/texmf/doc/info:$INFOPATH; export INFOPATH

when I installed texlive

since this questions are related I found it logic to put it all in one thread. Please let me know if I should rather make more than one post.

1 Answers1

2

Try this:

sudo ln -s /home/metin/python/python3.3.5/bin/python3.3 /usr/bin/python3.3.5

Not sure if your home path is correct, so if the command above fails you must symlink the binary located in your home folder to /usr/bin.

muniz95
  • 134