1. Can't install compile Euphoria-4.0a!

Hi

I just downloaded euphoria-4.0a3.tar.gz
This is the output from exu

exu: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.7' not found (required by exu) 
exu: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found (required by exu) 
 
Trying to configure compile also fail 
 
sh ./configure 
./configure: line 8: syntax error near unexpected token `elif' 
./configure: line 8: `elif echo "$UNAME_SYSTEM" | grep MINGW; then 

The system is Debian 4.0
How do i solve this.
~tj

new topic     » topic index » view message » categorize

2. Re: Can't install compile Euphoria-4.0a!

Can you try to use bash ./configure and see if that allows configure to run?

Also, can you try a eubin binary? http://jeremy.cowgar.com/eubins/linux

I think for binaries on Linux, we are going to have to build for distribution, not one generic Linux binary getlost I know others do it, but I am not sure how. For instance, if you download Adobe AcroReader. Does anyone have an idea on how to create a binary on Linux that works anywhere on Linux?

Jeremy

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

3. Re: Can't install compile Euphoria-4.0a!

jeremy said...

Can you try to use bash ./configure and see if that allows configure to run?
No luck

Also, can you try a eubin binary? http://jeremy.cowgar.com/eubins/linux

eu40-1537 works!
Thank you. ~tj

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

4. Re: Can't install compile Euphoria-4.0a!

Where eubins is compiled is a Debian box. The download on SF.net was created on a Ubuntu box. So, it's clear we need to do something to make a more cross-distribution friendly download, if possible. The final versions are going to be distributed with pre-translated source, so you can compile w/o having Euphoria installed, but I still wonder about different Linux distributions.

May be there is no real way to do it and we must develop packages for each of the 5 billion linux distributions, starting with the top 5 of course grin

Jeremy

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

5. Re: Can't install compile Euphoria-4.0a!

said...

sh ./configure ./configure: line 8: syntax error near unexpected token `elif' ./configure: line 8: `elif echo "$UNAME_SYSTEM" | grep MINGW; then

Jeremy:
The above says unexpected token `ELIF'
Should that be unexpected token `ELSIF' ??

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

6. Re: Can't install compile Euphoria-4.0a!

bernie said...
said...

sh ./configure ./configure: line 8: syntax error near unexpected token `elif' ./configure: line 8: `elif echo "$UNAME_SYSTEM" | grep MINGW; then

Jeremy:

The above says unexpected token `ELIF'
Should that be unexpected token `ELSIF' ??

Bash is strange, a valid if statement in Bash is like

RESULT=1 
if [ "$RESULT" -eq "0" ]; then 
    echo Zero 
elif [ "$RESULT" -eq "1" ]; then 
    echo One 
fi 

Notice especially the "end if" is "fi"... Not sure who decided on that one smile The configure script works fine on Ubuntu, ArchLinux, Debian and OS X. I have not tested on others.

Thomas, what Distribution are you on and what does sh version say? You should be able to just run ./configure no need for sh ./configure or anything.

Jeremy

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

7. Re: Can't install compile Euphoria-4.0a!

jeremy said...

Thomas, what Distribution are you on and what does sh version say? You should be able to just run ./configure no need for sh ./configure or anything.

I'v just rented a vps box somwhere one the wild web. 
 
./configure only says /bin/sh^M unknown command 
 
Debin 4.0 / Confixx 3.3.3 Bundle  
GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu) 
Copyright (C) 2005 Free Software Foundation, Inc. 
 
That's about everything i know about *knix 

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

8. Re: Can't install compile Euphoria-4.0a!

Thomas said...
jeremy said...

Thomas, what Distribution are you on and what does sh version say? You should be able to just run ./configure no need for sh ./configure or anything.

I'v just rented a vps box somwhere one the wild web.

./configure only says /bin/sh^M unknown command 

Oh! That answers it all. Hm. configure is somehow terminated with CRLF not just LF. Unix will not handle that at all. Was this from a downloaded .zip file, .tar.gz or copied from another source?

I think maybe instead of setting the line endings as Native on all files as was recently decided upon, we should mandate LF on some files such as configure and other files that are strictly Unix related.

I am still curious where you got the configure from, to see if it was a problem in the distribution or some other difficulty. To fix your immediate problem, you can run dos2unix configure, if your unix box has that, and it should fix the problem.

Jeremy

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

9. Re: Can't install compile Euphoria-4.0a!

jeremy said...

Where eubins is compiled is a Debian box. The download on SF.net was created on a Ubuntu box. So, it's clear we need to do something to make a more cross-distribution friendly download, if possible. The final versions are going to be distributed with pre-translated source, so you can compile w/o having Euphoria installed, but I still wonder about different Linux distributions.

May be there is no real way to do it and we must develop packages for each of the 5 billion linux distributions, starting with the top 5 of course grin

Jeremy

Remember that all modern distros and kernels are backwards compatible iwth binaries built on earlier versions, but the reverse is not true. We do not have forward compatibility. Binaries built on/for future kernels, distros, or libcs do not necessarily work on older versions.

Therefore, one solution is to get Debian Potato - 2.2 linux kernel with glibc 2.0 - and build the linux eubins there. The resulting binaries should then run on any later kernel/distro/version of glibc. The lowest common demoninator.

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

10. Re: Can't install compile Euphoria-4.0a!

jimcbrown said...

Remember that all modern distros and kernels are backwards compatible iwth binaries built on earlier versions, but the reverse is not true. We do not have forward compatibility. Binaries built on/for future kernels, distros, or libcs do not necessarily work on older versions.

Therefore, one solution is to get Debian Potato - 2.2 linux kernel with glibc 2.0 - and build the linux eubins there. The resulting binaries should then run on any later kernel/distro/version of glibc. The lowest common demoninator.

Ok, great. That is what I will do starting with beta 1.

Jeremy

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

11. Re: Can't install compile Euphoria-4.0a!

jeremy said...

I am still curious where you got the configure from, to see if it was a problem in the distribution or some other difficulty. To fix your immediate problem, you can run dos2unix configure, if your unix box has that, and it should fix the problem.

Jeremy

{{{ A little candle light up just after i pressed the send button. And no there is no dos2unix or svn om the vps. just zipped the source from my xp repo. After converting to unix with Crimson and sftp it work as expected. }} ~tj

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

Search



Quick Links

User menu

Not signed in.

Misc Menu