1. Euphoria Linux Installation
- Posted by Kirkkaf13 Jul 14, 2013
- 2146 views
Hello everyone,
I have just recently moved to Linux and thought I might try out Euphoria as I have heard good things about it.
As I am a complete beginner with using Linux (Lubuntu) I just need some guidance on getting started with Euphoria, I read through some of the documentation and managed to install the 64bit .deb file but I am not sure where to go from here, how do I load up the IDE, save and execute a program?
Thank you in advanced.
EDITED: After reading further documentation I have found out about the ed text editor that can be ran from the terminal.
2. Re: Euphoria Linux Installation
- Posted by Kirkkaf13 Jul 14, 2013
- 2123 views
I am still having some trouble with the editor, as the docs suggest the standard text editor is called 'ed' but after reading the manual on 'ed' I believe there is another program on my computer called 'ed' http://en.wikipedia.org/wiki/Ed_(text_editor)
How can I run the ed that comes with Euphoria?
3. Re: Euphoria Linux Installation
- Posted by jaygade Jul 14, 2013
- 2100 views
I am still having some trouble with the editor, as the docs suggest the standard text editor is called 'ed' but after reading the manual on 'ed' I believe there is another program on my computer called 'ed' http://en.wikipedia.org/wiki/Ed_(text_editor)
How can I run the ed that comes with Euphoria?
"ed" for Euphoria probably should be renamed. However it is a pretty simple program, and a good example program.
If Euphoria is installed in /usr then you should be able to run "eui /usr/share/euphoria/bin/ed.ex". (That's how it is on my Linux box.)
4. Re: Euphoria Linux Installation
- Posted by mattlewis (admin) Jul 14, 2013
- 2064 views
As I am a complete beginner with using Linux (Lubuntu) I just need some guidance on getting started with Euphoria, I read through some of the documentation and managed to install the 64bit .deb file but I am not sure where to go from here, how do I load up the IDE, save and execute a program?
I recommend you try wxIDE. The binaries were built on Kubuntu, so if you're on a recent version of Lubuntu, it should probably work. It's not a deb file, so dependencies aren't automatically handled, but if you install wxWidgets (libwx) it should work.
Matt
5. Re: Euphoria Linux Installation
- Posted by Kirkkaf13 Jul 14, 2013
- 2056 views
"ed" for Euphoria probably should be renamed. However it is a pretty simple program, and a good example program.
If Euphoria is installed in /usr then you should be able to run "eui /usr/share/euphoria/bin/ed.ex". (That's how it is on my Linux box.)
Hi Jaygade,
Thank you this was very helpful and I am not able to run ed.ex. The editor is nice and simple to use. Is there anyway I can create a shortcut to open it?
I recommend you try wxIDE. The binaries were built on Kubuntu, so if you're on a recent version of Lubuntu, it should probably work. It's not a deb file, so dependencies aren't automatically handled, but if you install wxWidgets (libwx) it should work.
Matt
Hi Matt,
Thank you for your response I will definitely take a good at this IDE when I become more familiar with Euphoria.
6. Re: Euphoria Linux Installation
- Posted by jaygade Jul 14, 2013
- 2010 views
Hi Jaygade,
Thank you this was very helpful and I am not able to run ed.ex. The editor is nice and simple to use. Is there anyway I can create a shortcut to open it?
If you were not able to run it, then I'm not sure what to tell you -- either eui is not in your PATH or ed.ex is not installed in /usr/share/euphoria/bin.
To make a command-line shortcut, here is what I would do: in your home directory, mkdir bin. Then edit either your .profile or .bash_profile and add the line "export PATH=/bin:$PATH"
Finally, in your new /bin directory, edit a new file and name it whatever you want to call your shortcut (even 'ed' if you want) and add the line "eui /path/to/ed.ex $@"
These steps are the Linux analog to the DOS/Windows operations of adding a directory to your path in AUTOEXEC.BAT and then creating a batch file to run the program.
7. Re: Euphoria Linux Installation
- Posted by _tom (admin) Jul 15, 2013
- 1987 views
Here is how I make ed.ex useful.
For nostalgic reasons, the "official" Euphoria editor is ed.ex . Consider ed.ex to be a demo program that shows you how a code editor works. It is handy for quick editing and launching demo programs.
Many Linux distributions have a line editor named "ed" installed by default. Use these steps to make ed.ex the default editor:
Tested on Mint Linux.
- install Euphoria
- compile ed.ex
- make a temporary directory in your home directory
for example: /home/mint/oEu_temp - copy ed.ex from /user/share/euphoria/bin to the temp directory
- open a terminal in oEu_temp; at the prompt type:
euc ed.ex - after some activity you will get a compiled editor named ed
test the editor by typing ./ed hello.ex
- make a temporary directory in your home directory
- copy the compiled Euphoria ed to /bin
- open your filemanager as root
(you will need your use password for this) - copy ed to /bin
- open your filemanager as root
- run ed
- open a terminal
- at the prompt type ed hello.ex
Is there any downside to this approach? I intend to add this suggestion to the documentation.
Tom
8. Re: Euphoria Linux Installation
- Posted by ChrisB (moderator) Jul 15, 2013
- 1982 views
Hi
It'll work of course, but some Linux purists might be upset by the contamination of the /bin folder. Perhaps the compiled ed should be put in the /usr/bin folder.
Chris
9. Re: Euphoria Linux Installation
- Posted by mattlewis (admin) Jul 15, 2013
- 1987 views
Hi
It'll work of course, but some Linux purists might be upset by the contamination of the /bin folder. Perhaps the compiled ed should be put in the /usr/bin folder.
Chris
/usr/local/bin is more appropriate.
Matt
10. Re: Euphoria Linux Installation
- Posted by evanmars Jul 15, 2013
- 1962 views
Hi Jaygade,
Thank you this was very helpful and I am not able to run ed.ex. The editor is nice and simple to use. Is there anyway I can create a shortcut to open it?
If you were not able to run it, then I'm not sure what to tell you -- either eui is not in your PATH or ed.ex is not installed in /usr/share/euphoria/bin. <snip>...
I believe his "not" was a typo and meant to be "now."
11. Re: Euphoria Linux Installation
- Posted by K_D_R Jul 15, 2013
- 2018 views
Hi
It'll work of course, but some Linux purists might be upset by the contamination of the /bin folder. Perhaps the compiled ed should be put in the /usr/bin folder.
Chris
I think that installing euphoria in the root file system is a huge pain in the neck. I recommend installing euphoria directly into user space using the generic tar/gz package: euphoria-4.0.5
Under Ubuntu 13.04, my .profile ends with the euphoria assignments:
# set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi PATH="$HOME/euphoria/bin:$PATH" # PATH="$/usr/bin:$PATH" EUDIR="$HOME/euphoria" EUINC="$HOME/euphoria/include" export PATH EUDIR EUINC
Indeed, the only advantage I see to installing Euphoria into the root system in the traditional "Debian" manner would be if such a euphoria package was made available part in parcel with a Linux distribution like ruby, python, lua, etc.
For what it is worth I have not been able to get WxEuphoria to work under Ubuntu 13.04.
Using ed.ex, you will probably have to change some of the key assignments for the LXDE terminal, most notably:
------------------------------------------------------------------------ -- HOME = 262 -- CONTROL_a, LXDE/GNOME-terminal: moves cursor to beginning of line HOME = 1 -- END = 360 -- CONTROL_], LXDE/Gnome-terminal: moves cursor to end of line END = 29 ---------------------------------------------------------------------------
Those assignments may seem strange, but you will fine that pressing "CONTROL + ]" and "CONTROL + a" is actually much easier than reaching for the end/home buttons. At any rate the HOME and KEY buttons will not work for ed.ex under most, if not all linux terminals.
You can also download my heavily modified version of ed.ex: edx ,which will not work unless you have installed euphoria directly into your user space/home directory. You can get some ideas and examples of how ed.ex can be modified and "shaped" to your preferences.
Regards, Ken Rhodes
12. Re: Euphoria Linux Installation
- Posted by Kirkkaf13 Jul 15, 2013
- 1972 views
If you were not able to run it, then I'm not sure what to tell you -- either eui is not in your PATH or ed.ex is not installed in /usr/share/euphoria/bin.
To make a command-line shortcut, here is what I would do: in your home directory, mkdir bin. Then edit either your .profile or .bash_profile and add the line "export PATH=/bin:$PATH"
Finally, in your new /bin directory, edit a new file and name it whatever you want to call your shortcut (even 'ed' if you want) and add the line "eui /path/to/ed.ex $@"
These steps are the Linux analog to the DOS/Windows operations of adding a directory to your path in AUTOEXEC.BAT and then creating a batch file to run the program.
Hi Jaygade,
Sorry, I appear to have made a typo in my last post, I am able to run ed.ex fine.
Thank you for your support everyone, I no longer have an issue.
Kirk.
13. Re: Euphoria Linux Installation
- Posted by ChrisB (moderator) Jul 15, 2013
- 1955 views
Hi
It'll work of course, but some Linux purists might be upset by the contamination of the /bin folder. Perhaps the compiled ed should be put in the /usr/bin folder.
Chris
/usr/local/bin is more appropriate.
Matt
See what I mean
Chris
PS - I also run my eu install from userspace in my home directory - sacrilege I know. But since no one else uses the computer, who cares.
14. Re: Euphoria Linux Installation
- Posted by mattlewis (admin) Jul 15, 2013
- 1955 views
PS - I also run my eu install from userspace in my home directory - sacrilege I know. But since no one else uses the computer, who cares.
I tend to install stable-ish development builds to /usr/local, and I have previous 4.0 releases in my home dir. I have a special bin dir that's in my path, with binaries symlinked as, e.g., eui405. So it's really easy to test things with older versions.
On machines that aren't my main dev machine, I usually have the Debian package of the latest release installed. The server running the forum has the Debian package installed.
Matt
15. Re: Euphoria Linux Installation
- Posted by jaygade Jul 15, 2013
- 1976 views
PS - I also run my eu install from userspace in my home directory - sacrilege I know. But since no one else uses the computer, who cares.
This isn't sacrilegious, it is entirely appropriate. Especially if you didn't have root access on your machine (which you do, but still).
I tend to install stable-ish development builds to /usr/local, and I have previous 4.0 releases in my home dir. I have a special bin dir that's in my path, with binaries symlinked as, e.g., eui405. So it's really easy to test things with older versions.
On machines that aren't my main dev machine, I usually have the Debian package of the latest release installed. The server running the forum has the Debian package installed.
Matt
On my Mac, I just put some somewhat stable eubins into $HOME/bin. I haven't yet installed system-wide because I don't even have "stable-ish" development builds yet.
On my old Linux laptop, I just installed from the .deb so it put Euphoria into /usr/bin, /usr/lib, and /usr/share/euphoria. I think that I did a couple of builds into my Dropbox folder.
On Windows Euphoria is installed wherever it gets put. I don't use my Windows box much for stuff other than gaming. I did do a Windows install to my Dropbox folder so that I can run it from my work computer (no admin privileges).
For my development, I've created my repositories on my Dropbox so I can access the source from any machine (even work). I keep build directories there too, but I have them set to be ignored by Dropbox so they aren't cloned to every machine.