sideways
2007-01-25, 09:39 AM CST
(This also works for Maple 10 and X64 -- see follow up posts)
My first ever post in this forum was on how to install Mathematica 5 and Maple 8 on FC3 (http://fedoraforum.org/forum/showthread.php?t=25113&highlight=maple) , it's been a while and I've noticed that many have trouble with Maple 9.5 on Fedora Core 6, the various fixes posted work for some not for others or only partially work. So here is a comprehensive howto
(In the following '$' indicates a user prompt, '#' a root prompt)
INSTALLATION
===========
I'll assume the maple9.5 cd is mounted on /media/MAPLE95, if not substitute your own mount point. Open a terminal logged in as your own username and type
$ mkdir maple95
$ cd maple95
$ cp -a /media/MAPLE95/* .
Now we invoke vi in binary mode to edit the installer script and then run the installer
$ vi -b -c '%s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/' -c 'wq' Linux/Disk1/InstData/VM/LinuxInstaller.bin
$ ./installMapleLinuxSU
If the install completes without errors that's good, otherwise if you get this sort of error you need to install some deprecated library files:
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: cmd. line:6: warning: escape sequence `\.' treated as plain `.'
Launching installer...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.UnsatisfiedLinkError: /tmp/install.dir.16644/Linux/resource/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at com.zerog.ia.installer.Main.d(DashoA8113)
at com.zerog.ia.installer.Main.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
get xorg-x11-deprecated-libs rpm from here (http://rpm.pbone.net/index.php3/stat/4/idpl/2829969/com/xorg-x11-deprecated-libs-6.8.2-37.FC4.49.2.1.i386.rpm.html) , 64-bit version (http://rpm.pbone.net/index.php3/stat/4/idpl/1983496/com/xorg-x11-deprecated-libs-6.8.2-31.x86_64.rpm.htm) *** UPDATE: just try 'yum install libXp' if this fix doesn't work ***
install this rpm, create a symbolic link to the lib and run the installer again:
$su -
# rpm -ihv <path to>/xorg-x11-deprecated-libs-6.8.2-37.FC4.49.2.1.i386.rpm
Preparing... ########################################### [100%]
1:xorg-x11-deprecated-lib########################################### [100%]
# rpm -ql xorg-x11-deprecated-libs
/usr/X11R6/lib/libXp.so.6
/usr/X11R6/lib/libXp.so.6.2
# ln -s /usr/X11R6/lib/libXp.so.6 /usr/lib/libXp.so.6
# exit
$ cd <path to>/maple95/
$ ./installMapleLinuxSU
(Note for 64-bit OS the symbolic link needs to be made to /usr/lib64/libXp.so.6)
Enter serial no, chose a directory to install (default is ~/maple9.5), when the install completes there will be a short pause (10 secs or so) and you be will be returned to a shell prompt.
RUNNING MAPLE 9.5
===============
to launch maple9.5 in gui mode type
$ <install dir>/bin/xmaple &
you can create a symbolic link to the binarys in your own path:
# ln -s <install dir>/bin/xmaple /usr/bin/xmaple
# ln -s <install dir>/bin/maple /usr/bin/maple
If it gets stuck at the splash screen or you get errors like 'could not start server' or 'connection to kernel lost' then ensure your /etc/hosts file has this line
127.0.0.1 localhost
and remove any other lines referring to localhost. Then restart networking:
# service network restart
If it still won't start then probably you haven't got sun's jre setup
Download the JRE 1.6.0 linux self-extracting rpm.bin file from here http://java.sun.com/javase/downloads/index.jsp
$ su -
# sh <path to>/jre-6-linux-i586-rpm.bin
# ln -s /usr/java/jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins
# gedit /etc/profile.d/java.sh
add these lines to /etc/profile.d/java.sh
export J2RE_HOME=/usr/java/jre1.6.0
export PATH=$J2RE_HOME/bin:$PATH
login in a terminal as your username and type
$ source /etc/profile.d/java.sh
$ which java
/usr/java/jre1.6.0/bin/java
finally, as root again, type
# alternatives --install /usr/bin/java java /usr/java/jre1.6.0/bin/java 2
# alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /usr/java/jre1.6.0/bin/java
Enter to keep the current selection[+], or type selection number:
type '2'
Check it worked:
# alternatives --display java
java - status is manual.
link currently points to /usr/java/jre1.6.0/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
slave keytool: /usr/lib/jvm/jre-1.4.2-gcj/bin/keytool
slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
slave jre: /usr/lib/jvm/jre-1.4.2-gcj
/usr/java/jre1.6.0/bin/java - priority 2
slave keytool: (null)
slave rmiregistry: (null)
slave jre_exports: (null)
slave jre: (null)
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
Now, you should (finally) be able to run maple9.5:
$ xmaple &
My first ever post in this forum was on how to install Mathematica 5 and Maple 8 on FC3 (http://fedoraforum.org/forum/showthread.php?t=25113&highlight=maple) , it's been a while and I've noticed that many have trouble with Maple 9.5 on Fedora Core 6, the various fixes posted work for some not for others or only partially work. So here is a comprehensive howto
(In the following '$' indicates a user prompt, '#' a root prompt)
INSTALLATION
===========
I'll assume the maple9.5 cd is mounted on /media/MAPLE95, if not substitute your own mount point. Open a terminal logged in as your own username and type
$ mkdir maple95
$ cd maple95
$ cp -a /media/MAPLE95/* .
Now we invoke vi in binary mode to edit the installer script and then run the installer
$ vi -b -c '%s/export LD_ASSUME_KERNEL/#xport LD_ASSUME_KERNEL/' -c 'wq' Linux/Disk1/InstData/VM/LinuxInstaller.bin
$ ./installMapleLinuxSU
If the install completes without errors that's good, otherwise if you get this sort of error you need to install some deprecated library files:
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
awk: cmd. line:6: warning: escape sequence `\.' treated as plain `.'
Launching installer...
Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
Stack Trace:
java.lang.UnsatisfiedLinkError: /tmp/install.dir.16644/Linux/resource/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)
at com.zerog.ia.installer.Main.d(DashoA8113)
at com.zerog.ia.installer.Main.a(DashoA8113)
at com.zerog.ia.installer.Main.main(DashoA8113)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.zerog.lax.LAX.launch(DashoA8113)
at com.zerog.lax.LAX.main(DashoA8113)
This Application has Unexpectedly Quit: Invocation of this Java Application has caused an InvocationTargetException. This application will now exit. (LAX)
get xorg-x11-deprecated-libs rpm from here (http://rpm.pbone.net/index.php3/stat/4/idpl/2829969/com/xorg-x11-deprecated-libs-6.8.2-37.FC4.49.2.1.i386.rpm.html) , 64-bit version (http://rpm.pbone.net/index.php3/stat/4/idpl/1983496/com/xorg-x11-deprecated-libs-6.8.2-31.x86_64.rpm.htm) *** UPDATE: just try 'yum install libXp' if this fix doesn't work ***
install this rpm, create a symbolic link to the lib and run the installer again:
$su -
# rpm -ihv <path to>/xorg-x11-deprecated-libs-6.8.2-37.FC4.49.2.1.i386.rpm
Preparing... ########################################### [100%]
1:xorg-x11-deprecated-lib########################################### [100%]
# rpm -ql xorg-x11-deprecated-libs
/usr/X11R6/lib/libXp.so.6
/usr/X11R6/lib/libXp.so.6.2
# ln -s /usr/X11R6/lib/libXp.so.6 /usr/lib/libXp.so.6
# exit
$ cd <path to>/maple95/
$ ./installMapleLinuxSU
(Note for 64-bit OS the symbolic link needs to be made to /usr/lib64/libXp.so.6)
Enter serial no, chose a directory to install (default is ~/maple9.5), when the install completes there will be a short pause (10 secs or so) and you be will be returned to a shell prompt.
RUNNING MAPLE 9.5
===============
to launch maple9.5 in gui mode type
$ <install dir>/bin/xmaple &
you can create a symbolic link to the binarys in your own path:
# ln -s <install dir>/bin/xmaple /usr/bin/xmaple
# ln -s <install dir>/bin/maple /usr/bin/maple
If it gets stuck at the splash screen or you get errors like 'could not start server' or 'connection to kernel lost' then ensure your /etc/hosts file has this line
127.0.0.1 localhost
and remove any other lines referring to localhost. Then restart networking:
# service network restart
If it still won't start then probably you haven't got sun's jre setup
Download the JRE 1.6.0 linux self-extracting rpm.bin file from here http://java.sun.com/javase/downloads/index.jsp
$ su -
# sh <path to>/jre-6-linux-i586-rpm.bin
# ln -s /usr/java/jre1.6.0/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins
# gedit /etc/profile.d/java.sh
add these lines to /etc/profile.d/java.sh
export J2RE_HOME=/usr/java/jre1.6.0
export PATH=$J2RE_HOME/bin:$PATH
login in a terminal as your username and type
$ source /etc/profile.d/java.sh
$ which java
/usr/java/jre1.6.0/bin/java
finally, as root again, type
# alternatives --install /usr/bin/java java /usr/java/jre1.6.0/bin/java 2
# alternatives --config java
There are 2 programs which provide 'java'.
Selection Command
-----------------------------------------------
*+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /usr/java/jre1.6.0/bin/java
Enter to keep the current selection[+], or type selection number:
type '2'
Check it worked:
# alternatives --display java
java - status is manual.
link currently points to /usr/java/jre1.6.0/bin/java
/usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420
slave keytool: /usr/lib/jvm/jre-1.4.2-gcj/bin/keytool
slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry
slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj
slave jre: /usr/lib/jvm/jre-1.4.2-gcj
/usr/java/jre1.6.0/bin/java - priority 2
slave keytool: (null)
slave rmiregistry: (null)
slave jre_exports: (null)
slave jre: (null)
Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java.
Now, you should (finally) be able to run maple9.5:
$ xmaple &