-1

I am working on Ubuntu windows application. I want to use a tool and I have downloaded the file and install it is in /usr/local/bin. I want to access the tool from anywhere and for that I have write an alias in bashrc file. Now, while I call the tool it generating error. Kindly help me with this.

How I installed mgltools:

  398  tar xvzf mgltools_i86Linux2_1.5.6.tar.gz
  399  cd mgltools_i86Linux2_1.5.6/
  400  ./install.sh

*****@DESKTOP-*****:/usr/local/bin/mgl-tools/mgltools_i86Linux2_1.5.6$ ls
Data.tar.gz  MGLToolsPckgs.tar.gz        README  bin      install.sh  tcl8.4
LICENSES     Python2.5_i86Linux2.tar.gz  Tools   include  lib         tk8.4

After that, I have write following alias in bashrc file via vim and save it:

alias adt='sudo /usr/local/bin/mgl-tools/mgltools_i86Linux2_1.5.6/adt'

#source ~/.bashrc

When I call the tool this error is generated.

sudo: /usr/local/bin/mgl-tools/mgltools_i86Linux2_1.5.6/adt: command not found

enter image description here enter image description here

Zanna
  • 72,312
Rhea
  • 571

1 Answers1

0

I just tested it in Ubuntu 18.04 VirtualBox:

wget http://mgltools.scripps.edu/downloads/downloads/tars/releases/REL1.5.6/mgltools_x86_64Linux2_1.5.6.tar.gz
tar xvzf mgltools_x86_64Linux2_1.5.6.tar.gz
cd mgltools_x86_64Linux2_1.5.6/
sudo ./install.sh -d /opt/mgl/
sudo cp initMGLtools.sh /opt/mgl/

Then add to /etc/bash.bashrc

export PATH=/opt/mgl/bin:$PATH
source /opt/mgl/initMGLtools.sh

But can you may test it directly:

/opt/mgl/bin/adt or adt

Reference:

mgltools.scripps.edu - Instructions for Installing MGLTools on Linux

mgltools_x86_64Linux2_1.5.6 - adt

user.dz
  • 49,176