I saw the same issue in many different locations and even after a good portion of googling, I could not resolve it. What I am trying to do (the bigger picture) is to go through
I found an answer which does not satisfy me at all: Installed netbeans which takes care of joining things together. Still the command line does not work (so that means that it is compartmentalised the environment which is good). I can follow up the tutorial, but I still believe that everything should be done from the command line (was there too much Unix in my diet?)