On Sun, Sep 14, 2003 at 10:42:47AM +1000, mick wrote:

> I'm trying ti install Xine under Redhat 9.0.  I downloaded a Tar file
> and unzipped it to my home directory.
> 
> I typed the ./configure command as instructed in the readme and the
> process ends with 
> 
> gcc .... no
> cc .....no

You need to install these packages:

    gcc
    glibc-devel
    binutils

and possibly:

    gcc-c++
    glibc-kernheaders

and any dependencies they need.  Everything you need will be on your
RH9.0 CDs.  If it's installed, it should be in your path.

> suppose I should learn how to put things in a users "Path" (whatever

It's the environment variable PATH which is used to search for
programs, similar to DOS/Windows except that under Unix, *only* the
directories in $PATH are searched - DOS/Windows searches the current
directory too. It's a list of directories separated by colons, e.g.:

    [EMAIL PROTECTED] ~]$ echo $PATH
    /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/johnc/bin:/usr/bin

When you enter a program name, and don't provide a path (either
relative or absolute), each directory in $PATH is tried, in order from
left to right, and the first one found is run.  For example, I have two
copies of a program called "mev" - one in /usr/bin and one in
/usr/local/bin.  Each reports a different version number:

    [EMAIL PROTECTED] ~]$ /usr/bin/mev -v
    (gpm-Linux) 1.19.3, $Date: 2000/01/17 22:23:03 $

    [EMAIL PROTECTED] ~]$ /usr/local/bin/mev -v
    (gpm-Linux (imwheel)) 1.19.3, $Date: 2000/01/17 22:23:03 $

If I run mev without giving the path, the first one found in $PATH is
run:

    [EMAIL PROTECTED] ~]$ mev
    (gpm-Linux (imwheel)) 1.19.3, $Date: 2000/01/17 22:23:03 $
    
There's a command called "which" that will tell you where in $PATH a
program is:

    [EMAIL PROTECTED] ~]$ which mev
    /usr/local/bin/mev

If the program doesn't exist, this is what is says:

    [EMAIL PROTECTED] ~]$ which xxx
    /usr/bin/which: no xxx in (/usr/local/bin:/bin:/usr/bin:
                               /usr/X11R6/bin:/home/johnc/bin:
                               /usr/bin)

To add a new directory into $PATH:

    PATH=$PATH:/new/directory
    export PATH

or:

    PATH=/new/directory:$PATH
    export PATH

depending upon whether you want it to be searched first or last.


Cheers,

John
-- 
whois [EMAIL PROTECTED]
GPG key id: 0xD59C360F
http://kirriwa.net/john/
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to