help-octave
[Top][All Lists]
Advanced

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

Can't execute file


From: William Miner
Subject: Can't execute file
Date: Thu, 14 May 2009 10:34:20 -0400
User-agent: Microsoft-Entourage/12.17.0.090302

I’m new to Octave and I’m trying to do something on page 25 of the GNU Octave Manual Version 3. I’m running on a Mac under OS 10.5.6.

I have two files

dsl017-068-210:Octave williamminer$ cat hello_1_line
printf ("Hello, world!\n");

dsl017-068-210:Octave williamminer$ cat hello
#! octave -qf
# A sample Octave program
printf ("Hello, world!\n");

If I execute octave hello_1_line I get

dsl017-068-210:Octave williamminer$ octave hello_1_line
GNU Octave, version 3.0.3
Copyright (C) 2008 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type `warranty'.

Octave was configured for "i386-apple-darwin8.9.1".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/help-wanted.html

Report bugs to <address@hidden> (but first, please read
http://www.octave.org/bugs.html to learn how to write a helpful report).

For information about changes from previous versions, type `news'.

Hello, world!

However if I execute ./hello I get

dsl017-068-210:Octave williamminer$ ./hello
-bash: ./hello: octave: bad interpreter: No such file or directory

What am I doing wrong?

Thanks!

Buff Miner

--
Enig Associates, Inc.
Suite 500, Bethesda Crescent Bldg.
4600 East West Hwy
Bethesda, Maryland 20814
Tel:(301)680-8600
Fax:(301)680-8100


reply via email to

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