1. I must be stupid (Linux Question)

For some reason Euphoria won't run on my Linux machine (RedHat 6.1)
When I type exu in a terminal window I get:
command not found
when I type "bash exu" in despiration I get:
cannot execute binary file.

It's the same with every other executable I've added to the system since =
I set
it up... compiled or copied...

Thanks for any help,
-Humberto

____________________________________________________________________
Get your own FREE, personal Netscape WebMail account today at http://webm=
ail.netscape.com.

new topic     » topic index » view message » categorize

2. Re: I must be stupid (Linux Question)

Date sent:              Sun, 5 Mar 2000 21:58:57 PST
From:                   Humberto Yeverino <hyeverinojr at NETSCAPE.NET>
Subject:                I must be stupid (Linux Question)

> For some reason Euphoria won't run on my Linux machine (RedHat 6.1)
> When I type exu in a terminal window I get:
> command not found
> when I type "bash exu" in despiration I get:
> cannot execute binary file.
>
> It's the same with every other executable I've added to the system since I set
> it up... compiled or copied...

The question is how you executed it.
Try this :
        change to the directory containing exu
        e.g. $ cd /usr/euphoria/bin
        execute exu in the current directory
        e.g. $ ./exu
With DOS when you enter the name of an executable, it first looks in the current
directory,
then it searches the PATH variable.

Linux only searches the PATH variable.
Edit your /etc/profile file.
        e.g. $ jed /etc/profile
This file contains all your basic configuration data.
Add ./ to the start of the PATH variable
        e.g. PATH=./:/rest/bin/
        ( If there is no PATH add
                PATH=./
                export PATH
        )
If you install euphoria you will probablely wish to add it to your path
        e.g. PATH=./:/rest/bin/:/usr/euphoria/bin/
        if you place it in /usr/euphoria

-------------------------
Sincerely,
Mathew Hounsell

mat.hounsell at excite.com

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

3. Re: I must be stupid (Linux Question)

>Linux only searches the PATH variable.
>Edit your /etc/profile file.
>        e.g. $ jed /etc/profile
>This file contains all your basic configuration data.
>Add ./ to the start of the PATH variable
>        e.g. PATH=3D./:/rest/bin/
>        ( If there is no PATH add
>                PATH=3D./
>                export PATH
>        )
>If you install euphoria you will probablely wish to add it to your path
>        e.g. PATH=3D./:/rest/bin/:/usr/euphoria/bin/
>        if you place it in /usr/euphoria
>
>-------------------------
>Sincerely,
>Mathew Hounsell

If you are the only user that ever touches your Linux box, and you use a =
temporary dial-up internet connection, adding ./ to your path may be okay; =
otherwise, many Linux distributors consider it a security hole.  The best =
choice is to add the euphoria directory to the path, and move your other =
executables to the /usr/bin directory (which is already in the path).  One =
cool feature of *nix O/Ss is that you can add=20

#!/usr/bin/euphoria/exu=20

as the first line in your program (*.exu for our use), and set the rights =
with=20

chmod 755 myprog.exu

Then, you can just type ./myprog.exu if it's in your home directory, or =
move myprog.exu to /usr/bin and run it from anywhere.

Hope this helps a little more.

Michael J. Sabal
mjs at osa.att.ne.jp=20

BTW: The #!/shellname  feature is often called "hash-bang".

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

Search



Quick Links

User menu

Not signed in.

Misc Menu