个人工具

“UbuntuHelp:Maple”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Maple}}
 
{{From|https://help.ubuntu.com/community/Maple}}
 
{{Languages|UbuntuHelp:Maple}}
 
{{Languages|UbuntuHelp:Maple}}
Maple is not free software, see [[UbuntuHelp:UbuntuScience|UbuntuScience]] for alternatives.
+
Maple is not free software, see [[UbuntuScience]] for alternatives.
 
This guide will take you through the steps of installing Maple9.5 or Maple10 in Ubuntu. We will install Maple and create symlinks to the executables.
 
This guide will take you through the steps of installing Maple9.5 or Maple10 in Ubuntu. We will install Maple and create symlinks to the executables.
 
== Installation ==
 
== Installation ==
第12行: 第12行:
 
   sudo sh /media/cdrom/installMapleLinuxSU
 
   sudo sh /media/cdrom/installMapleLinuxSU
 
   </nowiki></pre>
 
   </nowiki></pre>
https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconHint2.png We have to run the installer through <code><nowiki>sh</nowiki></code> since cdrom's are mounted <code><nowiki>noexec</nowiki></code> by default.
+
{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconHint2.png%7D%7D We have to run the installer through <code><nowiki>sh</nowiki></code> since cdrom's are mounted <code><nowiki>noexec</nowiki></code> by default.
 
* Follow the instructions in the Maple installer and choose <code><nowiki>/opt/maple9.5</nowiki></code> as the install directory.
 
* Follow the instructions in the Maple installer and choose <code><nowiki>/opt/maple9.5</nowiki></code> as the install directory.
 
== Symbolic Links ==
 
== Symbolic Links ==
第33行: 第33行:
 
* If you get an empty GUI window with Maple 11 on Ubuntu 7.10 you need to deactivate visual effects (in System - Preferences - Appearance).  
 
* If you get an empty GUI window with Maple 11 on Ubuntu 7.10 you need to deactivate visual effects (in System - Preferences - Appearance).  
 
* Another way, if you want to use both visual effects and Maple 11 is to execute the line <code><nowiki>export AWT_TOOLKIT=MToolkit</nowiki></code> in a terminal window. Using <code><nowiki>xmaple</nowiki></code> should then display the GUI with all contents. You can also add this line to your ~/.profile file, so it will be executed when you log in.
 
* Another way, if you want to use both visual effects and Maple 11 is to execute the line <code><nowiki>export AWT_TOOLKIT=MToolkit</nowiki></code> in a terminal window. Using <code><nowiki>xmaple</nowiki></code> should then display the GUI with all contents. You can also add this line to your ~/.profile file, so it will be executed when you log in.
 +
* An even better way is to make Maple use the system's Java libraries.<<FootNote(See uw.linux 'Maple help' thread)>>
 +
* Install Java: sudo apt-get install sun-java6-jre
 +
* Navigate into the Maple directory and rename <code><nowiki>jre.IBM_INTEL_LINUX</nowiki></code> (or <code><nowiki>jre.X86_64_LINUX</nowiki></code> on 64-bit systems) by adding <code><nowiki>.old</nowiki></code> to the directory name.
 +
* Create a symlink to the system's directory with Java with <code><nowiki>ln -s /usr/lib/jvm/java-6-sun/jre jre.IBM_INTEL_LINUX</nowiki></code> (or <code><nowiki>ln -s /usr/lib/jvm/java-6-sun/jre. jre.X86_64_LINUX</nowiki></code>.
 +
* <code><nowiki>xmaple</nowiki></code> should run with Compiz running.
 +
* And if you don't want to use symlinks, you can edit the environmental variables. <<FootNote(http://ubuntuforums.org/showpost.php?p=5758568&postcount=6)>>
 +
* Edit the <code><nowiki>xmaple</nowiki></code> file to include <code><nowiki>export JRE_BASE='/usr/lib/jvm/java-6-sun/jre'</nowiki></code> at the top.
 +
* Comment out the old lines and replace them with <code><nowiki>MAPLE_JRE_BIN="$JRE_BASE/bin/"</nowiki></code> and <code><nowiki>JRE_ROOT="$JRE_BASE/lib"</nowiki></code>
 +
* If printing fails or there is no window printing dialog, install openjdk-6-jre and replace <code><nowiki>java-6-jdk</nowiki></code> with <code><nowiki>java-6-openjdk</nowiki></code> in the above instructions. <<FootNote(https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/156191)>>
 
----
 
----
 
[[category:CategoryDocumentation]]
 
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2008年10月19日 (日) 12:51的版本

Maple is not free software, see UbuntuScience for alternatives. This guide will take you through the steps of installing Maple9.5 or Maple10 in Ubuntu. We will install Maple and create symlinks to the executables.

Installation

  • First, we'll create a directory in /opt for Maple. If you are installing Maple 10, you probably want to call this /opt/maple10 instead. If you do, remember to use the appropriate path for the rest of the commands in this guide.
  sudo mkdir -p /opt/maple9.5
  
  • Now, put your Maple 9.5 or Maple 10 cd into your cdrom. It should then be mounted to /media/cdrom. Maple includes a nice installer script for us that we can run:
  sudo sh /media/cdrom/installMapleLinuxSU
  

{{https://help.ubuntu.com/community/IconsPage?action=AttachFile&do=get&target=IconHint2.png%7D%7D We have to run the installer through sh since cdrom's are mounted noexec by default.

  • Follow the instructions in the Maple installer and choose /opt/maple9.5 as the install directory.

Symbolic Links

Now so that we can just type maple to start Maple or xmaple to start the graphical version, we need to create symbolic links somewhere in your $PATH. We will be using /usr/local/bin which is reserved for local installations:

  sudo mkdir -p /usr/local/bin
  sudo ln -s /opt/maple9.5/bin/{x,}maple /usr/local/bin
  

That's it. Have fun taking derivatives ;)

Troubleshooting

  • If you receive errors such as
  nawk: error while loading shared libraries: libdl.so.2: cannot open shared object file: No such file or directory
  

when you attempt to run the installer, see http://ubuntuforums.org/showthread.php?t=283473 and http://ubuntuforums.org/showthread.php?p=2184587 .

  • If Maple GUI launchs well but it fails any calculation saying
  Waiting for kernel connection...

check if you have installed Maple on a FAT32 partition. If this is the case, you should reinstall it on /usr/local/maple for example. This issue applies to Maple 10 and 11.

  • If you get an empty GUI window with Maple 11 on Ubuntu 7.10 you need to deactivate visual effects (in System - Preferences - Appearance).
  • Another way, if you want to use both visual effects and Maple 11 is to execute the line export AWT_TOOLKIT=MToolkit in a terminal window. Using xmaple should then display the GUI with all contents. You can also add this line to your ~/.profile file, so it will be executed when you log in.
  • An even better way is to make Maple use the system's Java libraries.<<FootNote(See uw.linux 'Maple help' thread)>>
  • Install Java: sudo apt-get install sun-java6-jre
  • Navigate into the Maple directory and rename jre.IBM_INTEL_LINUX (or jre.X86_64_LINUX on 64-bit systems) by adding .old to the directory name.
  • Create a symlink to the system's directory with Java with ln -s /usr/lib/jvm/java-6-sun/jre jre.IBM_INTEL_LINUX (or ln -s /usr/lib/jvm/java-6-sun/jre. jre.X86_64_LINUX.
  • xmaple should run with Compiz running.
  • And if you don't want to use symlinks, you can edit the environmental variables. <<FootNote(http://ubuntuforums.org/showpost.php?p=5758568&postcount=6)>>
  • Edit the xmaple file to include export JRE_BASE='/usr/lib/jvm/java-6-sun/jre' at the top.
  • Comment out the old lines and replace them with MAPLE_JRE_BIN="$JRE_BASE/bin/" and JRE_ROOT="$JRE_BASE/lib"
  • If printing fails or there is no window printing dialog, install openjdk-6-jre and replace java-6-jdk with java-6-openjdk in the above instructions. <<FootNote(https://bugs.launchpad.net/ubuntu/+source/sun-java6/+bug/156191)>>