1

I am new to linux and am using xubuntu.

I have successfully installed maple 13 on my machine and its working fine. The problem is when ever I need to start maple, I have to do it through double click-- since typing maple or xmaple in terminal does not work the same as opening firefox by just typing firefox in terminal. Why?

I want my terminal to open maple 13 when some command like maple or xmaple is typed.

Richard
  • 8,502
  • 11
  • 47
  • 72
Sohail
  • 165

1 Answers1

1

Open your terminal and paste these lines

sudo mkdir -p /usr/local/bin
sudo ln -s /home/sohail/maple13/bin/xmaple /usr/local/bin

then try again.

Edit:

type in your terminal as

gedit .bashrc

and write

alias xmaple='/home/sohail/maple13/bin/xmaple'

Save & close. Type bash in your terminal and run source ~/.bashrc. Then type xmaple.

Richard
  • 8,502
  • 11
  • 47
  • 72
Raja G
  • 102,391
  • 106
  • 255
  • 328
  • After changing maple9.5 to maple13 in the above suggested commands, nothing happened. – Sohail Nov 18 '13 at 20:38
  • whereis maple return /usr/local/bin/maple – Sohail Nov 18 '13 at 20:44
  • Moreover, the launcher is somewhere here: /home/sohail/maple13/bin/xmaple – Sohail Nov 18 '13 at 20:48
  • ""sudo ln -s /home/sohail/maple13/bin/xmaple /usr/local/bin/maple" gives "ln: failed to create symbolic link `/usr/local/bin/maple': File exists" – Sohail Nov 18 '13 at 20:53
  • @Sohail What happens when you run maple in a terminal? – kiri Nov 18 '13 at 20:55
  • No command 'maple' found, did you mean: Command 'ample' from package 'ample' (universe) maple: command not found sohail@sohail-Inspiron-N5110:~$ maple No command 'maple' found, did you mean: Command 'ample' from package 'ample' (universe) maple: command not found – Sohail Nov 18 '13 at 20:57
  • Now with the edit of .bashrc I am getting "bash: alias: xmaple: not found bash: alias: =: not found bash: alias: /home/sohail/maple13/bin/xmaple: not found" – Sohail Nov 18 '13 at 21:07
  • @Sohail http://askubuntu.com/questions/176012/ubuntu-alias-not-applied-in-bashrc – Raja G Nov 18 '13 at 21:10
  • @rajagenupula, After logging out and then in and then typing $source ~/.bashrc I am still getting alias not found as indicated above. – Sohail Nov 18 '13 at 21:20