Introduction
Clemson University has a network license for Maple 12 for Windows XP, Mac OS X, Solaris, and Linux. You will need to be connected to the University network either physically or through a VPN client in order to start Maple. This article will describe the installation of the 64 bit version of Maple 12 on a T61 running the 64 bit version of Fedora 10 with the Gnome desktop. In addition, we show how to set up icon and file association.
Installation
The Linux installation files can be downloaded from the Windows share server software.clemson.edu.
Gnome panel -> Places -> Connect to Server -> Windows share -> Server: software.clemson.edu/software
-> Username -> Connect -> Password -> Connect
Copy the folder Maple/Linux-Unix/Linux/X86_64 to your home directory
Copy the file Maple/Linux-Unix/Updates/64-bit/Maple1202LinuxX86_64Upgrade.bin to your home directory
Next, install Maple.
su to root
# cd /home/username/X86_64/Disk1/InstData/VM
# chmod 755 Maple12LinuxX86_64Installer.bin
# ./Maple12LinuxX86_64Installer.bin
Install Maple 12 from the installation GUI -> install in /usr/local or /opt
-> network license -> server: license4.clemson.edu -> Done (I'll assume /usr/local here)
# cd /home/username
# chmod 755 Maple1202LinuxX86_64Upgrade.bin
# ./Maple1202LinuxX86_64Upgrade.bin
Install the Maple 12 update from the GUI -> Done
# cd /usr/local/bin
# ln -s xmaple /usr/local/maple12/bin/xmaple
Maple's Flexlm license utility is 32-bit so we need a 32-bit library. This is a bug.
# yum install glibc-2.9-3.i386Update the license file.
Edit /usr/local/maple12/license.dat so that it contains these two lines SERVER license4.clemson.edu 00137263595B 28004 USE_SERVER
Maple Mimetype Registration. Create the file
/usr/share/mime/packages/maple.xml (permissions 644)
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-maple">
<comment>Maple Standard file</comment>
<glob pattern="*.mw"/>
</mime-type>
</mime-info>
Create the file
/usr/share/mime-info/maple.mime (permissions 644)
application/x-maple
ext: mw
Create the file
/usr/share/mime-info/maple.keys (permissions 644)
application/x-maple:
icon-filename=/usr/local/maple12/bin/Maple12.png
Create the file
/usr/share/application-registry/maple.applications (permissions 644)
maple
command=x-maple
name=Maple Standard
can_open_multiple_files=false
expects_uris=false
requires_terminal=false
mime_types=application/x-maple
Maple Menu Item Create the desktop file
/usr/share/applications/maple.desktop (permissions 644) [Desktop Entry] Name=Maple Standard Exec=xmaple %F Icon=/usr/local/maple12/bin/Maple12.png Terminal=false Type=Application Categories=Development; Encoding=UTF-8 StartupNotify=true MimeType=application/x-maple;Add a line to the file
/usr/share/applications/defaults.list application/x-maple=maple.desktop
Icon Association.
# cd /usr/share/icons/gnome/32x32/mimetypes # ln -s /usr/local/maple12/bin/Maple12.png gnome-mime-application-x-maple.png
Finally, update the desktop, mime, and icon databases.
# update-desktop-database # update-mime-database /usr/share/mime # gtk-update-icon-cache -f /usr/share/icons/gnome
Testing.
Panel -> Applications -> Programming -> Maple Standard with red icon Start Maple from the menu, create an document, and save. Is the Maple icon associated with the saved document? Right click the Maple document, the context menu should say "Open with Maple Standard" If not, select Properties from the context menu -> Open with tab -> Add Maple Standard and remove all other applications.
Remark. I took the kitchen sink approach to registering the mimetype. Some of the above may be legacy and not needed. Comments welcomed.