The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Applications (http://hintsforums.macworld.com/forumdisplay.php?f=5)
-   -   Need help for Matlab for Mac OS X (http://hintsforums.macworld.com/showthread.php?t=15704)

traurig 10-05-2003 05:11 AM

I must think about your answer, my english is not so good.

When I open with TextEdit the file (/Library/StartupItems/MATLABLmgr/MATLABLmgr)

I see following text when I copy and paste
===========================

#!/bin/sh

#
# To install this script, perform the following actions as an Administrator:
#
# 1. Navigate via the Finder to the top level /Library folder.
# 2. Create a folder within /Library called StartupItems, if it does not already exist.
# 3. Copy the $MATLAB/etc/MATLABLmgr folder into the StartupItems folder.
# 4. Open /Library/StartupItems/MATLABLmgr/MATLABLmgr with a text editor.
# 5. Change |>MATLAB<| to be the location where MATLAB is installed (as a POSIX file
# specifier, such as /Applications/MATLAB6p5).
# 6. Change |>ME<| to be the user name under which the license manager daemon will be
# started (for security reasons, this must not be root).
# 7. Save MATLABLmgr back to disk. If your text editor gives you the option to choose
# line ending styles (Macintosh versus UNIX), be sure to choose UNIX line endings.
# 8. Reboot.

#
# During bootup, you should see the message "Starting MATLAB License Manager" appear
# on the screen.
#

# $Revision: 1.2 $

. /etc/rc.common

### start FLEXlm ###

ConsoleMessage "Starting MATLAB License Manager"

MATLAB=/Applications/MATLAB6p5
ME=hansjoachimklotz

if [ -f $MATLAB/etc/lmboot ]; then
$MATLAB/etc/lmboot -u $ME
fi

=========================

You see the first sentences ar infos about changing license manager

At the end there is the script I think so but I'm not shure ???

And your proposal is that I should change

ConsoleMessage "Starting MATLAB License Manager"

into

ConsoleMessage "Hello Hans - A"

Jochen

traurig 10-05-2003 05:46 AM

Question ?????

Must I change also:

=========================

MATLAB=/Applications/MATLAB6p5
ME=hansjoachimklotz

if [ -f $MATLAB/etc/lmboot ]; then
$MATLAB/etc/lmboot -u $ME
fi
==========
into
=========================
MATLAB=/Applications/MATLAB6p5
ME=hansjoachimklotz

if [ -f $/Applications/MATLAB6p5/etc/lmboot ]; then
$/Applications/MATLAB6p5/etc/lmboot -u $hansjoachimklotz
fi

==========

What is with the character "$" in the script???

Jochen

hayne 10-05-2003 05:51 AM

I was suggesting to add extra lines - not change any of the existing lines.

But now I see that the script is very short and that the existing ConsoleMessage is right near the top.
So you should be seeing it if the script is executing at all. So forget about doing what I had suggested before.

First, run the Console application (it is under /Applications/Utilities) and look in the list of messages presented in its window to make sure that you haven't just missed seeing the "Starting MATLAB License Manager" message.

Second, let's check that the script has the correct line-endings. Copy & paste the following command into a Terminal window and then copy the results back here so we can see them.

hexdump -c /Library/StartupItems/MATLABLmgr/MATLABLmgr

[edit]I'm going to sleep now so won't be responding on this thread for a while[/edit]

traurig 10-05-2003 06:05 AM

Have a good night.

I have reboot the mac, open the console direkt after reboot.

Following messages there:

Mac OS X Version 10.2.6 (Build 6L60)
2003-10-05 12:03:23.341 pbs[861] CFLog (0):
CFPropertyListCreateFromXMLData(): plist parse failed; the data is not proper UTF-8. The file name for this data could be:
Contents/Info.plist -- file://localhost/Applications/NichtAppleProgramme/Adobe%20Photoshop%20Elements%202/Photoshop%20Elements%202.0/
The parser will retry as in 10.1, but the problem should be corrected in the plist.

Jochen

traurig 10-05-2003 06:10 AM

Who I have done it in terminal

Her the answer, first I made a mistake with:

...MATLABmgr/MATLABmgr

later I use:

...MATLABLmgr/MATLABLmgr

===================

Last login: Sun Oct 5 12:02:56 on console
Welcome to Darwin!
[Hans-Joachim-Klotzs-Computer:~] hansjoachimklotz% hexdump -c /Library/StartupItems/MATLABmgr/MATLABmgr
hexdump: /Library/StartupItems/MATLABmgr/MATLABmgr: No such file or directory
[Hans-Joachim-Klotzs-Computer:~] hansjoachimklotz% hexdump -c /Library/StartupItems/MATLABLmgr/MATLABLmgr
0000000 # ! / b i n / s h \n \n # \n # T
0000010 o i n s t a l l t h i s s
0000020 c r i p t , p e r f o r m t
0000030 h e f o l l o w i n g a c t
0000040 i o n s a s a n A d m i n
0000050 i s t r a t o r : \n # \n # 1 .
0000060 N a v i g a t e v i a t h
0000070 e F i n d e r t o t h e
0000080 t o p l e v e l / L i b r a
0000090 r y f o l d e r . \n # 2 .
00000a0 C r e a t e a f o l d e r
00000b0 w i t h i n / L i b r a r y
00000c0 c a l l e d S t a r t u p I t
00000d0 e m s , i f i t d o e s
00000e0 n o t a l r e a d y e x i s
00000f0 t . \n # 3 . C o p y t h e
0000100 $ M A T L A B / e t c / M A T
0000110 L A B L m g r f o l d e r i
0000120 n t o t h e S t a r t u p I
0000130 t e m s f o l d e r . \n # 4
0000140 . O p e n / L i b r a r y /
0000150 S t a r t u p I t e m s / M A T
0000160 L A B L m g r / M A T L A B L m
0000170 g r w i t h a t e x t e
0000180 d i t o r . \n # 5 . C h a n
0000190 g e | > M A T L A B < | t o
00001a0 b e t h e l o c a t i o n
00001b0 w h e r e M A T L A B i s
00001c0 i n s t a l l e d ( a s a
00001d0 P O S I X f i l e \n #
00001e0 s p e c i f i e r , s u c h
00001f0 a s / A p p l i c a t i o n
0000200 s / M A T L A B 6 p 5 ) . \n #
0000210 6 . C h a n g e | > M E < |
0000220 t o b e t h e u s e r
0000230 n a m e u n d e r w h i c h
0000240 t h e l i c e n s e m a n
0000250 a g e r d a e m o n w i l l
0000260 b e \n # s t a r t e
0000270 d ( f o r s e c u r i t y
0000280 r e a s o n s , t h i s m u
0000290 s t n o t b e r o o t ) .
00002a0 \n # 7 . S a v e M A T L A
00002b0 B L m g r b a c k t o d i
00002c0 s k . I f y o u r t e x t
00002d0 e d i t o r g i v e s y o
00002e0 u t h e o p t i o n t o
00002f0 c h o o s e \n # l i n e
0000300 e n d i n g s t y l e s (
0000310 M a c i n t o s h v e r s u s
0000320 U N I X ) , b e s u r e
0000330 t o c h o o s e U N I X l
0000340 i n e e n d i n g s . \n # 8
0000350 . R e b o o t . \n \n # \n # D
0000360 u r i n g b o o t u p , y o
0000370 u s h o u l d s e e t h e
0000380 m e s s a g e " S t a r t i
0000390 n g M A T L A B L i c e n s
00003a0 e M a n a g e r " a p p e a
00003b0 r \n # o n t h e s c r e e
00003c0 n . \n # \n \n # $ R e v i s i o
00003d0 n : 1 . 2 $ \n \n . / e t c
00003e0 / r c . c o m m o n \n \n # # #
00003f0 s t a r t F L E X l m # # #
0000400 \n \n C o n s o l e M e s s a g e
0000410 " S t a r t i n g M A T L A
0000420 B L i c e n s e M a n a g e
0000430 r " \n \n M A T L A B = / A p p l
0000440 i c a t i o n s / M A T L A B 6
0000450 p 5 \n M E = h a n s j o a c h i
0000460 m k l o t z \n \n i f [ - f
0000470 $ M A T L A B / e t c / l m b o
0000480 o t ] ; t h e n \n $ M
0000490 A T L A B / e t c / l m b o o t
00004a0 - u $ M E \n f i
00004aa
[Hans-Joachim-Klotzs-Computer:~] hansjoachimklotz%

Jochen

traurig 10-05-2003 08:11 AM

The latest news

Maybe there was a mistake in the file MATLABLmgr

Now there is following text (copy and paste)
==================
. /etc/rc.common

### start FLEXlm ###

ConsoleMessage "Starting MATLAB License Manager"

MATLAB=/Applications/MATLAB6p5
ME=hansjoachimklotz

if [ -f /Applications/MATLAB6p5/etc/lmboot ]; then
/Applications/MATLAB6p5/etc/lmboot -u hansjoachimklotz
fi
==================

After restart the mac I can see a very short message like "Waiting MATLAB License Manager" ?? then comes the OSX window to LOGIN

But MATLAB don't run

Jochen

vancenase 10-05-2003 11:01 AM

launch_matlab.sh
 
[submitted twice, so deleting the first one]

vancenase 10-05-2003 11:02 AM

launch_matlab.sh
 
this should solve any OroborOSX problems. if you experience licensing problems, then you need to obtain a license and likely put in the install folder (in my case /Applications/matlab; yours looks like /Applications/MATLAB6p5)

Code:

[file: /Applications/MATLAB6p5/bin/LaunchMATLAB.app/Contents/launch_matlab.sh]

#!/bin/sh
# $Revision: 1.1 $
# Copyright 1997-2002 The MathWorks, Inc.

if [ "`ps xc | grep X11`" ]; then
  # Bounce less if X11 is already started
  sleeptime=15
else
  sleeptime=30
  osascript -e 'tell application "X11" to activate'
fi

cd ../..

bin/mac/setsid bin/matlab -desktop -display :0.0 &

# Bounce to let user know MATLAB is starting up.
/bin/sleep $sleeptime


vancenase 10-05-2003 11:04 AM

Quote:

Originally posted by traurig
After restart the mac I can see a very short message like "Waiting MATLAB License Manager" ?? then comes the OSX window to LOGIN

But MATLAB don't run

Jochen
how is your license setup? mine is through a university, so if i am not connect to the internet, i cannot launch or keep matlab open for an extended period of time.

hayne 10-05-2003 02:01 PM

Quote:

Originally posted by traurig
After restart the mac I can see a very short message like "Waiting MATLAB License Manager" ?? then comes the OSX window to LOGIN
But MATLAB don't run
Sorry, but you have to be more explicit in telling us what you are doing. The whole thing with the script you were editing is only to get the license manager to run. That does not start MATLAB itself. You need to start MATLAB as usual by double-clicking on it or using the menu in OroborOSX. Are you doing that?

traurig 10-05-2003 02:04 PM

I have got the license from mathworks via mail and I have carry out following steps.
The steps are write down in the file in MATLABLmgr on following path!!!


HD/Library/StartupItems/MATLABLmgr/MATLABLmgr
===============================
#!/bin/sh

#
# To install this script, perform the following actions as an Administrator:
#
# 1. Navigate via the Finder to the top level /Library folder.
# 2. Create a folder within /Library called StartupItems, if it does not already exist.
# 3. Copy the $MATLAB/etc/MATLABLmgr folder into the StartupItems folder.
# 4. Open /Library/StartupItems/MATLABLmgr/MATLABLmgr with a text editor.
# 5. Change |>MATLAB<| to be the location where MATLAB is installed (as a POSIX file
# specifier, such as /Applications/MATLAB6p5).
# 6. Change |>ME<| to be the user name under which the license manager daemon will be
# started (for security reasons, this must not be root).
# 7. Save MATLABLmgr back to disk. If your text editor gives you the option to choose
# line ending styles (Macintosh versus UNIX), be sure to choose UNIX line endings.
# 8. Reboot.

#
# During bootup, you should see the message "Starting MATLAB License Manager" appear
# on the screen.
#

# $Revision: 1.2 $

. /etc/rc.common

### start FLEXlm ###

ConsoleMessage "Starting MATLAB License Manager"

MATLAB=/Applications/MATLAB6p5
ME=MyName

if [ -f /Applications/MATLAB6p5/etc/lmboot ]; then
/Applications/MATLAB6p5/etc/lmboot -u MyName
fi

I think I have done it correct!!!!!!!!!!!!!!!!!!!!

The only message which I see by restart is:

WAITING for MATLAB License Manager

Jochen

vancenase 10-05-2003 02:13 PM

this is just a suggestion that i'm not sure will work. it seems you are trying to 'access' the license after instaling matlab and have tried to execute it multiple times.

try uninstalling it completely. reinstall, and it should ask you for the license during the install process (if my memory serves me correctly).

traurig 10-05-2003 02:20 PM

@hayne

I hope you have sleeped very well (bad english???)

Your question was

...using the menu in OroborOSX. Are you doing that?..

There is no menü to start MATLAB in OroborOSX

The instruction of mathworks say that it start automatically.

In OroborOSX there are some instructions in the second menue from left.

start object edit, >>> window comes with a lot of info???

xinitrc carry out, nothing happened

xterm, no result when I use it
xeyes, >>> it works well
xedit, >>> it works well
xclock, >>> it works well
xcalc, >>> it works well
xbiff, >>> message with info
MacGimp, >>> message with info
ETerm, >>>message with info

Jochen

traurig 10-05-2003 02:27 PM

@vancenase

sorry that I ask.

...try uninstalling it completely...

Do you mean that I must reinstall the the complete matlab??? and carry out a new install of all matlab???

Jochen

vancenase 10-05-2003 02:29 PM

Quote:

Originally posted by traurig
@vancenase

sorry that I ask.

...try uninstalling it completely...

Do you mean that I must reinstall the the complete matlab??? and carry out a new install of all matlab???

Jochen
i don't think you have too ... but it's a nice way to 'start over' and see if that solves the problem. i recently installed MATLAB with no problem what-so-ever following the instructions on the ~ngrady webpage and supplying the license during the install (i'm pretty sure it was during the install).

it's just a thought to try.

good luck!

hayne 10-05-2003 03:08 PM

I hadn't read your previous message carefully enough. I see now that it is saying that it is WAITING for the license manager. This seems to mean that MATLAB is trying to start but it doesn't find the license manager.

I'm sorry but I'm going to have to give up on this. it's too hard trying to help when I don't have the software in question and I don't know how it is supposed to work. I would suggest reading all the available documentation and then checking to see if there is a specific MATLAB mailing list or search for MATLAB-specific web sites where you might find someone who knows what is supposed to happen.
Good luck.

traurig 10-05-2003 03:20 PM

Today I have send an email to mathworks in germany.
I have received the CD ROM, license from the german office.

I hope they can help me on monday.
Thanks for help. I have learned something in our discussion!!!!

Jochen

vancenase 10-05-2003 03:24 PM

also make sure you do a FULL install (that might help).

other than that, i haven't a clue on what is going on either!

nankuei 10-05-2003 06:30 PM

short note
 
Hello, I haven't read the previous messages carefully.... But you may like to try one thing very quickly, which usually solved my matlab problems in various systems and environment settings...

To start the matlab, instead of running >> matlab
try this no-java-manager command -->

>> matlab -nojvm

freakypsycho 10-06-2003 12:58 PM

traurig,

to be sure: is it your *own* Matlab licence?
Since the Matlab version for OS X is a Unix version (and a damn cheap port :( ) it's a lot harder to install Matlab on multiple computers that you use "personally". Tried to install Matlab on my computer with a version licenced for a colleague (we collaborate in the same work-group, so I deemed it to be o.k.) and I got the same error messages.
My colleague installed Matlab on his own Mac and it worked.
So if it's licensed for a colleague of yours you might try by making him an administrator (if you trust him).

An alternative is to use octave (www.octave.org), which can be installed via fink in no-time. It's a Matlab clone, and I have to confess: I haven't missed Matlab a single day.
O.k.,o.k., the programs are not 100% compatible (perhaps only 95%), however it usually takes little effort to tweak those .m-files to get them running under octave. For more Matlab compatibility, make sure to install the octave-forge package, too (downloadable at sourceforge).

What Matlab-stuff do you specifically need?

Viel Glück!
f


All times are GMT -5. The time now is 01:46 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.