PDA

View Full Version : Maple 9.5 on Fedora Core 3 How-to (Gnome)


carbo18
9th January 2005, 06:54 AM
For those who do not know of Maple. Maple is a software for Scientists... Maple (http://www.maplesoft.com/products/maple/) does mathematical computations (both numeric and symbolic) and plots graphs.

I made this How-To because I could not find a decent guide on how-to install Maple on Fedora Core and needed to for a class I'm taking in university. I thought I might as well document the process for anybody who might be interested in doing the same. Hopefully it will help out others. :)

You should install Java before you begin see the Fedora unofficial FAQ (http://www.fedorafaq.org/#java) to do this first.

Put the Maple 9.5 CD in your CD-ROM or DVD drive

Strangely enough you can only see the MacOS X files... this is a bug with FC3. Since the CDROM or DVD drives are set to auto in fstab, but no need to modify your fstab.

Simply open a terminal window and type:
su -
You must do all these steps with root privileges. (su - will work fine because every command will be done from the terminal window in this how-to)

Unmount the CDROM or DVD drive which has the Maple 9.5 CD

just change to the appropriate drive (hda master IDE0, hdb master IDE0, hdc master IDE1, hdd slave IDE1)
i.e. mine is hdd so I would issue this command:
umount /dev/hdd
Mount the CDROM or DVD drive which has the Maple 9.5 CD as iso9660
just change to the appropriate drive (hda master IDE0, hdb master IDE0, hdc master IDE1, hdd slave IDE1)
(your drive could be name cdrecorder or cdrom0... change accordingly)
i.e. mine is hdd and /media/cdrom so I would issue this command:
mount -t iso9660 /dev/hdd /media/cdrom
Navigate to the CDROM or DVD drive... In my case:
cd /media/cdrom
run the shell script
./installMapleLinuxSU
proceed through the graphical install but specify the install folder to be /usr/local/maple9.5 otherwise it will install it in your home directory... :mad:

Now Maple 9.5 is installed but it does not appear in the menu, you have to type
/usr/local/maple9.5/bin/xmaple &
in terminal to start maple and double clicking your worksheets does not open the worksheet in Maple here is how to remedy all these problems...

create symlink to xmaple so that it can be executed directly from terminal
ln -s /usr/local/maple9.5/bin/xmaple /usr/bin/
now you can start maple by typing
xmaple & from terminal no need to specify a path

copy the attached icon (maple.png) to /usr/local/maple9.5/

copy the file maple.png to the /usr/share/pixmaps/ directory this is so that it will displayed in the menu
cp /usr/local/maple9.5/maple.png /usr/share/pixmaps/

create a symlink to maple.png so that the icon will show in nautilus
ln -s /usr/local/maple9.5/maple.png /usr/share/icons/Bluecurve/48x48/mimetypes/gnome-mime-application-x-maple.png

modify the default.list so that mime extension x-maple is linked to maple
gedit /usr/share/applications/defaults.list
add line
application/x-maple=maple.desktopsave it

add the maple.desktop text file so that maple appears in the applications menu
gedit /usr/share/applications/maple.desktop
paste this into it
[Desktop Entry]
Name=Maple 9.5
Comment=Environment for scientific and engineering problem-solving
GenericName=Maple
Icon=maple.png
Exec=xmaple &
MimeType=application/x-maple
Type=Application
Categories=Application;Math
Encoding=UTF-8save it

modify the mimeinfo.cache so that mime extension x-maple is linked to maple
gedit /usr/share/applications/mimeinfo.cache
add line
application/x-maple=maple.desktopsave it

add maple.xml text file to /usr/share/mime/packages/ to allow .mws and .mw to open maple when double clicked
gedit /usr/share/mime/packages/maple.xml
paste this into it
<?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 Worksheet</comment>
<glob pattern="*.mws" />
<glob pattern="*.mw" />
</mime-type>
</mime-info>save it

now update the mime database by issuing this command
update-mime-database /usr/share/mime

log out and log back in

You should now see Maple 9.5 in your applications menu and when you double click a Maple Worksheet it will automatically open Maple.

Your good to go. Enjoy. :D
------------------------------------------------------------------------------------------------------
Thanks go to Pegasus for his How-To: Mime Types and file associations with FC3 - Gnome 2.8 (http://www.fedoraforum.org/forum/showthread.php?t=26875) it helped me figure out the mime extension mapping.
------------------------------------------------------------------------------------------------------

carbo18
24th February 2005, 07:12 PM
A brief addition on installing the upgrade to 9.5.2

First get the upgrade bin file

(1) Close all open Maple sessions.
(2) Give the file execute permissions, navigate to the directory where it is saved and run the command ./Maple952LinuxUpgrade.bin.
(3) Follow the on-screen instructions but make sure you choose the install directory to be "/usr/local/maple9.5"
(4) When the installation is complete, you may wish to delete the Maple952LinuxUpgrade.bin. file.
(5) NOTE: Maple 9.5.2 is an upgrade to the Maple kernel only and as such the Help About box will not reflect this change. To ensure that the upgrade has installed successfully, you can execute the command

> kernelopts(version);

which should indicate that the version is 9.52.

These are modified original instructions (http://www.maplesoft.com/support/maple95/General/952instructions.aspx)

mike-g2
22nd July 2005, 06:28 PM

Hi,
I'd like to just add a note on a problem I ran into trying to install Maple 10. If you get an error:

>java.lang.UnsatisfiedLinkError: /tmp/install.dir.4436/Linux/resource/jre/lib/i386/libawt.so: >libXp.so.6: cannot open shared object file: No such file or directory

The Java installer needs some extra libs that are in the package:

thanks to http://forums.fedoraforum.org/showthread.php?t=41571&highlight=maple+9.5+installer+error
xorg-x11-deprecated-libs