Maple
From RHLUG
Contents |
[edit] Maple 11/12 and Compiz
Maple 11/12 doesn’t like running under Compiz Fusion. To get it working, set the environmental variable AWT_TOOLKIT=MToolkit.1 If Maple still shows a grey screen, edit /usr/local/maple12/bin/maple and change the MAPLE_JRE_BIN of your architecture to /usr/lib/jvm/java-6-sun/bin/.
[edit] Fixing Maple 10 under Gentoo
Maple 10 for Linux is now available from Tibia. Unfortunately it is a version which you must be connected to the network to use. Installing it's a bit of a pain; it produces all sort of library errors. Here's the fix (at least on Gentoo ~x86 as of 8-22-06).
[edit] Install
You can find the Linux version of Maple under tibia/Linux_MacOSX_Apps/Maple10-Linux. Unpack the archive maple10.tgz to your hard drive, and then go to Maple10CD/Disk1/InstData/Linux/VM/
- cd Maple10CD/Disk1/InstData/Linux/VM/
Apply this patch file to the 'UnixInstaller.bin' file.
- patch UnixInstaller.bin < maple.patch
Attempt to run the installer (this wont work, but you need to do it anyway)
- ./UnixInstaller.bin
Export the classpath it spits out (this is an example, use your own classpath):
- export CLASSPATH="/tmp/install.dir.21887/InstallerData:/tmp/install.dir.21887/InstallerData/installer.zip:/tmp/install.dir.20801/InstallerData:/tmp/install.dir.20801/InstallerData/installer.zip:/opt/share/java/:."
Run the command it spits out (this is an example, use your own command):
- "/tmp/install.dir.21887/Linux/resource/jre/bin/java" -Djava.compiler=NONE -Xmx50331648 -Xms16777216 com.zerog.lax.LAX "/tmp/install.dir.21887/temp.lax" "/tmp/env.properties.21887"
Continue with the installation.
[edit] Cleanup
Delete all the installation files.
- rm -r /tmp/install.dir.*
- rm /tmp/env.properties.*
You can also delete some stuff installed by Maple. It comes with version of FLEX you don't need so you can delete FLEXlm/UNIX/ (everything but LINUX) from where you installed Maple.
- rm -r FLEXlm/UNIX/{AIX,DEC,HPUX,IRIX,MAC,SOLARIS_SPARC}
Maple also comes with it's own copy of the Java Runtime Environment (which is stupid) so you can delete that too, but you need to fix a file to tell it which one to use. From where you installed Maple, look at bin/maple and edit lines 304 and 309 to the paths to your copy of Maple that's already installed. As a bonus, if you set it to a Java 1.5 JRE it will make maple shiny =)
[edit] Troubleshooting
If during the installation you get the Assertion `c->xlib.lock' failed error, or you try to run xmaple and it fails with no output, then you might be using a newer version of libxcb, one that is much more strict. This newer version breaks a lot of packages, including AWT. To get around this, you can set the LIBXCB_ALLOW_SLOPPY_LOCK variable to true, like so:
- export LIBXCB_ALLOW_SLOPPY_LOCK=true
After setting this variable, the installation should continue as normal. If you encounter the 'failing with no output' error, then you may want to add the export line to the xmaple launch script, located in /usr/share/maple10/bin.
[edit] Editing maple in Vim
[edit] Install
Append the following lines to ~/.vimrc. This will set up commands when editing maples files.
Save the following file to somewhere in $PATH and set it executable. This command filters a maple script though maple while removing cruft and formatting the output.
[edit] Usage
Create a file name <foo>.mw and edit it in vim. To execute the maple script simply type mm while in normal mode. You may delete the output lines between execution, but this is unnecessary as lines beginning with tab are ignored.

