Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Matlab 12.1 on Slackware 8.1

4 views
Skip to first unread message

Antonis C Koutalos

unread,
Jul 15, 2002, 11:46:24 AM7/15/02
to

Hello,

I have installed Matlab 12.1 on Slackware 8.1(.01) and the installation
seemed to go OK. However, when I try to run it by just executing 'matlab'
it does not run and it gives me a java.log file in my home directory. When
I try to run it without the java virtual machine 'matlab -nojvm', Matlab
runs without problems (and it can display plots and figures). I have run
the same Matlab on Mandrake and SuSE before, so it _should_ be OK. Also, I
have a dual boot machine with Slackware 8.1 and FreeBSD 4.5, and Matlab is
installed in a partition which is shared between the two (the Matlab
installation was done on Slackware). Guess what? I _can_ run Matlab with
the java virtual machine from FreeBSD! So, it looks like it's a Slackware
problem. I may be missing some libraries, but I can't know. Does anybody
have the same problem?

Thank you in advance for any help,

-A.

P.S. I can send the java.log file that Matlab gives me to any one who
thinks that might be able to pinpoint the problem in there. Unfortunately,
this file says nothing to me :-(.

Richard Williams

unread,
Jul 15, 2002, 2:01:15 PM7/15/02
to
In article <Pine.GSO.4.43.0207151633090.8216-100000@muir>,

Antonis C Koutalos <a...@ee.ed.ac.uk> wrote:

>I have installed Matlab 12.1 on Slackware 8.1(.01) and the installation
>seemed to go OK. However, when I try to run it by just executing 'matlab'
>it does not run and it gives me a java.log file in my home directory. When
>I try to run it without the java virtual machine 'matlab -nojvm', Matlab
>runs without problems (and it can display plots and figures). I have run
>the same Matlab on Mandrake and SuSE before, so it _should_ be OK. Also, I
>have a dual boot machine with Slackware 8.1 and FreeBSD 4.5, and Matlab is
>installed in a partition which is shared between the two (the Matlab
>installation was done on Slackware). Guess what? I _can_ run Matlab with
>the java virtual machine from FreeBSD! So, it looks like it's a Slackware
>problem. I may be missing some libraries, but I can't know. Does anybody
>have the same problem?

Have you installed the jre from the 'extra' package directory? i.e.:

slackware-8.1/extra/java2-runtime-environment/j2re-1.4.0_01-i586-1.tgz

Otherwise, maybe it's worth getting hold of a complete jdk directly from
Blackdown or Sun.


Richard.

Antonis C Koutalos

unread,
Jul 15, 2002, 3:17:47 PM7/15/02
to
On Mon, 15 Jul 2002, Richard Williams wrote:

> Have you installed the jre from the 'extra' package directory? i.e.:
>
> slackware-8.1/extra/java2-runtime-environment/j2re-1.4.0_01-i586-1.tgz

Yes, I have installed it but it did not change anything :-(. Also, I have
nothing related to java on FreeBSD and it runs Matlab without any
problems! In addition, when I was running Mandrake or SuSE, I did not have
anything related to java installed.

> Otherwise, maybe it's worth getting hold of a complete jdk directly from
> Blackdown or Sun.

Having said the above, I do not think it is worthwhile getting jdk from
either source.

-A.

AthlonRob

unread,
Jul 15, 2002, 3:15:16 PM7/15/02
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <Pine.GSO.4.43.0207151633090.8216-100000@muir>, Antonis C Koutalos

wrote:


>
> Hello,
>
> I have installed Matlab 12.1 on Slackware 8.1(.01) and the installation
> seemed to go OK. However, when I try to run it by just executing 'matlab'
> it does not run and it gives me a java.log file in my home directory. When
> I try to run it without the java virtual machine 'matlab -nojvm', Matlab
> runs without problems (and it can display plots and figures).

Ok, I think this raises the question... did you install a Java VM in
Slackware? What happens when you just run 'java' ?

Have you consulted Matlab documentation on this? It's been a long time
since I've used Matlab.

- --
Rob
"Google is your friend"

-----BEGIN PGP SIGNATURE-----
Comment: Key ID 0x838E01ED - Available from www.keyserver.net

iD8DBQE9Mx9Ehm6KEoOOAe0RApx1AKDrfeV+pHOFxHbV7YQyQ8LliMPYBwCg/UZy
XkWJ9Ecq4k9UoveHhOn8nWg=
=cApb
-----END PGP SIGNATURE-----

Deon Garrett

unread,
Jul 15, 2002, 8:41:22 PM7/15/02
to

It's a issue with the locales not being installed or set up correctly.
Make sure that you installed the locales package. I'm using Slackware
8.0, where the package is called "glocale" and lives in the "d1" group
on the install disc. I haven't looked at my 8.1 cd yet, but I'm sure
it's there somewhere. Install that, and everything should work fine.

- Deon


Antonis C Koutalos

unread,
Jul 16, 2002, 7:27:59 AM7/16/02
to
On Tue, 16 Jul 2002, Deon Garrett wrote:

> It's a issue with the locales not being installed or set up correctly.
> Make sure that you installed the locales package. I'm using Slackware
> 8.0, where the package is called "glocale" and lives in the "d1" group
> on the install disc. I haven't looked at my 8.1 cd yet, but I'm sure
> it's there somewhere. Install that, and everything should work fine.

Unfortunately, I cannot find anything related to locales on the install CD
of 8.1.01. I have also looked at the 'extra' directory on the Slackware
ftp server but I have not found anything related to locales.

A closer look at the java.log file that matlab produces, shows that it
talks about a segmentation violation (first two lines of the file appended
below). Do you think this could be related to locales?

-A.


First two lines of 'java.log.735' file:

SIGSEGV 11* segmentation violation
stackbase=BFFFAE7C, stackpointer=BFFF9234

Joost Kremers

unread,
Jul 16, 2002, 7:49:45 AM7/16/02
to
Deon Garrett wrote:
[matlab with java does not work]

>
> It's a issue with the locales not being installed or set up correctly.
> Make sure that you installed the locales package. I'm using Slackware
> 8.0, where the package is called "glocale" and lives in the "d1" group
> on the install disc. I haven't looked at my 8.1 cd yet, but I'm sure
> it's there somewhere. Install that, and everything should work fine.

i'm not sure why you think the OP's problem has to do with the locale
setup, but even if that is the case, i think the locale library is in
the glibc package with 8.1. i hadn't installed glocale on my initial
8.0 install, but when i upgraded glibc to the one in (then)
slackware-current, i found the locale libs were suddenly there. since
slackware-current became slack 8.1, i assume this is how it's done now.

--
Joost Kremers http://baserv.uci.kun.nl/~jkremers
Ask 8 slackers how to do something, get 10 answers.
-- sl in alt.os.linux.slackware

Antonis C Koutalos

unread,
Jul 16, 2002, 9:51:30 AM7/16/02
to
On 16 Jul 2002, Joost Kremers wrote:

> Deon Garrett wrote:
> [matlab with java does not work]

> > [locales are to blame]


>
> i'm not sure why you think the OP's problem has to do with the locale
> setup, but even if that is the case, i think the locale library is in
> the glibc package with 8.1. i hadn't installed glocale on my initial
> 8.0 install, but when i upgraded glibc to the one in (then)
> slackware-current, i found the locale libs were suddenly there. since
> slackware-current became slack 8.1, i assume this is how it's done now.

He may well be right that the locales are to blame for my matlab
problem!?!?!?! I just found an older java.log file lying around in my
filesystem, and its first three lines are as follows:

current locale is not supported in X11, locale is set to CX locale
modifiers are not supported, using default
SIGSEGV 11* segmentation violation
stackbase=BEDFFAA0, stackpointer=BEDFE638

I had a look at the files that glibc provides and the directory
/usr/share/locale with its contents is included. So, it looks like I have
locales installed but they are not configured correctly. The bad thing is
that I do not know how to configure them and what value to give them. I
would be grateful if somebody could let me know at least how to change
my current locale setup!

Thanks in advance,

-A.

Joost Kremers

unread,
Jul 16, 2002, 10:56:35 AM7/16/02
to
Antonis C Koutalos wrote:

> He may well be right that the locales are to blame for my matlab
> problem!?!?!?! I just found an older java.log file lying around in my
> filesystem, and its first three lines are as follows:
>
> current locale is not supported in X11, locale is set to CX locale
> modifiers are not supported, using default
> SIGSEGV 11* segmentation violation
> stackbase=BEDFFAA0, stackpointer=BEDFE638

it just seems *very* strange (in fact, i'd consider it a serious bug)
if a wrong locale setting would make java segfault.



> I had a look at the files that glibc provides and the directory
> /usr/share/locale with its contents is included. So, it looks like I have
> locales installed but they are not configured correctly. The bad thing is
> that I do not know how to configure them and what value to give them. I
> would be grateful if somebody could let me know at least how to change
> my current locale setup!

well, as a first thing, type `locale' at the command prompt. this will
tell you what the current locale settings are. from the java.log quote
that you give, it seems it is set to CX, which i find a little
strange. (that's to say, i never heard of it before...) if it is, try
`export LC_ALL=C; export LANG=C' and try running matlab again. `C' is
the standard locale setting, which means you won't have any decent
support for other languages than english, but if java still segfaults,
i doubt the problem is with the locales. if it does work, you can try
to set the locale to something more appropriate. (or perhaps the
standard settings work for you.)

Antonis C Koutalos

unread,
Jul 16, 2002, 1:38:07 PM7/16/02
to

Eventually, I solved this problem and I can run matlab! The locale package
actually is glibc-i18n and it was _not_ installed on my machine. I
installed it and now matlab runs happily!!! What a strange problem! By the
way, the default locale on my machine is POSIX (I do not know where this
CX came from), and matlab is happy with it.

Thank you very much for your help!

-A.

Deon Garrett

unread,
Jul 16, 2002, 4:25:44 PM7/16/02
to
On 16 Jul 2002 11:49:45 GMT, Joost Kremers <mrlin...@nospam.invalid> wrote:
> Deon Garrett wrote:
> [matlab with java does not work]
>>
>> It's a issue with the locales not being installed or set up correctly.
>> Make sure that you installed the locales package. I'm using Slackware
>> 8.0, where the package is called "glocale" and lives in the "d1" group
>> on the install disc. I haven't looked at my 8.1 cd yet, but I'm sure
>> it's there somewhere. Install that, and everything should work fine.
>
> i'm not sure why you think the OP's problem has to do with the locale
> setup, but even if that is the case, i think the locale library is in
> the glibc package with 8.1. i hadn't installed glocale on my initial
> 8.0 install, but when i upgraded glibc to the one in (then)
> slackware-current, i found the locale libs were suddenly there. since
> slackware-current became slack 8.1, i assume this is how it's done now.
>

Not that it matters much, since he apparently did get it fixed, but I
guess I should have mentioned that I had the exact same problem. A
*long* session of web-searching with some trial and error thrown in
for good measure turned up the locales as the culprit. So the answer
to your question is "because I've previously had to fix the problem".

I really meant to say a little more in my original response, but it
seems that I neglected to. Proofreading -- it's not just for breakfast
anymore. :)

And if anyone is curious, I did do a google search for "Linux Matlab locales"
and it turned up a mathworks support page that details exactly why locales
can cause this problem. I'm not looking at it now, but I trust that the
motivated reader can find it himself.

- Deon

0 new messages