Home   Archive   Permalink



compiling Rebol script in Linux ?

Hi ,
i have made. In Linux.
    
1. a folder with the script.r and Rebol view file
2. a text file with bash script : sh_commands
     #!/bin/sh
SKIP=`awk '/^__REBOL_ARCHIVE__/ { print NR +    1; exit 0; }' $0`
tail +$SKIP $0 | tar xz    
exit 0
__REBOL_ARCHIVE__
    
3. a tgz bundle file with
     tar cvf myscript.tgz myfolder
    
4. cat sh_commands myscript.tgz > rebol_program.sh
    
5. rebol_program.sh is ready
    
6. chmod +x rebol_program.sh
    
7. ./rebol_program.sh
    
error message :
------------------------------------------------
tail: caoonot open '+6' for reading : No such file
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
    
Any idea here ?
    
WBR
MH


posted by:   Mennohexo     6-Jun-2017/12:48:24-7:00



I'm a Linux newbie, but to run a rebol script in linux, I first downloaded Rebol from:
     http://www.maxvessi.net/rebsite/Linux/
and once it ran and installed to the system
I wrote a text file:
     the #!/bin/bash
     rebol myscript.r
and saved and set the file's permissions. One click of the file and the script runs. If thats of any help, thats all thats needed to run a script from a file. And, the system can be configured to associate the .r suffix with rebol so scripts run simply by clicking them.


posted by:   Howard     9-Jun-2017/4:38:54-7:00



Thanks.
    
Running is no problem.
    
I meant deployment here.
    
A executable for delivering to user.
    
You have to make a folder with rebol.view executable and your application files.
    
Then linking the mentioned bash script above in that way to that "bundle folder"
that a linux executable appears.
    
the executable really appears , but the errors are seen that i have described.
    
Making a executable in Windows is no problem for me.
    
Want to check out the procedure here in LINUX.
    
If you program Rebol in Linux and want to make a Linux Executable file.
    
Thanks again for your attention
    
Mennohexo

posted by:   Hi Howard     9-Jun-2017/9:02:13-7:00



I extracted the rebol file from    
     http://www.maxvessi.net/pmwiki/uploads/Main/rebol.deb mentioned on
     http://www.rebolforum.com/index.cgi?f=printtopic&topicnumber=65&archiveflag=archive. Some font font issues in linux are also mentioned. Don't know if this rebol file differs from the one on rebol.com
    
I put my script in the new extracted usr/bin file and from a terminal, typed ./rebol myscript The script ran. I don't believe anything was installed on my system, tahrpup, a Ubuntu derivation.
    
I was about to suggest the method Nick once mentioned to make a distributable script - but I see the method you mention is Nick's method.    
    
No doubt Nick will respond when he gets back to the forum. In the meantime, another method might be tried.        
     http://www.linuxjournal.com/node/1005818
has a few more steps.
    
I haven't tried this yet. I would be interested to know if this new method worked for you should you try it. I hope to make a distributable or two myself one day.    


posted by:   Howard     10-Jun-2017/7:22:08-7:00



Yeah , a executable script.
The best is to make a new post for that.


posted by:   Mennohexo     13-Jun-2017/17:15:10-7:00