Can't execute file
William Miner
william.miner at enig.com
Thu May 14 09:34:20 CDT 2009
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 <bug at octave.org> (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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090514/8323ba37/attachment.html
More information about the Help-octave
mailing list