File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_run_maple_on_netbsd__92__i386.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (8 years, 8 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

    1: **Contents**
    2: 
    3: [[!toc]]
    4: 
    5: #  Things needed 
    6: 
    7: A NetBSD/i386 installation. A Maple install cd (hybrid version for Windows/Mac OS X/Linux). 
    8: 
    9: A linux emulation package. procfs turned on. 
   10: 
   11: I use Maple 10 on NetBSD 3.1 with the suse10 package from pkgsrc. 
   12: 
   13: #  Install Maple 
   14: 
   15: Mount the CD. 
   16: 
   17: From the user that will be using the maple install: run installMapleLinuxSU from the root directory on the CD. 
   18: 
   19: Follow through the steps. Remember to choose an install folder you have write access to. I will use my home folder. 
   20: 
   21: Upon finishing the install process you will be asked to activate Maple. I advise that you activate it now instead of trying to later. 
   22: 
   23: Quit the installer. 
   24: 
   25: #  Tell Maple your OS 
   26: 
   27: Maple uses [[basics/uname]] to detect the system type. Running Maple now will result in it telling you that your operating system is unsupported. We need to tell Maple that our system is linux so we can run it under emulation. 
   28: 
   29: 
   30: Using your favorite text editor open the file ~/maple##/bin/maple.system.type 
   31: 
   32: This file is a script that runs at startup. Looking at the file we see that many different system types can be detected and launched. The one we wish to use is bin.IBM_INTEL_LINUX 
   33: 
   34: There are two ways of doing this: 
   35: 
   36: 1: We can add a NetBSD section to the script. Just sneak it in under the Darwin entry: 
   37:     
   38:     
   39:     	"Darwin")
   40:     	   # the OSX case
   41:     	   MAPLE_BIN="bin.APPLE_PPC_OSX"
   42:     	   ;;
   43:     	
   44:     # OUR ADDED SECTION
   45:     	"NetBSD")
   46:     	   MAPLE_BIN="bin.IBM_INTEL_LINUX"
   47:     	   ;;
   48:     # END OF OUR SECTION
   49:     	
   50:     	*)
   51:     
   52: 
   53: 2: Add one line just above the bottom: 
   54:     
   55:     
   56:     # OUR ADDED LINE
   57:     $MAPLE_BIN="bin.IBM_INTEL_LINUX"
   58:     # END LINE
   59:     
   60:     echo $MAPLE_BIN
   61:     exit 0
   62:     
   63: 
   64: #  Launch Maple 
   65: 
   66: From the ~/maple##/bin directory launch either maple or xmaple. 
   67: 
   68: Enjoy your NetBSD Maple math fun! 
   69: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb