Search code examples
macoscommand-linecommand-line-interfacemaple

Get the command line version of Maple


I am a mac user and I have maple installed on my computer. I can open maple like any other app. However I would like to work in terminal. I googled and found that I can do that but I need to change some path. It was not well explained. I would really appreciate if someone can help me setting my path. Thanks in advance.


Solution

  • You do not have to adjust the PATH environment variable. Doing so just makes calling the maple launch script for the Commandline Interface (aka CLI) a little easier.

    Open a terminal window (xterm). Find the maple script of your Maple installation. Perhaps it will be located in some directory like /Library/Frameworks/Maple.framework/Versions/Current/bin/ say. You should be able to run that script in your terminal by running it using the full name, eg. /Library/Frameworks/Maple.framework/Versions/Current/bin/maple.

    You could also alias the full name (explicit location) to some single short word.

    That maple script sets everything it needs to run the Maple binaries, etc. You just have to run it (in a terminal).

    Or you could make OSX launch a terminal window and call the maple script. Doesn't OSX have an automator for adding such things to the Dock? I forget the syntax but could it be something like,

    open -a "/opt/X11/bin/xterm" --args "-e /Library/Frameworks/Maple.framework/Versions/Current/bin/maple"