PDA

View Full Version : Maple 9.5 on FC6


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 &

ceilbeck
2007-02-05, 03:43 PM CST
I have recently updated to FC6 and I am trying to reinstall 64-bit Maple 10 on my AMD64 machine. I followed the above fairly faithfully, but although "maple" works ok, "xmaple" doesn't. So I presume it's a java problem. (Installing a 32-bit version on my portable running FC6 went OK once I had edited the appropriate Installer.bin file.)

There doesn't seem to be a /etc/profile.d/java.sh in FC6. Since I am (as a user) running tcsh, I used "set" instead of "export" to fix the J2RE_HOME variable, etc. I carried out all the other instructions as root. Has anyone installed 64-bit Maple10 in FC6 successfully? Is there some other things different for the 64 bit installation?

sideways
2007-02-05, 04:12 PM CST
There doesn't seem to be a /etc/profile.d/java.sh

This doesn't exist until you create it as above, adding the two lines specified.

I haven't worked with Maple10 yet, and I would guess the xmaple problem is a java issue so maybe search for help on configuring that in 64-bit FC6.

If I can get a trial copy of 64-bit Maple10 I might give it a go and post back here, I also have an AMD64 but currently run the 32-bit vrsion of FC6, I've been meaning to test the 64-bit OS for quite some time now that it is considered stable.

ceilbeck
2007-02-06, 02:06 AM CST
Thanks for the quick response! Yes, I thought of that, and I did create this file with the specified contents. But in tcsh, the command

$ source /etc/profile.d/java.sh

gives errors as it doesn't recognise the "export" command - but maybe my attempt to set the environmental variables using "set" doesn't have the same effect?

Looking at the output log from "strace -f xmaple", I get

exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x317720A416 during VM shutdown
Function=pthread_cond_wait+0xA6
Library=/lib64/libpthread.so.0

Current Java thread:

Dynamic libraries:
Can not get information for pid = 3575
....

Does this make any sense?

sideways
2007-02-06, 05:46 AM CST
What's the output of java -version? (should be something like this)


$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)


I haven't used tcsh for ages, but I though the command equivalent to bash's export was setenv, so maybe try that instead of 'set'.

libpthread is the glibc threading library, lots of stuff uses it, the error doesn't really help much.

ceilbeck
2007-02-06, 06:36 AM CST
$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)

64-bit, no sharing.

setenv doesn't seem to make any difference, unfortunately.

I'm trying to make sense of the strace -f output, it seems to fall over trying to find libXp.so.6 in /usr/lib64.
But I am just a novice at reading this stuff.

.........
open("/usr/lib64/libXp.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
3661 stat("/usr/lib64", {st_mode=S_IFDIR|0755, st_size=69632, ...}) = 0
3661 munmap(0x2aab118ae000, 113402) = 0
3661 munmap(0x2aab1117a000, 2267944) = 0
3661 munmap(0x2aab113a4000, 1419056) = 0
3661 munmap(0x2aab114ff000, 3859152) = 0
3661 write(2, "Exception ", 10) = 10
3661 write(2, "in thread \"main\" ", 17) = 17
3661 write(2, "java.lang.UnsatisfiedLinkError: "..., 158) = 158
....

sideways
2007-02-06, 06:54 AM CST
Can you run any java apps apart from xmaple?
(eg azureus bittorent client, install with 'yum install azureus')


Otherwise, maybe try this to force maple into 32-bit mode
xmaple -binary IBM_INTEL_LINUX

EDIT: also try installing the 64bit libXp library with 'yum install libXp' (or get the rpm from http://rpm.pbone.net/index.php3/stat/4/idpl/3418393/com/libXp-1.0.0-8.x86_64.rpm.html)

EDIT2: one other point, the link above to the deprecated libs rpm is 32-bit, here is the 64-bit rpm http://rpm.pbone.net/index.php3/stat/4/idpl/1983496/com/xorg-x11-deprecated-libs-6.8.2-31.x86_64.rpm.html,)

I need to amend the howto to address 64 bit issues, I'm going to get the FC6 X64 DVD iso later this week and give it a go

ceilbeck
2007-02-06, 07:33 AM CST
Geronimo!

yum install libXp

installs the 64-bit version, and this seems to do the trick, xmaple works! many thanks!

sideways
2007-02-06, 07:40 AM CST
Great, that's the howto done for 64bit also! Thanks. :)

ceilbeck
2007-12-17, 02:55 AM CST
Anyone tried installing Maple on 32 bit or 64 bit machines in Fedora 7 or 8?

sideways
2007-12-17, 10:03 AM CST
The same install method worked in F7 for me, haven't tried with F8 yet.

ceilbeck
2008-01-31, 10:31 AM CST
I have recently installed Maple 11 in Fedora 8 on both 32- and 64-bit machines. The installation was completely standardh with no need for the fixes specified above.