help-octave
[Top][All Lists]
Advanced

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

Re: Permission denied


From: Ben Abbott
Subject: Re: Permission denied
Date: Tue, 20 Mar 2012 16:40:04 -0400

On Mar 20, 2012, at 4:19 PM, Kees de Leeuw wrote:

> On 21/03/2012, at 12:37 AM, Ben Abbott wrote:
> 
>> On Mar 19, 2012, at 11:44 PM, Kees de Leeuw wrote:
>> 
>>> Hi,
>>> 
>>> I am very new to Octave. I have just installed it on Mac OS X 10.7.3. I 
>>> think I have followed all the installation instructions. I can run Octave 
>>> from the icon in my Application folder, but I cannot run it from the 
>>> terminal. I followed the instructions given in 
>>> http://www.octave.org/wiki/index.php?title=Installing_MacOS_X_Bundle. When 
>>> I enter 'Octave', I get a message '-bash: /usr/local/bin/octave: Permission 
>>> denied'. 
>>> 
>>> I would appreciate some help. I believe I need to have this working as I am 
>>> involved in software which is using Octave in the background.
>>> 
>>> Thanks for any help,
>>> Kees
>> 
>> This error may occur if the symbolic link you created doesn't point to an 
>> executable file.
>> 
>> What do the following return form the terminal ?
>> 
>>      ls -l /Applications/Octave.app/Contents/Resources/bin/octave
>>      ls -l /usr/local/bin/octave
>> 
>> Ben
> 
> Hi Ben,
> 
> I get the following results:
> 
> Kees-Imac:~ kees$ ls -l /Applications/Octave.app/Contents/Resources/bin/octave
> 
> -rwxrwxrwx  1 kees  admin  2968 21 Apr  2011 
> /Applications/Octave.app/Contents/Resources/bin/octave
> 
> Kees-Imac:~ kees$ ls -l /usr/local/bin/octave
> 
> -rw-r--r--  1 root  wheel  0 20 Mar 11:49 /usr/local/bin/octave
> 
> I do not know a lot about Unix, but it is now clear to me that I do not have 
> an executable file in /usr/local/bin. How can I fix this?
> 
> Thanks and regards,
> Kees


Ok. Something is wrong with symbolic link. Please delete it and create it again.

        sudo rm /usr/local/bin/octave
        
        sudo ln -s /Applications/Octave.app/Contents/Resources/bin/octave 
/usr/local/bin/octave

What you should not see is ...

        $ ls -l /usr/local/bin/octave
        lrwxr-xr-x  1 root  wheel  54 Mar 20 16:38 /usr/local/bin/octave -> 
/Applications/Octave.app/Contents/Resources/bin/octave

Ben



reply via email to

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