1. Installing Euphoria on Linux, Part 2

OK, part 2!
Now, reading from HTML/install.htm :
********************************************************
How to Install Euphoria on Linux or FreeBSD 

 
Now that you've run: tar -xvz -f euphor24.tar to create the Euphoria
subdirectories, you need to: 
add euphoria/bin to your PATH 

create an environment variable called EUDIR 

To view the hidden files in your home directory, type:
 ls -a
 One or more of these files is executed when you log in. For instance,
if you have a hidden profile file such as .bash_profile, you should
search for the line:
 PATH=... 
 and add euphoria/bin to it. 


For example, a user called rob might do the following:
 PATH=/home/rob/euphoria/bin:$PATH
 


You must also add a line for the variable EUDIR such as:
 EUDIR=/home/rob/euphoria
 And remember to export these variables:
 export PATH EUDIR

euphoria/bin doesn't have to be first on your PATH, but if it isn't
you'll have to rename the ed shell script in euphoria/bin, and perhaps a
few others. 


Alternatively, system administrators can put EUDIR and the PATH change
into a global file, such as /etc/profile, so many users will be able to
access the Euphoria interpreter. 
******************************************************************
OK, lets play "what did I do wrong?"!
I opened a bash shell (as my log in, Urz) and typed
PATH="/mnt/win_d/Lineuphoria/include/":$PATH
PATH="/mnt/win_d/Lineuphoria/":$PATH
EUDIR="/mnt/win_d/Lineuphoria/bin/"
export PATH
export EUDIR

I then closed the shell, and attemped to open on of the GTK examples, (I
have the GTK wrapper) and yet I get the cannot find include error.

I personally, am in two minds as to what is going on here. first, is the
following web-sites, which show peoples inability to make changes to
.bash_profile stick : 
http://www.vmlinuz.ca/archives/elug/2002-10/msg00034.html
http://lists.debian.org/debian-user/1999/debian-user-199909/msg01763.html
http://www.linuxquestions.org/questions/archive/1/2003/07/3/72603

secondly, I suspect that I am doing something wrong, because in what I
typed, it never actually meantioned .bash_profile at all...

Help?

PS: I really appreciate your speedy replies last time, and hopefully I
can have this one fixed just as fast as the last one.

new topic     » topic index » view message » categorize

2. Re: Installing Euphoria on Linux, Part 2

On 06 Oct 2003 18:02:19 +1000, Urzumph <Urzumph at HotPOP.com> wrote:

>OK, lets play "what did I do wrong?"!
>I opened a bash shell (as my log in, Urz) and typed
>PATH=3D"/mnt/win_d/Lineuphoria/include/":$PATH
>PATH=3D"/mnt/win_d/Lineuphoria/":$PATH
>EUDIR=3D"/mnt/win_d/Lineuphoria/bin/"
>export PATH
>export EUDIR
>
>I then closed the shell, and attemped to open on of the GTK examples, (I
>have the GTK wrapper) and yet I get the cannot find include error.
This is the same as doing the following ***on Windows***:
open an MS_DOS prompt and type:
>set FRED=3Dthing
>set
>exit
You'll see from the second line that FRED was indeed set, but after
the exit, it's gone, forever. Open a new dos window to check this.

The exact same thing is happening on Linux, only with different file
names. On Windows, you'd edit your autoexec.bat file to make the
change permanent (or use a GUI admin tool on later versions); on linux
the file happens to be called .profile or similar. (There is almost
certainly a GUI admin program on your system, but I don't know what it
is called.)

When you edit that file (after making a backup copy!), be sure to run
source .bash_profile to check for errors before rebooting. You can
actually try running exu immediately after source .bash_profile to
speed things up a bit.

If you still have problems, run ls -al and post the list of all files
that start with a dot.

Pete

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

3. Re: Installing Euphoria on Linux, Part 2

oki so there i can help smile

i'll try to explain the install process in my limited subset of english 
words blink


>add euphoria/bin to your PATH

It's the sames as dos path and the autoexec.bat is named .profile (it's for 
all the users, only root can change that and it's in /etc)  or  
.bash_profile (it's in your home directory and you can edit it)

2->create an environment variable called EUDIR
use by euphoria to know where his start directory is
>To view the hidden files in your home directory, type:
>  ls -a

sames as typing DIR -ah  cause all files who start with a . like 
.bash_profile are hiden witout the -a


>OK, lets play "what did I do wrong?"!
>I opened a bash shell (as my log in, Urz) and typed
>PATH="/mnt/win_d/Lineuphoria/include/":$PATH
SHOULD BE  PATH=/mnt/win_d/Lineuphoria/bin:$PATH

>PATH="/mnt/win_d/Lineuphoria/":$PATH
SHOULD BE  PATH=/mnt/win_d/Lineuphoria:$PATH

>EUDIR="/mnt/win_d/Lineuphoria/bin/"
SHOULD BE EUDIR=/mnt/win_d/Lineuphoria
>export PATH
>export EUDIR
GOOD GOOD GOOD blink

ok so what you have try to do is to change the environement in typing 
commands in the shell which will work but if you can't changes or don't want 
to change your bash profile you can do a little bash script that you can run 
before starting euphoria after you login. so you can use pico, joe or vi 
editor to write the script. so start by typing something like joe 
/mnt/win_d/Lineuphoria/euphoriaenvir.sh
after you'll enter the script

#!/bin/sh
PATH=/mnt/win_d/Lineuphoria/bin:$PATH
PATH=/mnt/win_d/Lineuphoria:$PATH
EUDIR=/mnt/win_d/Lineuphoria
export PATH
export EUDIR

save it and change is permission so it can be execute with chmod
chmod 755 /mnt/win_d/Lineuphoria/euphoriaenvir.sh

and you'r done smile
and i'm done blink
hope all will work and have a great Day.

Yvon

>I then closed the shell, and attemped to open on of the GTK examples, (I
>have the GTK wrapper) and yet I get the cannot find include error.
>
>I personally, am in two minds as to what is going on here. first, is the
>following web-sites, which show peoples inability to make changes to
>.bash_profile stick :
>http://www.vmlinuz.ca/archives/elug/2002-10/msg00034.html
>http://lists.debian.org/debian-user/1999/debian-user-199909/msg01763.html
>http://www.linuxquestions.org/questions/archive/1/2003/07/3/72603
>
>secondly, I suspect that I am doing something wrong, because in what I
>typed, it never actually meantioned .bash_profile at all...
>
>Help?
>
>PS: I really appreciate your speedy replies last time, and hopefully I
>can have this one fixed just as fast as the last one.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu