LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-24-2008, 10:58 AM   #1
1joeyirosh4
LQ Newbie
 
Registered: Jun 2008
Posts: 4

Rep: Reputation: 0
How does one start Matlab in Opensuse 10.3?


Hallo!I have installed Matlab 7.R14 on my OpenSuse 10.3 Linux.Unfortunately,when I try to run the matlab the error below appears

MATLAB: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c->xlib.lock' failed. Abort

Having looked at various forums I saw a possible solution as shown below

To solve it, make a file in your home or home/bin directory, let's say matlab.sh containing

Code:
#!/bin/sh
export LIBXCB_ALLOW_SLOPPY_LOCK=1
matlab -desktop

and make it executable by
Code:

chmod +x matlab.sh
now if you run it
Code:

./matlab.sh
you should be able to start matlab.

I have implemented this but when I try to start matlab at the console using

./matlab.sh
The following error appears
./matlab.sh: line 3: matlab: command not found.

How do I solve this problem?
 
Old 08-24-2008, 10:59 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Which directory is the matlab executable in? Put that directory in your PATH, or put the full path to the executable in your script.
 
Old 08-24-2008, 12:33 PM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
[QUOTE=1...
#!/bin/sh
export LIBXCB_ALLOW_SLOPPY_LOCK=1
matlab -desktop
...
./matlab.sh
The following error appears
./matlab.sh: line 3: matlab: command not found.

How do I solve this problem?[/QUOTE]
The script matlab.sh is trying to execute the command "matlab - desktop". For this to work, matlab would have to be in your path (& the user would have to have the appropriate permissions, etc). I'm betting on the path.

So
  • Find matlab (probably use "locate", but if you don't have locate, use "find")
Either
  • add the directory in which the matlab executable resides to the path
or
  • edit the script to change "matlab" to "/complete/path/to/matlab"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
KDE won't start on OpenSUSE 10.3 ieduarte73 SUSE / openSUSE 4 07-11-2008 04:48 AM
matlab in opensuse iandroul Linux - Software 1 03-15-2008 12:24 PM
Cannot start E17 on opensuse 10.2 Romanator SUSE / openSUSE 3 11-06-2007 08:39 PM
linux opensuse 10.1 could not start hammam12 Linux - Software 3 08-13-2006 01:08 AM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration