1. Getting started on Linux - How to?

I've just got my second machine up and runnig with Debian linux - and I'm still
a newbie as far as KDE, etc goes!!

I've untar'd the Euphoria stuff into a folder in my Home directory (with all
subfolders, etc), I have my PATH and EUDIR showing correctly from a shell window
(after rebooting even) and I go into the Tutorials folder for Euphoria.
I type 'exu hello.e' (without quotes) and get the message "Can't open xterm"!!
Even though I'm in an XTerm window (as the Root user).

Can anyone give me, and as info for others, a step by step guide about how to
set up and test Euphoria under Linux?
  Basic install
  How to do file associations under KDE (woudl be nice!)
How to make a 'double-click' on a .exu file run correctly (as opposed to
    loading into an editor!)
  How to Bind and make 'double-clickable' executables

Something detailed would be a useful thing to have as a page on the
RapidEuphoria site, 'cos searching the forum doesn't yield much useful results.

I guess it was just too easy to do under Windows ;) and I was expecting a
similar approach under Linux.

BTW, I also have a second WinXP machine, so you can probably guess I'm going to
be doing some cross-platform development as soon as I can get Eu to work :)


. .. : :: = == == = :: : .. .
Server-Side DB driven web sites,
Software Development
(and part-time games developer)

contact dave_p at purpletiger dot com
or probert.dave at gmail dot com
. .. : :: = == == = :: : .. .

new topic     » topic index » view message » categorize

2. Re: Getting started on Linux - How to?

Dave Probert wrote:
> 
> I've just got my second machine up and runnig with Debian linux - and I'm
> still a newbie
> as far as KDE, etc goes!!

Good choice there. I'm on debian too.

> I've untar'd the Euphoria stuff into a folder in my Home directory (with all
> subfolders,
> etc), I have my PATH and EUDIR showing correctly from a shell window (after
> rebooting
> even) and I go into the Tutorials folder for Euphoria.
> I type 'exu hello.e' (without quotes) and get the message "Can't open xterm"!!
> Even though I'm in an XTerm window (as the Root user).

Do export TERM=ansi (and put that wherever you put the export EUDIR=...).
That should fix it.

> Can anyone give me, and as info for others, a step by step guide about how to
> set up
> and test Euphoria under Linux?
>   Basic install
>   How to do file associations under KDE (woudl be nice!)
>     How to make a 'double-click' on a .exu file run correctly (as opposed to
>     loading
> into an editor!)

Unfortunately, I dunno completetly about kde... you'll have to check the docs on
how to set environment variables -- those that are shown in an xterm and are used
when just running a program outside of an xterm are not the same.

>   How to Bind and make 'double-clickable' executables

Should not be much different from how to do it in windows...

> Something detailed would be a useful thing to have as a page on the
> RapidEuphoria site,
> 'cos searching the forum doesn't yield much useful results.
> 
> I guess it was just too easy to do under Windows ;) and I was expecting a
> similar approach
> under Linux.
> 
> BTW, I also have a second WinXP machine, so you can probably guess I'm going
> to be
> doing some cross-platform development as soon as I can get Eu to work :)
> 
> 
> . .. : :: = == == = :: : .. .
> Server-Side DB driven web sites,
> Software Development
> (and part-time games developer)
> 
> contact dave_p at purpletiger dot com
> or probert.dave at gmail dot com
> . .. : :: = == == = :: : .. .
> 
Regards, Alexander Toresson

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

3. Re: Getting started on Linux - How to?

Thanks Alexander, 

Adding the TERM=ansi, then EXPORTing it along with EUDIR, etc works fine.

Now I just have to figure out how to be able to double-click an .exu file from
the Konqueror thingy to make it run with exu!!

Now I can start to play properly though :)

Thanks again.

Dave

. .. : :: = == == = :: : .. .
Server-Side DB driven web sites,
Software Development
(and part-time games developer)

contact dave_p at purpletiger dot com
or probert.dave at gmail dot com
. .. : :: = == == = :: : .. .

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

4. Re: Getting started on Linux - How to?

Hi

When developing, always run from a terminal, if you straight from an associated
double click, your program may do nothing, and you won't know why.

You can set associations, just like windows, but I'm not at a linux box at the
moment, and I can't remember the exact procedure.

What I tend to do, is create a new application on the desktop (right click
on the desktop), set all the bits and pieces, and off it goes. I have the
option of getting it to run in a terminal from here too.

Put 

TERM=ansi
export $TERM 

in .profile (its in your home directory), and also try TERM=linux (don't
know why xterm doesn't work on yours, works fine on mine, but then I use
SuSE 9.1, which as everyone knows is far superior to any other distribution
out there smile

Note - midnight commander is your friend. mc

Chris

http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/

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

5. Re: Getting started on Linux - How to?

> Now I just have to figure out how to be able to double-click an .exu file=
 from the Konqueror thingy to make it run with exu!!

Why not make your source file executable ("chmod +x myfile.exu") and
add the path of the interpreter to the first line of the source?

#!/home/greg/euphoria/bin/exu

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

6. Re: Getting started on Linux - How to?

Hi Guys,

You're all fantastic - this is exactly the sort of info needed for the beginner
:)

Chris - When I double-click nothing happens - same as you describe :)
      Did the TERM stuff (when alexander mentioned it) and that got me started.
      (SuSE is probably the best Lager in the World ;) )
Greg - Excellent advice - and very clear :)

Cheers,
Dave

. .. : :: = == == = :: : .. .
Server-Side DB driven web sites,
Software Development
(and part-time games developer)

contact dave_p at purpletiger dot com
or probert.dave at gmail dot com
. .. : :: = == == = :: : .. .

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

7. Re: Getting started on Linux - How to?

Dave Probert wrote:
> 
> Hi Guys,
> 
> You're all fantastic - this is exactly the sort of info needed for the
> beginner :)
> 
> Chris - When I double-click nothing happens - same as you describe :)
>       Did the TERM stuff (when alexander mentioned it) and that got me
>       started.
>       (SuSE is probably the best Lager in the World ;) )

lol

> Greg - Excellent advice - and very clear :)
> 
> Cheers,
> Dave
> 
> . .. : :: = == == = :: : .. .
> Server-Side DB driven web sites,
> Software Development
> (and part-time games developer)
> 
> contact dave_p at purpletiger dot com
> or probert.dave at gmail dot com
> . .. : :: = == == = :: : .. .
> 

To associate a file with KDE

Konqueror -> select your exu -> right click -> open with -> 
other (find exu) -> check always open this type of file with this program

If you use Gnome, I've no idea.

http://members.aol.com/chriscrylex/euphoria.htm
http://uboard.proboards32.com/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu