1. problem installing in Linux Mint
- Posted by silvercoon Jun 14, 2010
- 3081 views
The .tar file has no install utility, so I simply extracted the archive to /home/david. I posted a request on another topic on the Mint forum, but the site has login issues. So it might be quicker to post here. Do I need to create a .bash_profile for the PATH/EUDIR variables to work? There are .bash_history & .bash_logout, but no .bash_profile. There is a .profile, but editing it didn't work. For some reason the file isn't being loaded at startup.
'Seek freedom and become captive of your desires. Seek discipline and find your liberty.' Frank Herbert, Chapterhouse:Dune
2. Re: problem installing in Linux Mint
- Posted by irv Jun 14, 2010
- 3080 views
I think this has to be in /etc/profile
This has to be edited as root, so try from a terminal: gksudo gedit /etc/profile
Then logout and back in, or reboot.
3. Re: problem installing in Linux Mint
- Posted by _tom (admin) Jun 14, 2010
- 3006 views
I downloaded linuxmint-9-gnome-cd-i386.iso
This version will load as a live cd.
I also got a fresh copy of euphoria_4.0_1ubuntu1_i386.deb (get it from Sourceforge).
Euphoria installs and runs from the Mint live cd; just click on the .deb file.
4. Re: problem installing in Linux Mint
- Posted by mattlewis (admin) Jun 14, 2010
- 3044 views
The .tar file has no install utility, so I simply extracted the archive to /home/david. I posted a request on another topic on the Mint forum, but the site has login issues. So it might be quicker to post here. Do I need to create a .bash_profile for the PATH/EUDIR variables to work? There are .bash_history & .bash_logout, but no .bash_profile. There is a .profile, but editing it didn't work. For some reason the file isn't being loaded at startup.
Yes, .bash_profile is what you want. If it doesn't exist, then create it, and put:
PATH=$PATH:/home/silvercoon/euphoria/bin export PATH EUDIR=/home/silvercoon/euphoria
Modify those paths to whatever they actually are.
Matt
5. Re: problem installing in Linux Mint
- Posted by silvercoon Jun 16, 2010
- 2938 views
I created a .bash_profile, and edited it accordingly. Still doesn't work. But it looks normal in gedit. However, this is what I found when I opened it in nautilus:
- This script file is executed by bash(1) for login shells. By default,
- it does nothing, as /.bashrc is already sourced by /etc/profile.
6. Re: problem installing in Linux Mint
- Posted by jimcbrown (admin) Jun 16, 2010
- 2944 views
I created a .bash_profile, and edited it accordingly. Still doesn't work. But it looks normal in gedit. However, this is what I found when I opened it in nautilus:
# This script file is executed by bash(1) for login shells. By default, # it does nothing, as ~/.bashrc is already sourced by /etc/profile.
Not the best of ideas, but perhaps, try putting the changes in .bashrc instead of .bash_profile ?
7. Re: problem installing in Linux Mint
- Posted by silvercoon Jun 16, 2010
- 2898 views
I created a .bash_profile, and edited it accordingly. Still doesn't work. But it looks normal in gedit. However, this is what I found when I opened it in nautilus:
# This script file is executed by bash(1) for login shells. By default, # it does nothing, as ~/.bashrc is already sourced by /etc/profile.
Not the best of ideas, but perhaps, try putting the changes in .bashrc instead of .bash_profile ?
mattlewis (admin) said: Yes, .bash_profile is what you want. (I quoted him like this because I couldn't figure out how to 'quote' more than once.)
No disrespect intended, but who's right? If I edit .bashrc, does it affect .bash_profile?
8. Re: problem installing in Linux Mint
- Posted by jimcbrown (admin) Jun 16, 2010
- 2921 views
I created a .bash_profile, and edited it accordingly. Still doesn't work. But it looks normal in gedit. However, this is what I found when I opened it in nautilus:
# This script file is executed by bash(1) for login shells. By default, # it does nothing, as ~/.bashrc is already sourced by /etc/profile.
Not the best of ideas, but perhaps, try putting the changes in .bashrc instead of .bash_profile ?
mattlewis (admin) said: Yes, .bash_profile is what you want. (I quoted him like this because I couldn't figure out how to 'quote' more than once.)
No disrespect intended, but who's right? If I edit .bashrc, does it affect .bash_profile?
Normally, .bash_profile is the correct place to put local profile changes that should only affect the login sessions of a single user, while .bashrc holds the settings that apply to all shells and scripts of that sole user. /etc/profile holds global, system-wide (all users) profile changes, intended for login shells ; whereas /etc/bashrc holds global system-wide settings that apply to all scripts and shells.
(Yes, I know I have oversimplified the difference between csh and bourne shells, let alone bash/ksh/zsh/etc ; I was trying to go for a short overview here.).
Anyways, these settings belong in .bash_profile or /etc/profile (depending on if you want to aply the settings to just one user or all users) but if .bash_profile doesn't work, modifying .bashrc is more likely to cause the changes to get picked up.
A login shell is set up when you log into the computer on a Virtual Console (Ctrl-Alt-F1, F2, ...) or via remote (e.g. an ssh login). Technically, the login shell environment is set up when you log into KDE or GNOME via KDM or GDM (or xdm ,.. etc) for the first time, and all shells run via a Terminal (e.g. konsole or xterm) inherit from that login shell. .bash_profile is run only when a "login" is performed, while .bashrc is always run when a new shell is created (e.g. via xterm).
9. Re: problem installing in Linux Mint
- Posted by jimcbrown (admin) Jun 16, 2010
- 2994 views
I created a .bash_profile, and edited it accordingly. Still doesn't work. But it looks normal in gedit. However, this is what I found when I opened it in nautilus:
# This script file is executed by bash(1) for login shells. By default, # it does nothing, as ~/.bashrc is already sourced by /etc/profile.
Not the best of ideas, but perhaps, try putting the changes in .bashrc instead of .bash_profile ?
mattlewis (admin) said: Yes, .bash_profile is what you want. (I quoted him like this because I couldn't figure out how to 'quote' more than once.)
No disrespect intended, but who's right? If I edit .bashrc, does it affect .bash_profile?
mattlewis is correct, editing .bash_profile is the Right Way(tm) to do this.
10. Re: problem installing in Linux Mint
- Posted by silvercoon Jun 16, 2010
- 2963 views
So far I've edited .bash_profile and .bashrc, and nothing has worked even after rebooting. I setup the variables reflecting where Euphoria was installed.
What's happened so far:
I've downloaded the beta. The install automatically went to /usr/share. Is this correct?
Left-clicking most Euphoria files opens them in gedit.
I've tried right-clicking a program file and setting it to open with EX, etc. The file runs (minimized) in the taskbar for a moment, then exits. This especially happens with programs in the /include folder.
I've tried running a program in a terminal:
"guru" [New File] Entering Ex mode. Type "visual" to go to Normal mode.
If I type 'visual', the screen clears, & the cursor appears up top. A series of dashes goes down the screen like this:
- - -
Thanks people, for being so patient.
11. Re: problem installing in Linux Mint
- Posted by jimcbrown (admin) Jun 16, 2010
- 2902 views
I am not sure where you got the instructions to run ex but that is wrong.
Euphoria 3.1 and below, the command is exu
Euphoria 4.0 has the command as eui
ex is a UNIX command that runs a special mode of the text console mode text editor vi.
12. Re: problem installing in Linux Mint
- Posted by mattlewis (admin) Jun 16, 2010
- 2970 views
So far I've edited .bash_profile and .bashrc, and nothing has worked even after rebooting. I setup the variables reflecting where Euphoria was installed.
What's happened so far:
I've downloaded the beta. The install automatically went to /usr/share. Is this correct?
OK, what exactly did you download? Was it the debian package? In that case, a lot of stuff (include files, demos, source, etc) goes there. The binaries go right into /usr/bin in that case, and you should be able to run them, since they would be in your path. The .bash_profile stuff is just to add something to your path.
It also adds man pages, and you should be able to view the documentation locally if you have something like dhelp installed. Try typing, for example, "man eui" and you should get a man page for the euphoria interpreter.
Try something like:
$ which euiAnd let us know what you get. Also, try:
$ echo $PATH...and let us know if that includes whatever you put into .bash_profile.
But if you installed the debian package, you should be good to go. It automatically puts the binaries where you can run them, and adds an eu.cfg file to /etc/euphoria (IIRC), which is checked by default. So you should have access to the standard library by:
include std/...
Note that you really don't need to set $EUDIR if you use a config (eu.cfg) file. It's actually easier, since editing a config file always takes immediate effect (as opposed to environment variables, which changes don't propagate to open shells).
Matt
13. Re: problem installing in Linux Mint
- Posted by silvercoon Jun 16, 2010
- 2955 views
I am forced to admit user error as far as 'EX' goes (not blaming anyone else in turn, of course).
But still nothing works:
david@david-desktop ~ $ eui guru Can't open guru.ex
I even tried to input the location of the file:
david@david-desktop ~ $ eui /home/david/euphoria/bin/guru /home/david/euphoria/bin/guru.ex:585 <0003>:: ifdef word must be an identifier ifdef !UNIX then
14. Re: problem installing in Linux Mint
- Posted by mattlewis (admin) Jun 17, 2010
- 2908 views
I am forced to admit user error as far as 'EX' goes (not blaming anyone else in turn, of course).
But still nothing works:
david@david-desktop ~ $ eui guru Can't open guru.ex
I even tried to input the location of the file:
david@david-desktop ~ $ eui /home/david/euphoria/bin/guru /home/david/euphoria/bin/guru.ex:585 <0003>:: ifdef word must be an identifier ifdef !UNIX then
I think that guru has been broken for some time, and was just recently (early May) fixed in svn, which explains the error you're seeing. Originally, the ifdef syntax used '!' to mean 'not'. However, as the rest of euphoria uses the actual word 'not', we changed ifdefs to match the rest of euphoria.
When you want to run a particular euphoria program, you'll need to be in the same directory as that program, or use an absolute or relative path to it. Since eui is on your path, you should be able to run it from anywhere.
Matt
15. Re: problem installing in Linux Mint
- Posted by silvercoon Jun 17, 2010
- 2925 views
So far I've edited .bash_profile and .bashrc, and nothing has worked even after rebooting. I setup the variables reflecting where Euphoria was installed.
What's happened so far:
I've downloaded the beta. The install automatically went to /usr/share. Is this correct?
OK, what exactly did you download? Was it the debian package? In that case, a lot of stuff (include files, demos, source, etc) goes there. The binaries go right into /usr/bin in that case, and you should be able to run them, since they would be in your path. The .bash_profile stuff is just to add something to your path.
It also adds man pages, and you should be able to view the documentation locally if you have something like dhelp installed. Try typing, for example, "man eui" and you should get a man page for the euphoria interpreter.
I downloaded the beta from main page, the 'test drive' link. Next, I tried to make sure to reduce user error instances. For instance, I left the Euphoria folder in /usr/share and made sure .bashrc was setup right.
PATH=$PATH:/usr/share/euphoria/bin export PATH EUDIR=/usr/share/euphoria
I also checked .bash_profile and profile to make sure they were empty (this shouldn't be a problem, after all, I created .bash_profile from scratch and .profile was empty in the first place. even in nautilus).
Try something like:
$ which euiAnd let us know what you get.
/usr/bin/eui
Also, try:
$ echo $PATH...and let us know if that includes whatever you put into .bash_profile.
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
But if you installed the debian package, you should be good to go. It automatically puts the binaries where you can run them, and adds an eu.cfg file to /etc/euphoria (IIRC), which is checked by default. So you should have access to the standard library by:
include std/...
Note that you really don't need to set $EUDIR if you use a config (eu.cfg) file. It's actually easier, since editing a config file always takes immediate effect (as opposed to environment variables, which changes don't propagate to open shells).
Matt
16. Re: problem installing in Linux Mint
- Posted by DerekParnell (admin) Jun 17, 2010
- 2870 views
PATH=$PATH:/usr/share/euphoria/bin export PATH EUDIR=/usr/share/euphoria
Don't you need to EXPORT the EUDIR symbol as well?
17. Re: problem installing in Linux Mint
- Posted by silvercoon Jun 17, 2010
- 2838 views
PATH=$PATH:/usr/share/euphoria/bin export PATH EUDIR=/usr/share/euphoria
Don't you need to EXPORT the EUDIR symbol as well?
PATH=$PATH:/usr/share/euphoria/bin export PATH EUDIR=/usr/share/euphoria export EUDIR
I think I've figured it out. I recalled reading somewhere that you can navigate to a folder where a program is installed, R-click inside the window of the program you want to run, then 'Open in Terminal'. I was running the terminal from the start menu.
So far, the programs in the default install seem to work (that I've tried), except for 'guru'. Also, the few games I've been able to find still won't run. I'm not sure what folder to put them in so Euphoria can detect them.
<quote> mattlewis I think that guru has been broken for some time, and was just recently (early May) fixed in svn, which explains the error you're seeing.
Is guru really fixed? $ eui guru (from BIN) Can't create error message file: ex.err
The patience from all who responded is greatly appreciated. Thank you.
18. Re: problem installing in Linux Mint
- Posted by silvercoon Jan 26, 2011
- 2559 views
Two big changes:
Now running Peppermint OS, and I've installed the Euphoria debian package.
which eui /usr/bin/eui
echo $PATH /usr/lib/libfm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr
eui guru Can't open guru.ex (Still. Works only if I'm in the physical folder.)
Include errors: /home/david/Euphoria/Astro/astro.ex:376 <0052>:: can't find 'demos\basdemos.e' in any of ... /home/david/Euphoria/Astro /home/david/Euphoria/Astro/astro.ex /usr/share/euphoria/include /usr/share/euphoria
include demos\basdemos.e as bas
^
- Defined Words - EU4 EU4_0 EU4_0_0 UNIX LINUX EUI
I've tried adding the include files from the game's 'demos' folder to Euphoria's include folder, but thanks to Linux's anal 'permissions' requirements, I'm not allowed. This process doesn't even work when I'm in root.
19. Re: problem installing in Linux Mint
- Posted by Insolor Feb 01, 2011
- 2406 views
/home/david/Euphoria/Astro/astro.ex:376 <0052>:: can't find 'demos\basdemos.e' in any of ... /home/david/Euphoria/Astro /home/david/Euphoria/Astro/astro.ex /usr/share/euphoria/include /usr/share/euphoria include demos\basdemos.e as bas ^
astro.ex is DOS program (athough it wrote under WinXP). Probably include problem there is because of '\' character. Try to replace:
include demos\basdemos.e as bas
with
include demos/basdemos.e as bas
Even though if would help, note that astro.ex is DOS programme and uses dos-specific routines (eg. pixel-graphics ones), so it will not run under Linux.
20. Re: problem installing in Linux Mint
- Posted by jimcbrown (admin) Feb 01, 2011
- 2379 views
/home/david/Euphoria/Astro/astro.ex:376 <0052>:: can't find 'demos\basdemos.e' in any of ... /home/david/Euphoria/Astro /home/david/Euphoria/Astro/astro.ex /usr/share/euphoria/include /usr/share/euphoria include demos\basdemos.e as bas ^
astro.ex is DOS program (athough it wrote under WinXP). Probably include problem there is because of '\' character. Try to replace:
include demos\basdemos.e as bas
with
include demos/basdemos.e as bas
Even though if would help, note that astro.ex is DOS programme and uses dos-specific routines (eg. pixel-graphics ones), so it will not run under Linux.
Although eu_engin.e will assist with some of that (such as pixel-graphics) but not others (such as directly use of dos_interrupt() or machine code call()s that access hardware directly).
http://www.RapidEuphoria.com/eu_engin.zip by Bernie Ryan.
21. Re: problem installing in Linux Mint
- Posted by Insolor Feb 02, 2011
- 2329 views
Although eu_engin.e will assist with some of that (such as pixel-graphics) but not others (such as directly use of dos_interrupt() or machine code call()s that access hardware directly).
http://www.RapidEuphoria.com/eu_engin.zip by Bernie Ryan.
Thank you, I didn't heard about eu_engin.e before. astro.ex do not use any low-level routines, so it would be rather easy to make it run on Linux.