1. Run Euphoria without installing -- Use the Slax module
- Posted by _tom (admin) Nov 26, 2009
- 1743 views
I made a module for Slax Linux.
You can try Euphoria on Linux without any impact on your exisiting OS, your files, or your computer.
- download Slax Linux: www.slax.org ( 200 MB )
- pick from bootable CD, or bootable USB version
- download euSlax3021.lzm ( 9 MB ) from
http://a.imagehost.org/download/0899/euSlax3021
You now have:
- Slax linux that boots either from CD or USB stick
- interpreter (eui version 3021 )
- Kate (with syntax coloring)
- compiler ( euc and gcc)
- documentation (pdf)
- gui (Mullins GTK)
- documentation tools ( eudoc, creolehtml, htmtmldoc )
- Just click on the module file to load it into Slax.
- Then simultaneously press ctr+alt+backspace (to activate the new profile)
- The "Home" icon takes you to Euphoria, pdf, and gui demos
2. Re: Run Euphoria without installing -- Use the Slax module
- Posted by irv Dec 04, 2009
- 1486 views
Pretty cool. Too bad Slax is missing some of the newer GTK controls. BTW, by this evening, I'll have an update to EuGTK posted, with new demos of listview, iconview, and treeview controls.
3. Re: Run Euphoria without installing -- Use the Slax module
- Posted by jiri Dec 12, 2009
- 1387 views
Very nice. It's a pleasure to come across a package that works as intended straight 'out of the box'.
One really unrelated question: when I try to open a non-existent file for 'append' under linux I get an error. Under windows, agreeably, an empty file is quietly generated. Is the inconsistency due to differencies in operating systems or is it just a euphoria quirk?
jiri
4. Re: Run Euphoria without installing -- Use the Slax module
- Posted by DerekParnell (admin) Dec 12, 2009
- 1274 views
when I try to open a non-existent file for 'append' under linux I get an error. Under windows, agreeably, an empty file is quietly generated.
Can someone else confirm this effect? Looking at the source code, Euphoria's backend calls the 'fopen' C function, which according to the Linux docs will create a file in 'append' mode if the file doesn't exist.
5. Re: Run Euphoria without installing -- Use the Slax module
- Posted by jimcbrown (admin) Dec 12, 2009
- 1281 views
when I try to open a non-existent file for 'append' under linux I get an error. Under windows, agreeably, an empty file is quietly generated.
Can someone else confirm this effect? Looking at the source code, Euphoria's backend calls the 'fopen' C function, which according to the Linux docs will create a file in 'append' mode if the file doesn't exist.
Using r3021, the following code works fine for me (it creates the empty file and prints a file handle of 3):
integer h h = open("/tmp/hty.hty", "a") ? h close(h)
6. Re: Run Euphoria without installing -- Use the Slax module
- Posted by jimcbrown (admin) Dec 12, 2009
- 1283 views
One really unrelated question: when I try to open a non-existent file for 'append' under linux I get an error. Under windows, agreeably, an empty file is quietly generated. Is the inconsistency due to differencies in operating systems or is it just a euphoria quirk?
jiri
Are you sure that you have permission to write to that directory? If the unix permissions (set via chmod) are not set up correctly, Euphoria (or any other unix program you run) won't be able to open any file for writing or create any file in that directory, hence the error.
7. Re: Run Euphoria without installing -- Use the Slax module
- Posted by jiri Dec 12, 2009
- 1281 views
One really unrelated question: when I try to open a non-existent file for 'append' under linux I get an error. Under windows, agreeably, an empty file is quietly generated. Is the inconsistency due to differencies in operating systems or is it just a euphoria quirk?
jiri
Are you sure that you have permission to write to that directory? If the unix permissions (set via chmod) are not set up correctly, Euphoria (or any other unix program you run) won't be able to open any file for writing or create any file in that directory, hence the error.
If I create an empty file with the required name by hand (e.g. using a text editor), the program happily writes to it, it runs ok. jiri
8. Re: Run Euphoria without installing -- Use the Slax module
- Posted by jimcbrown (admin) Dec 12, 2009
- 1313 views
If I create an empty file with the required name by hand (e.g. using a text editor), the program happily writes to it, it runs ok. jiri
Ok, please run this:
strace eui <the program.ex> 2>&1 | tee logfile.txt
And then copy&paste the logfile to http://euphoria.pastey.net
9. Re: Run Euphoria without installing -- Use the Slax module
- Posted by jiri Dec 12, 2009
- 1298 views
Sorry, guys. It was my own stupid mistake: I was using a program I had devoloped originally under windows. The output file had the same name as the executable without the '.exe' extension. Under linux it is, of course, also the name of the running executable, which, quite properly, refused to overwrite itself...
Sorry... jiri