Creating a standalone executable:Debian Lenny, P6

Mike B. mb78aa at yahoo.com
Wed May 13 01:39:53 CDT 2009


Hi Soren,

Thanks for your reply. Your solution requires the user to have octave installed as you are referring to making the script (m file) executable by loading octave while I want to create a standalone file (please see my original post) which does not require the user to install octave, that is a binary executable.

Cheers,
Mike.


--- On Wed, 5/13/09, Søren Hauberg <soren at hauberg.org> wrote:

From: Søren Hauberg <soren at hauberg.org>
Subject: Re: Creating a standalone executable:Debian Lenny, P6
To: "Mike B." <mb78aa at yahoo.com>
Cc: help-octave at octave.org
Date: Wednesday, May 13, 2009, 3:49 PM

tir, 12 05 2009 kl. 19:40 -0700, skrev Mike B.:
> Hi All,
> 
> I'm using Debian Lenny Linux on an intel P6. Can I convert an octave
> script file (myfile.m) into a standalone executable such that a user
> will simply run:
> ./myfile
> without the user having to install octave and any function files
> called by myfile.m? .
> 

You could something like

  #!/usr/bin/env octave

to the top of your file and make it executable using 'chmod'. That
should do the trick

Søren




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www-old.cae.wisc.edu/pipermail/help-octave/attachments/20090512/8e0048ff/attachment.html 


More information about the Help-octave mailing list