You are not logged in.

#1 2008-04-23 20:18:57

beretta
Member
Registered: 2008-04-21
Posts: 133

Maple 11 in Arch64

I use Maple and Matlab quite extensively, and I'm trying to get it set up on my new Arch installation.  Unfortunately, it seems the licensing component of the program is 32-bit only, even though the core of the software is 64 bit.  So it looks like I need to install the 32-bit libraries.

I'm planning on following the wiki instructions ( http://wiki.archlinux.org/index.php/Usi … _on_Arch64 ) and hopefully that will get it up and running.  In the mean time, has anyone else done this yet, and do you have any advice?

Offline

#2 2008-04-23 21:37:49

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Maple 11 in Arch64

beretta wrote:

I use Maple and Matlab quite extensively, and I'm trying to get it set up on my new Arch installation.  Unfortunately, it seems the licensing component of the program is 32-bit only, even though the core of the software is 64 bit.  So it looks like I need to install the 32-bit libraries.

I'm planning on following the wiki instructions ( http://wiki.archlinux.org/index.php/Usi … _on_Arch64 ) and hopefully that will get it up and running.  In the mean time, has anyone else done this yet, and do you have any advice?

I use Matlab without problems

Offline

#3 2008-04-23 22:16:45

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Maple 11 in Arch64

That's good to know-- I haven't actually gotten it installed yet.  It seems to recognize the 64 bit system, but it's looking for an install script in a directory that doesn't exist on my CD.  This is R2007a student edition.  I've asked about it to Mathworks, and I'll cross that bridge when I get to it.

Offline

#4 2008-04-24 03:07:23

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Maple 11 in Arch64

Ok, now that I've gotten a chance to get to this one, pacman -S lib32-glibc was sufficient to get the licensing issue running, and maple loads.  Unfortunately, the graphical interface doesn't ever come up now.  (Running xmaple, not maple.  CLI maple works just fine.)  I know newer Maple editions are Java based, so I think that may be the issue.  What JRE can I use in Arch64?

Offline

#5 2008-04-24 11:30:04

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Maple 11 in Arch64

beretta wrote:

Ok, now that I've gotten a chance to get to this one, pacman -S lib32-glibc was sufficient to get the licensing issue running, and maple loads.  Unfortunately, the graphical interface doesn't ever come up now.  (Running xmaple, not maple.  CLI maple works just fine.)  I know newer Maple editions are Java based, so I think that may be the issue.  What JRE can I use in Arch64?

Icedtea6.

Add this repo to pacman.conf and then do pacman -Sy before trying to download it:

[archlinuxfr]
Server = http://repo.archlinux.fr/x86_64

Offline

#6 2008-04-24 13:12:03

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Maple 11 in Arch64

I didn't check Matlab, but you are right that Maple's licensing tool needs 32 bit libraries. However, I think the lib32-glibc should be enough.

I have more trouble as I am working with the classic worksheet only, which is only available for 32 bit. So I am combining the 32 bit classic worksheet with the 64 bit Maple core (there's a description somewhere on how to do that). I need a few more libraries for that. I set up my 32 bit build chroot as a multilib root anyway, so this is no problem.

EDIT: By the way, Maple ships its own Java environment, which is a copy of the Sun JRE. You can somehow replace that with Arch's Sun JRE which works fine (the only thing missing in Java 64 bit is the browser plugin).

Last edited by brain0 (2008-04-24 13:14:16)

Offline

#7 2008-04-24 13:22:38

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Maple 11 in Arch64

As regards Matlab i can add that the only trouble you could have is if you use Compiz or similar, that is white or gray windows instead of classic windows, this needs to be fixed modifying the script that you use to start Matlab (usually /usr/bin/matlab).
If you need help feel free to ask.
No problem at all in Arch64 for libraries

Offline

#8 2008-04-24 15:00:14

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Maple 11 in Arch64

I wonder if that's the issue I'm having in graphical Maple-- I'm running with compiz right now, and when I load xmaple, it opens a window, but it's blank.  I'll have to try it in fvwm or something else.

I've tried putting in icedtea6, via yaourt, but it doesn't work.  It wants to install giflib, but says it conflicts with libungif, which is a dependency of something else.  I've tried tracing it up to the programs that actually depend on the things that ultimately depend on giflib, but it seems like there's a lot of them, so I don't think uninstalling it will be possible.  I'll double check that, though.  I'm not too fond of my first experience with yaourt anyway, so maybe I'll take it off and try putting in the repository manually and using pacman.  It might at least clue me in more on how to get it in.

In the mean time, I did install JRE and JDK-- are those sufficient, or do I really need icedtea6?

Edit:  brain0, how did you replace Maple's JRE?  Any hints where to find instructions for that?

Last edited by beretta (2008-04-24 15:17:07)

Offline

#9 2008-04-24 15:24:59

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Maple 11 in Arch64

I think I may have just found the solution.  This is from http://www.mapleprimes.com/blog/psz/map … s-not-work

The first thing I found out is: that when I started maple before Beryl I could see the window content.....strange but reasonable - after some researches on the internet I found a solution how to manage that kind of problem that arises from a known issue of compiz and java.

you have to export the variable

$ export AWT_TOOLKIT=MToolkit

before you launch maple and everything is working as it should do....

so finally thanks a lot for all the help you have given me so that I could manage to get to the real point of the problem and have a nice weekend

mrelectronic

ps.
for all frustrated beryl (+java - maple) users. Just add the line mentioned above to
/bin/xmaple

after the line

export MAPLE

and everything will be fine

Sadly, I'm at school, so I can't try it just yet.  I'll do it this afternoon when I get home and post back whether it's successful or not.

Offline

#10 2008-04-24 16:24:38

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Maple 11 in Arch64

I created pkgbuilds for matlab and maple. Let me verify them and I'll try to post them.

Matlab works perfect in 64bit arch. For Maple I had to instal it inside a 32bit chroot, and change/delete/symlink some folders because it was looking for 64bit folders...

Keep in mind that they are paid programs, which means you need to enter license information, etc. which might be a pain in a pkgbuild.

Matlab 2008a has changed something about licensing I think. It need to call home. So it might be trickier to install through a pkgbuild. Since I need to upgrade our machine to 2008a (we use 2007b), I'll need to sort this out...

Offline

#11 2008-04-24 22:36:09

beretta
Member
Registered: 2008-04-21
Posts: 133

Re: Maple 11 in Arch64

The above fix works perfectly, and I can get the graphical worksheet display just fine now.  There's no need to install Icedtea6 or change the included JRE at all, the only things necessary to get Maple 11 working in arch is to install lib32-glibc, and include the variable AWT_TOOLKIT = MToolkit.  smile

Now I need to figure out how to get Matlab installed, and I'm set!

Offline

#12 2008-04-24 22:56:34

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Maple 11 in Arch64

Here's my PKGBUILD for matlab 2007b.

Mount your matlab cd, and change "_mount_point" variable to reflect your mountpoint.
Put your license information into "matlab-2007b-license.txt" (update de md5sums)

PKGBUILD:

_mount_point=/media/MATHWORKS_R2007B

pkgname=matlab
pkgver=2007b
pkgrel=2
pkgdesc="Numerical computing environment and programming language, created by The MathWorks"
url="http://www.mathworks.com/"
license=("common")
depends=('jre>=6u3' 'qt4' 'fftw' 'libtiff' 'ncurses' 'gmp' 'libgl')
arch=('i686' 'x86_64')
install="$pkgname.install"
source=(
    "${pkgname}.desktop"
    "${pkgname}.png"
    "${pkgname}-${pkgver}-license.txt"
    "${pkgname}-${pkgver}-flexnet.patch"
    "${pkgname}-${pkgver}-responses.txt")
md5sums=(
    'eff8b8d2689b3a2e5b382ae14920ffd9'
    'afc7279b0467504a20daff0babbf687c'
    '65011b1b95eaa3a374d19d214bdd3626'
    '21e8fdfc952eaccf6727ac181f72f7d4'
    '79c28e0a77eb9b3dd7171c19fb9273aa')

build() {

    _installdir=/opt/${pkgname}
    mkdir -p $startdir/pkg{/usr/{bin,share/applications},${_installdir}}

    cd $startdir/pkg/${_installdir}
    cp $startdir/src/${pkgname}-${pkgver}-license.txt ./license.dat

    msg "Text based installation, please wait..."
    if [[ "$CARCH" == "i686" ]]; then
        _arch=glnx86
    else
        _arch=glnxa64
    fi

    ${_mount_point}/install -t -${_arch} < ${startdir}/src/${pkgname}-${pkgver}-responses.txt &> /dev/null
    [ ! -e $startdir/pkg/${_installdir}/X11 ] && return 1

    sed "s|$startdir/pkg||g" -i $startdir/pkg${_installdir}/etc/lmopts.sh
    sed "s|$startdir/pkg||g" -i $startdir/pkg${_installdir}/etc/license.dat
    sed "s|$startdir/pkg||g" -i $startdir/pkg${_installdir}/install_matlab.out
    sed "s|$startdir/pkg||g" -i $startdir/pkg${_installdir}/bin/.matlab7rc.sh

    install -D -m 755 $startdir/pkg${_installdir}/etc/flexnet.boot.linux  $startdir/pkg/etc/rc.d/flexnet
    echo "#!/bin/bash" > $startdir/pkg/usr/bin/matlab
    echo "${_installdir}/bin/matlab -desktop" >> $startdir/pkg/usr/bin/matlab
    install -m 644 $startdir/src/$pkgname.png $startdir/pkg${_installdir}/$pkgname.png
    chmod +x $startdir/pkg/usr/bin/matlab
    install -m 644 $startdir/src/$pkgname.desktop $startdir/pkg/usr/share/applications
    ln -s ${_installdir}/etc/lmboot $startdir/pkg/etc/lmboot_TMW
    ln -s ${_installdir}/etc/lmdown $startdir/pkg/etc/lmdown_TMW

    cd $startdir/pkg
    patch -Np1 -i $startdir/src/${pkgname}-${pkgver}-flexnet.patch

    # Java removal
    cd $startdir/pkg${_installdir}/sys/java/jre/${_arch}
    _jredir=`basename jre1*`
    rm -fr ${_jredir}
    ln -s /opt/java/jre/ ${_jredir}
}

matlab.desktop:

[Desktop Entry]
Comment=Matlab
Comment[en_US]=Matlab
Encoding=UTF-8
Exec='/opt/matlab/bin/matlab' -desktop
GenericName=Numerical computing environment and programming language, created by The MathWorks
GenericName[en_US]=Numerical computing environment and programming language, created by The MathWorks
Icon=/opt/matlab/matlab.png
MimeType=
Name=Matlab
Name[en_US]=Matlab
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DCOP-ServiceType=
X-KDE-SubstituteUID=false
X-KDE-Username=
Categories=Science;Math

matlab.install:

post_install() {
echo " "
echo " "
echo " Matlab needs a license manager running."
echo " Please add \"flexnet\" to your DAEMON array in /etc/rc.conf"
echo " and/or start it with:"
echo "     sudo /etc/rc.d/flexnet start"
echo " "
echo " "

host=`uname -n`
if [[ "grep $host /etc/hosts" == "" ]]; then
echo "127.0.0.1 $host" >> /etc/hosts
fi

useradd matlab
}

post_upgrade() {
host=`uname -n`
if [[ "grep $host /etc/hosts" == "" ]]; then
echo "127.0.0.1 $host" >> /etc/hosts
fi
}

pre_remove() {
userdel matlab -f -r &> /dev/null
}

op=$1
shift

$op $*

matlab-2007b-responses.txt

a

c
n
y

matlab-2007b-flexnet.patch:

--- pkg/etc/rc.d/flexnet.orig   2007-11-13 13:17:44.000000000 -0500
+++ pkg/etc/rc.d/flexnet        2007-11-13 13:17:49.000000000 -0500
@@ -30,7 +30,7 @@
 case "$1" in
   start)
         if [ -f /etc/lmboot_TMW ]; then
-            /etc/lmboot_TMW -u username && echo 'MATLAB_lmgrd'
+            /etc/lmboot_TMW -u matlab && echo 'MATLAB_lmgrd'
         fi
         ;;
   stop)

Hope it helps wink

Offline

#13 2008-09-07 04:48:41

SyXbiT
Member
From: Seattle, WA
Registered: 2008-06-28
Posts: 177
Website

Re: Maple 11 in Arch64

any progress on getting 2008a to work?
i can get it to work in Ubuntu, but not Arch
(error here)
http://bbs.archlinux.org/viewtopic.php? … 03#p406603

but 2008b should be out soon....

Offline

#14 2008-09-07 11:11:04

pressh
Developer/TU
From: Netherlands
Registered: 2005-08-14
Posts: 1,719

Re: Maple 11 in Arch64

SyXbiT wrote:

any progress on getting 2008a to work?
i can get it to work in Ubuntu, but not Arch
(error here)
http://bbs.archlinux.org/viewtopic.php? … 03#p406603

but 2008b should be out soon....

works out of the box for me on x86_64.

Offline

Board footer

Powered by FluxBB