help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems changing Code


From: Quentin Spencer
Subject: Re: Problems changing Code
Date: Sat, 21 May 2005 05:15:37 -0500
User-agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)

Pablo Suarez wrote:

Hi ! I am new to Octave and to Mac OX in general. I have a very simple problem. I would like to change some code from the function figure.m which is giving me problems. The function figure.m when use always gives me this error:
error: figure: requires X11 and valid DISPLAY
error: evaluating if command near line 42, column 7
error: evaluating if command near line 41, column 5
error: evaluating if command near line 40, column 3
error: called from `figure' in file `/sw/share/octave/2.1.53/m/plot/figure.m'

THis is just for the record. I found the solution thanks to this site by changing just a bit of the code. The problem that I have is that I don't know how to change the code! I open a terminal in my Mac and then use emacs or vi to open the source code of the function figure.m . But this says it is in read mode only. Since this is GNU software I should be able to change the code easily. What I'm doing wrong? Sorry to ask such silly question but I have been trying to find help all over the place and can't do it. Thanks for your help in advance!


I'm not very familiar with OS X, but since it's based on Unix, I would assume the problem here is that the file is owned by root, and you're trying to edit it as a non-root user. In a terminal, try "su", enter the root password, and then you should be able to open the file in read-write mode.

-Quentin



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]