1. Euphoria-Linux issue

Hello world !

As if there weren't enough computer-languages to dive in for me,like Bash-scripting,Python,Haskell,and also a little C, beside the millions of ordinary topics in computing,I felt in love with Euphoria at the first glance!
And for a linux-bound,like me,things won't become easier. Some time ago,I tried to install Euphoria on my openSUSE 11.3, 64-bit system.Was not done only by installing,due to a missing distro-binary,I had to build it.
During the compilation,I got told,that there were some files missing.As an idea,I looked into the deb-package,found there the missing files,eubin and such,put them into the directory, where they should be,and...doesn't work.
Cancelled that project for a while,and now I'm back again,with the same,and other problems.
I'm not such an expierienced builder,if it works,all is fine, but let there appear any warnings or errors,I'm totally lost. Can someone here support me,building Euphoria on the system above,the install-file is a little too spare with instructions for me ?
And what's about the editor,binder and translator,are they present for my linux,too ?

Greetings !

linuxer007

new topic     » topic index » view message » categorize

2. Re: Euphoria-Linux issue

linuxer007 said...

And for a linux-bound,like me,things won't become easier. Some time ago,I tried to install Euphoria on my openSUSE 11.3, 64-bit system.Was not done only by installing,due to a missing distro-binary,I had to build it.

Euphoria is fairly well supported on Linux, actually. Current versions of euphoria are all 32 bit. 4.1 will also have a native 64 bit version (it currently works, and is my "main" euphoria at this point). Can you tell us which files are missing?

Since you're running a 64 bit distro, my first suspicion is that perhaps you don't have the libraries installed that allow you to run 32-bit applications. It's probably something like ia32-libs. If that's not it, could you give more detail about the message you get when you try to run euphoria?

linuxer007 said...

During the compilation,I got told,that there were some files missing.As an idea,I looked into the deb-package,found there the missing files,eubin and such,put them into the directory, where they should be,and...doesn't work.

Cancelled that project for a while,and now I'm back again,with the same,and other problems.

I'm not such an expierienced builder,if it works,all is fine, but let there appear any warnings or errors,I'm totally lost. Can someone here support me,building Euphoria on the system above,the install-file is a little too spare with instructions for me ?

Parts of the euphoria libraries are written in euphoria, so they require a working euphoria interpreter to translate the euphoria code into C, which is then compiled by your C compiler.

So in order to build, you'll need a working interpreter. The easiest thing is to get the Linux tar.gz download. It's also linked on the downloads page.

Make sure that it runs. Then, you should be able to build euphoria like this:

$ cd path/to/euphoria/source 
$ ./configure --eubin path/to/working/interpreter 
$ make all 
$ make tools 

NB: if you've gotten updated source from our hg repo, you won't need to run make tools.

It should all build at that point.

linuxer007 said...

And what's about the editor,binder and translator,are they present for my linux,too ?

Yes, all of the features of euphoria are there on Linux, although ed.ex, while included, isn't really recommended for editing. The names of the binaries (in 4.0):

binder
eubind
translator
euc
Matt

new topic     » goto parent     » topic index » view message » categorize

3. Re: Euphoria-Linux issue

Hello Matt !

Since my last attempt is a while ago,I don't remember exactly,what I have done, and what was missed.Like I posted before,some files with "eu" in its names, like eubin,maybe.
But tell me,please,how can I get a working interpreter,when I don't have it compiled
before ?
And which archive shall I take,the generic,or the scr?
On my system,I think,I can run eighter 32-bit or 64-bit apps. Found an ia32el(execution-layer) with Yast,which I installed,do you mean that?
Just tried again,to compile the euphoria-4.0.0-src.tar.gz,following the instruction on the download-page,but now,it does not work overall!Message after ./configure:

which: no hg in (/usr/lib64/mpi/gcc/openmpi/bin:/home/me/bin:/usr/local/bin: /usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin: /usr/lib/mit/sbin)

The same with the ...generic.tar.gz.
And what do you mean with "updated source in what hg repo"(ha,the hg from above?) ? Totally confused now!
Since we are not developers all,I think,there should be more information about howto,especially,when you need more than "./configure,make,make install" !

Greetings !

linuxer007

new topic     » goto parent     » topic index » view message » categorize

4. Re: Euphoria-Linux issue

He gave you the link to the current stable .tar.gz version of Euphoria. Try that.

Once THAT works, then worry about compiling it on your own.

new topic     » goto parent     » topic index » view message » categorize

5. Re: Euphoria-Linux issue

linuxer007 said...

Hello Matt !

Since my last attempt is a while ago,I don't remember exactly,what I have done, and what was missed.Like I posted before,some files with "eu" in its names, like eubin,maybe.
But tell me,please,how can I get a working interpreter,when I don't have it compiled
before ?
And which archive shall I take,the generic,or the scr?
On my system,I think,I can run eighter 32-bit or 64-bit apps. Found an ia32el(execution-layer) with Yast,which I installed,do you mean that?
Just tried again,to compile the euphoria-4.0.0-src.tar.gz,following the instruction on the download-page,but now,it does not work overall!Message after ./configure:

which: no hg in (/usr/lib64/mpi/gcc/openmpi/bin:/home/me/bin:/usr/local/bin: /usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin: /usr/lib/mit/sbin)

The same with the ...generic.tar.gz.
And what do you mean with "updated source in what hg repo"(ha,the hg from above?) ? Totally confused now!
Since we are not developers all,I think,there should be more information about howto,especially,when you need more than "./configure,make,make install" !

Greetings !

linuxer007

Many apologies if I'm way off track, but I THINK by "hg" is meant "Mercury", as in some web site named "Mercury" where the developers store development files?

Dan

new topic     » goto parent     » topic index » view message » categorize

6. Re: Euphoria-Linux issue

Hello !

Poooh...,difficult delivery!Have had the generic-archive downloaded,but took a too fast look into it,just compared it with the source-archive,did not find the binaries.
Made the binaries executable,and tried to test some of the demos with eui,and here did some problems occure.The messages,I got from eui,are of this kind:

-a number after the call(...xyz.ex:number)
-in the next line an error-number in brackets(allways <0052>),and
-the "can't find the std.e in any of the Euphoria-dirs"-message

Tried to start the demos in the include-dir,but then eui was not found.
Trying to run ed.ex ends after the first few lines with "...unexpected command...". Can someone tell me,what procedure will work here?I know,I have to go through the
tutorials,but would be nice,to get a little kick-off.
First,I'm happy to got Euphoria "installed" in such an easy manner!

Dan : Thanks,but now I have to explore my local depot first!

Greeetings !

linuxer007

new topic     » goto parent     » topic index » view message » categorize

7. Re: Euphoria-Linux issue

Hello!

Have tried now,with some path-settings in /etc/profile and /.bashrc,to get Euphoria working.In addition,I created an /.eu.cfg.
The profile/bashrc-settings are :

# 
# Additional paths for Euphoria 
# 
EUDIR=$HOME/Programme/Anwendungen/Euphoria 
PATH=$EUDIR/bin:$PATH 
EUINC=$EUDIR/include 
export PATH EUDIR EUINC 

And my eu.cfg is :

[all]   
-i ~/Programme/Anwendungen/Euphoria/include  
-i ~/Programme/Anwendungen/Euphoria/include/euphoria 
-i ~/Programme/Anwendungen/Euphoria/include/std  
-i ~/Programme/Anwendungen/Euphoria/include/std/net 
-i ~/Programme/Anwendungen/Euphoria/include/std/win32 
-i ~/Programme/Anwendungen/Euphoria/demo 
-i ~/Programme/Anwendungen/Euphoria/demo/bench 
-i ~/Programme/Anwendungen/Euphoria/demo/langwar 
-i ~/Programme/Anwendungen/Euphoria/demo/net 
-i ~/Programme/Anwendungen/Euphoria/demo/preproc 
-i ~/Programme/Anwendungen/Euphoria/demo/unix 
-i ~/Programme/Anwendungen/Euphoria/source 
-i ~/Programme/Anwendungen/Euphoria/source/codepage 
-i ~/Programme/Anwendungen/Euphoria/source/pcre 
-i ~/Programme/Anwendungen/Euphoria/tests 
-i ~/Programme/Anwendungen/Euphoria/tutorial 
-i ~/Projekte/Euphoria 
The hints for creating the eu.cfg and adding the paths, I found in an older Euphoria-thread.
And at the beginning,I renamed the "euphoria-4.0.0-generic" dir to "Euphoria", maybe this is of importance.
The effects,I'm facing(after a reboot),are as follows :
- the path is the old one,no addition(per hand,it works)
- neighter eui,nor ed will find anything,to work :
rabe@linux:~/Programme/Anwendungen/Euphoria/bin> ./ed.ex allsorts.ex 
./ed.ex: Zeile 1: ----------------------------------------------------------: Kommando nicht gefunden. 
./ed.ex: Zeile 2: --: Kommando nicht gefunden. 
./ed.ex: Zeile 3: --: Kommando nicht gefunden. (command not found) 
./ed.ex: Zeile 4: --: Kommando nicht gefunden. 
./ed.ex: Zeile 5: --: Kommando nicht gefunden. 
./ed.ex: Zeile 6: Syntaxfehler beim unerwarteten Wort `('  (syntax-error on unexpected word) 
./ed.ex: Zeile 6: `             -- and/or redistribute this editor (ed.ex, syncolor.e). --' 
 
rabe@linux:~/Programme/Anwendungen/Euphoria/demo> ./eui allsorts.ex 
bash: ./eui: Datei oder Verzeichnis nicht gefunden (file or dir not found) 
rabe@linux:~/Programme/Anwendungen/Euphoria/demo> cd ~/Programme//Anwendungen/Euphoria/bin 
rabe@linux:~/Programme/Anwendungen/Euphoria/bin> ./eui allsorts.ex 
Can't open allsorts.ex 
rabe@linux:~/Programme/Anwendungen/Euphoria/bin>  
As you see,I allways have to enter the dir of the eui/ed,or nothing works.
Of course,I made the files executable.
Hmmm,what's it,I don't get?Is the addition in the profile in a wrong place,has it to be stored also in another config,wrong syntax,or what ?

Hope,someone can help here...

Greetings !

linuxer007

Just saw,editor can't display the "tilde"?!

new topic     » goto parent     » topic index » view message » categorize

8. Re: Euphoria-Linux issue

linuxer007 said...

Hello!

Have tried now,with some path-settings in /etc/profile and /.bashrc,to get Euphoria working.In addition,I created an /.eu.cfg.
The profile/bashrc-settings are :

# 
# Additional paths for Euphoria 
# 
EUDIR=$HOME/Programme/Anwendungen/Euphoria 
PATH=$EUDIR/bin:$PATH 
EUINC=$EUDIR/include 
export PATH EUDIR EUINC 

And my eu.cfg is :

[all]   
-i ~/Programme/Anwendungen/Euphoria/include  
-i ~/Programme/Anwendungen/Euphoria/include/euphoria 
-i ~/Programme/Anwendungen/Euphoria/include/std  
-i ~/Programme/Anwendungen/Euphoria/include/std/net 
-i ~/Programme/Anwendungen/Euphoria/include/std/win32 
-i ~/Programme/Anwendungen/Euphoria/demo 
-i ~/Programme/Anwendungen/Euphoria/demo/bench 
-i ~/Programme/Anwendungen/Euphoria/demo/langwar 
-i ~/Programme/Anwendungen/Euphoria/demo/net 
-i ~/Programme/Anwendungen/Euphoria/demo/preproc 
-i ~/Programme/Anwendungen/Euphoria/demo/unix 
-i ~/Programme/Anwendungen/Euphoria/source 
-i ~/Programme/Anwendungen/Euphoria/source/codepage 
-i ~/Programme/Anwendungen/Euphoria/source/pcre 
-i ~/Programme/Anwendungen/Euphoria/tests 
-i ~/Programme/Anwendungen/Euphoria/tutorial 
-i ~/Projekte/Euphoria 
The hints for creating the eu.cfg and adding the paths, I found in an older Euphoria-thread.
And at the beginning,I renamed the "euphoria-4.0.0-generic" dir to "Euphoria", maybe this is of importance.
The effects,I'm facing(after a reboot),are as follows :
- the path is the old one,no addition(per hand,it works)
- neighter eui,nor ed will find anything,to work :
rabe@linux:~/Programme/Anwendungen/Euphoria/bin> ./ed.ex allsorts.ex 
./ed.ex: Zeile 1: ----------------------------------------------------------: Kommando nicht gefunden. 
./ed.ex: Zeile 2: --: Kommando nicht gefunden. 
./ed.ex: Zeile 3: --: Kommando nicht gefunden. (command not found) 
./ed.ex: Zeile 4: --: Kommando nicht gefunden. 
./ed.ex: Zeile 5: --: Kommando nicht gefunden. 
./ed.ex: Zeile 6: Syntaxfehler beim unerwarteten Wort `('  (syntax-error on unexpected word) 
./ed.ex: Zeile 6: `             -- and/or redistribute this editor (ed.ex, syncolor.e). --' 
 
rabe@linux:~/Programme/Anwendungen/Euphoria/demo> ./eui allsorts.ex 
bash: ./eui: Datei oder Verzeichnis nicht gefunden (file or dir not found) 
rabe@linux:~/Programme/Anwendungen/Euphoria/demo> cd ~/Programme//Anwendungen/Euphoria/bin 
rabe@linux:~/Programme/Anwendungen/Euphoria/bin> ./eui allsorts.ex 
Can't open allsorts.ex 
rabe@linux:~/Programme/Anwendungen/Euphoria/bin>  
As you see,I allways have to enter the dir of the eui/ed,or nothing works.
Of course,I made the files executable.
Hmmm,what's it,I don't get?Is the addition in the profile in a wrong place,has it to be stored also in another config,wrong syntax,or what ?

Hope,someone can help here...

Greetings !

linuxer007

Just saw,editor can't display the "tilde"?!

creole needs double tilde sometimes, the tilde is escape next char.

you don't need all those includes, just eu4/include and your personal include. extra includes can cause multiple resolution errors. look at some source, you see include std/whatever.e is the norm,

[all]   
-i ~/Programme/Anwendungen/Euphoria/include  
-i ~/Projekte/Euphoria 

it's ~/eu.cfg not ~/.eu.cfg and you can also include a cfg file with the executable if you have more than one euphoria installed. although, I think eu4.0.0 may have had a bug, since fixed, with multiple -eudir lines in multiple cfg files.

you only need PATH set in your profile, eu4 can work fine without EUDIR and EUINC but that would not cause problems. you should only need to logoff/logon not reboot for changes in .profile.

if *.ex start off with #!/usr/bin/env eui then they can execute, otherwise they will need to run something like

eui prog.ex 
or even   
eui prog 
you can also bind or translate programs first.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Euphoria-Linux issue

Hello ne1uno !

Eureka!Both,eui and ed,working!
Just used the short eu.cfg,named the dot away,logged off and on,
but had to make the *.ex executable again and go into the
demo-dir,to start any of the programs.
Is there no way,to start eui/ed from where-ever,without whole the
path ?
Anyway,now I can concentrate me on producing really edifying errors!
Thanks !

Greetings !

linuxer007

new topic     » goto parent     » topic index » view message » categorize

10. Re: Euphoria-Linux issue

ne1uno said...

it's ~/eu.cfg not ~/.eu.cfg

Actually, ~/.eu.cfg is correct.

ne1uno said...

and you can also include a cfg file with the executable if you have more than one euphoria installed. although, I think eu4.0.0 may have had a bug, since fixed, with multiple -eudir lines in multiple cfg files.

Yes, there were some issues with this, which have been fixed for 4.0.1 (due out...um, now...coming soon, really smile).

Matt

new topic     » goto parent     » topic index » view message » categorize

11. Re: Euphoria-Linux issue

Hi

Could you write a step by step howto to add to the wiki for future ref for this set of circumstances?

Chris

new topic     » goto parent     » topic index » view message » categorize

12. Re: Euphoria-Linux issue

I know that the deb file puts the binaries and includes into the correct places so that you don't have to update your path. /usr/local/bin and /usr/local/lib, with docs and demos in /usr/share/euphoria. I think - I can't verify it right now someone correct me if I'm wrong.

Maybe the plain .tar.gz file can install a pre-compiled euphoria in the "correct" places by doing a "make install"? With the option of changing prefix via configure?

But yes, instructions for both local (user's own directory) and whole machine installation (/usr/local/bin) for *nix-like OSes should be in the Wiki at the least.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu