1

I have run into a problem with adding the MALLET topic modelling tool to my path.

If I cd to /mallet-2.0-8/ and type ./bin/mallet, all works fine.

If I type echo $PATH, I have successfully added '/mallet-2.0.8/bin' to the path. But typing mallet now at the prompt yields -bash: mallet: command not found.

So, how to get the $ to respond to mallet?

Simon Lindgren
  • 2,011
  • 12
  • 32
  • 46

2 Answers2

1

The line you have to add to the bashrc or bash_profile is:

export PATH="/mallet-2.0.8/bin:$PATH"

if you do not use the export the variable will be defined only inside the file.

You can also try by writing the same line directly in the shell.

Riccardo Petraglia
  • 1,943
  • 1
  • 13
  • 25
  • Tried both these things, but same problem. It seems I have definitely been able to add the path correctly by the behaviour described in my previous comment is what needs to be dealt with. – Simon Lindgren Mar 20 '17 at 10:41
0

After adding the mallet to the path variable, make sure to source it. Here are the steps I have followed.

Issue with bin\mallet

  1. Added MAVEN_HOME to the path. This is the Exact Command.

export PATH="/mallet-2.0.8/bin:$PATH"

  1. Make sure that the same directory has been added. (Try to Echo $PATH)

  2. Then source the bash_profile.

source ~/.bash_profile.

Now,

Resolved.

phanindravarma
  • 1,287
  • 2
  • 9
  • 8