2

I know this question has been asked a hundred times but for some reason all the answers aren't working on my system.

I'm using Ubuntu 14.04

I'm trying to add the file activator to my PATH so that I can launch it from any directory.

activator sits in /opt/activator-dist-1.3.5/

However, I've tried adding all sorts of lines to .profile, but none of them seem to work - when I try and call activator elsewhere, I just get an error.

What exactly should I be adding?


Neither of these work:

export PATH=$PATH:/opt/activator-dist-1.3.5

export PATH=$PATH:/opt/activator-dist-1.3.5/activator/
4
  • Are you sourcing .profile when you're done? Show us what you've added so we can show you what you did wrong. Jul 26, 2015 at 20:04
  • @ElefantPhace - I've edited my answer. What do you mean by sourcing?
    – Charon
    Jul 26, 2015 at 20:06
  • 1
    Try putting quotes around it. And then in a terminal source .profile then try to run it Jul 26, 2015 at 20:07
  • Should I put quotes around the entire line? EDIT: source .profile made it work! thanks!
    – Charon
    Jul 26, 2015 at 20:09

1 Answer 1

5

Try this

export PATH="$PATH:/opt/activator-dist-1.3.5"

Open a terminal and type source .profile

Then type activator

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .