[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mkoctfile help
From: |
Henry F. Mollet |
Subject: |
Re: Mkoctfile help |
Date: |
Sun, 14 Aug 2005 11:26:46 -0700 |
User-agent: |
Microsoft-Entourage/11.1.0.040913 |
Thanks. I'll change this to the way it hopwfully was:
dr-xr-xr-x 12 root wheel 408 Aug 13 19:26 usr
Is the above correct or should it be
drwxr-xr-x 12 root admin, that's what I have on my old computer?
What is the difference between wheel and admin?
Am I correct, that when I now want to modify an octave .m file that I'll be
able to use the sudo command to copy it to my homedir and then modify it
there.
Henry
on 8/14/05 12:32 AM, Shai Ayal at address@hidden wrote:
> Henry,
>
> I think giving yourself write permission on /usr is generally a bad idea --
> now you can delete all the files of /usr by mistake, or change something
> there and nothing will work. This could also cause a security problem if
> something you download from the Internet can now change /usr. Leave /usr to
> the system and use your homedir for playing around ...
>
> The safer way to do this is copy oregenator.cc to somewhere in your home
> dir and than compile.
>
> Shai
>
> Henry F. Mollet wrote:
>> It was a permission problem. On my new eMac with OS 10.4.2, I need
>> permission to do things in /usr. You'd think it's my computer but I have to
>> ask for permission!. To get permission to all of /usr, select the folder
>> /usr, then file/Get info/Details/ Apply to enclosed items and give yourself
>> permission to read and write. So now it worked.
>> Henry
>>
>> [/usr/local/share/octave] -bash-2.05b 510$ cd examples
>> [/usr/local/share/octave/examples] -bash-2.05b 511$ mkoctfile oregonator.cc
>> CUT a whole bunch of output from using mkoctfile
>> [/usr/local/share/octave/examples] -bash-2.05b 512$ ls
>> hideoregonator.m oregonator.o
>> oregonator.cc oregonator.oct
>> [/usr/local/share/octave/examples] -bash-2.05b 513$
>>
>>
>>
>> on 8/13/05 4:57 PM, Henry F. Mollet at address@hidden wrote:
>>
>>
>>> This was recently discussed and I thought it was straight-forward as the
>>> following worked on Mac running Tiger (OSX10.4). Alas what worked fine only
>>> recently would not work today. I had deleted the files orgenoator.o and
>>> oregonator.oct which had been created when I last practiced using mkoctfile
>>> oregonator.cc and now I get a FATAL.
>>> Henry
>>>
>>> [~] -bash-2.05b 502$ cd /usr/local/share/octave/examples
>>> [/usr/local/share/octave/examples] -bash-2.05b 503$ ls
>>> hideoregonator.m oregonator.cc
>>> [/usr/local/share/octave/examples] -bash-2.05b 504$ mkoctfile oregonator.cc
>>> /var/tmp//ccP3TYBa.s:unknown:FATAL:can't create output file: oregonator.o
>>> [/usr/local/share/octave/examples] -bash-2.05b 505$
>>>
>>>
>>>
>>>
>>> on 8/13/05 4:24 PM, address@hidden at address@hidden
>>> wrote:
>>>
>>>
>>>> Mkoctfile
>>>>
>>>> I am still unable to get mkoctfile to work on an iBook
>>>> running Tiger (OSX10.4). I am not even trying to
>>>> compile the ³C² file from the program I am trying to
>>>> port from MatLab to Octave. I am working only with
>>>> ³oregonator² from the manual. I have saved it using
>>>> Word, textedit, subEthaEdit with no change. The
>>>> command that I use from the terminal shell is
>>>> ³mkoctfile oregonator.c², and the fie has been saved
>>>> as oregonator.c. I have searched my hard drive for
>>>> mkoctfile and found the folowing.
>>>>
>>>> /usr/local/bin/mkoctfile
>>>> /usr/local/bin/mkoctfile-2.1.71
>>>>
>>>> cd to the directory ³bin² reveals the following
>>>>
>>>> doctorpops:/usr/local/bin allangol$ ls -1
>>>> agc.c
>>>> gnuplot
>>>> mex
>>>> mkoctfile
>>>> mkoctfile-2.1.71
>>>> octave
>>>> octave-2.1.71
>>>> octave-bug
>>>> octave-bug-2.1.71
>>>> octave-config
>>>> octave-config-2.1.71
>>>> octave-core
>>>>
>>>> Trying to invoke mkoctfile to compile ³agc.c² brings
>>>> up the following error.
>>>> doctorpops:/usr/local/bin allangol$
>>>> /usr/local/bin/mkoctfile agc.c
>>>> /usr/local/bin/mkoctfile: line 1: gcc: command not
>>>> found
>>>>
>>>> Specifically, what am I doing wrong? What shoi\uld
>>>> the exact unix commands be?
>>>>
>>>> Thanks
>>>>
>>>> allan
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------------
>>>> 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
>>>> -------------------------------------------------------------
>>>>
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------
>>> 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
>>> -------------------------------------------------------------
>>>
>>
>>
>>
>>
>>
>>
>> -------------------------------------------------------------
>> 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
>> -------------------------------------------------------------
>>
>>
-------------------------------------------------------------
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
-------------------------------------------------------------
Re: Mkoctfile help, Dmitri A. Sergatskov, 2005/08/13