1. Re: linux---CAN ANYONE HELP???

To see your actual path, type <set>  (without arguments) it will display
all your variables.
<ls -al >  will show your hidden files. if you don't have a .bash_profile,
you can simply copy it:
cp /etc/profile ./bash_profile
Then edit the file and add the lines:
export EUDIR="/...yourpath.../euphoria"
PATH="/...yourpath.../euphoria/bin:."
and don't forget to
export PATH
after setting it.
to make it active, you can logout and login again, or source it:
. .bash_profile

Some points:
Note that if you log in as root, the current directory is NOT in the path.
to run a program, you must give the entire or relative path:
./myprog

linux is CASE SENSITIVE !! usually caps are used for environment
variables.

if your shell is not bash, it won't source your bash_profile... copy it
to .profile and .ksh_profile .

if your shell is csh, then the syntax is different:
add the lines
set path=(. /bin /usr/bin /usr/euphoria/bin .......  )
setenv EUDIR /usr/euphoria
in the  .cshrc file.
To get it active,
<source .cshrc> instead of <.  .profile>
setenv shows the environment variables
set  shows normal variables

problems with vi ? Escape to get out of editing. If your Escape key doesn't
work, i think you can try Ctl<[> .  <shift>ZZ to save and quit, or :wq if
you
prefer...    :q! to quit without saving, i for insert, x deletes one char,
dd one
line... cw changes one word (till you push Escape); R for overwriting;
o to create a new line... lot of fun.

Good luck! and dont hesitate...

Riwal Raude
rauder at thmulti.com



> -----Original Message-----
> From: MB King [SMTP:boot_me at GEOCITIES.COM]
> Sent: Tuesday, July 06, 1999 12:53 AM
> To:   EUPHORIA at LISTSERV.MUOHIO.EDU
> Subject:      Re: linux---CAN ANYONE HELP???
>
> Here is my original message at the bottom...
> I have x windows working basically, and linux loads...etc.
> but I can't figure out how to execute exu or even ed under exu.
> how do I change the profile of my system so that it has the paths in it?
>
>
> my profile looks kind of like this (file is named PROFILE and is in the
> ETC
> folder)
>
> # /etc/profile: This file contains system-wide defaults used by
> # all Bourne (and related) shells.
>
> # Set the values for some environment variables:
> export OPENWINHOME=/usr/openwin
> export MINICOM="-c on"
> export
> MANPATH=/usr/local/man:/usr/man/preformat:/usr/man:/usr/X11R6/man:/usr/ope
> nw
> in/man
> export HOSTNAME="`cat /etc/HOSTNAME`"
> export LESSOPEN="|lesspipe.sh %s"
> export LESS="-M"
> export MOZILLA_HOME=/usr/lib/netscape
>
> # Set the default system $PATH:
> PATH="$PATH:/usr/X11R6/bin:$OPENWINHOME/bin:/usr/games"
>
> # For non-root users, add the current directory to the search path:
> if [ ! $UID = 0 ]; then
>  PATH="$PATH:."
> fi
>
> I am not sure how to add this too it though.  I found no local copy of a
> bash_profile.
>
> you need to:
>
>     1. add euphoria/bin to your PATH
>
>     2. create an environment variable: EUDIR
>
>
> What am I doing wrong?
>
>
>
>
>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: MB King <boot_me at GEOCITIES.COM>
> To: EUPHORIA at LISTSERV.MUOHIO.EDU <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Date: Monday, July 05, 1999 11:03 AM
> Subject: linux
>
>
> >Hi all,
> >     I have been trying for 2 weeks (on weekends) to get a running copy
> of
> >slackware running, because I don't want to have to buy another copy of
> linux
> >( I have an old slackware disk)...anyway...I downloaded Zip Slack wich is
> >designed specifically to fit in less than 100 megs of space, and has a
> bunch
> >of stuff in it for Iomega devices.
> >     I have it running, but can't seem to get it to recognize exu as an
> >executable file, even though the executable bits on the file itself are
> set.
> >I looked for that ".bash_profile" file in my home directory, and do not
> find
> >it, although ".bash_history" is there.
> >    I do know that there is a way of viewing your paths that are set in
> >Linux, is there also a way to set them?
> >     I have tried to run the file a number of ways, including:
> >
> >just typing exu
> >running it from midnight commander
> >typing the full path
> >/home/monty1/euphoria/bin/exu ed.ex
> >
> >what do I have to do?  This Linux is 4.0
> >
> >Any help is appreciated.
> >Thanks
> >Monty in Oregon

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu