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.

6
  • I have updated my answer with edit.
    – rɑːdʒɑ
    Nov 18, 2013 at 20:59
  • "Does not work"? What happens?
    – Richard
    Nov 18, 2013 at 21:04
  • 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, 2013 at 21:09
  • @searchfgold6789 I get command not found.
    – Sohail
    Nov 18, 2013 at 21:09
  • 1
    Thanks @rajagenupula and searchfgold5789. Its working now. I think now I should be able to do this procedure for my matlab as well.
    – Sohail
    Nov 19, 2013 at 6:12

1 Answer 1

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.

9
  • After changing maple9.5 to maple13 in the above suggested commands, nothing happened.
    – Sohail
    Nov 18, 2013 at 20:38
  • whereis maple return /usr/local/bin/maple
    – Sohail
    Nov 18, 2013 at 20:44
  • Moreover, the launcher is somewhere here: /home/sohail/maple13/bin/xmaple
    – Sohail
    Nov 18, 2013 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, 2013 at 20:53
  • @Sohail What happens when you run maple in a terminal?
    – kiri
    Nov 18, 2013 at 20:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.