02-15-2005
Make sure /usr/local/bin is in your PATH when executing the script
# echo $PATH
If it isn't then the script won't find gcc. Add it to your path.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I tryed to install SCO 5.0.6 OpenServer on P4 2.0 GHz 384 MB ram 40 GB HDD. It booted from the floppy disk, and when it comes to hd_config I got this error:
unexpected trap in kernel mode:
PANIC: K_trap - kernel mode trap 0x0000000E
** Safe to power off **
Please, what should I do? (1 Reply)
Discussion started by: Guest07
1 Replies
2. Linux
hi frnds
I had currently installed OTRS through rpm for Enterprise Linux 3 but its showing the following problems.
cmd : rpm -ivh otrs-1.2.4-1.1.el3.dag.noarch.rpm
warning: otrs-1.2.4-1.1.el3.dag.noarch.rpm: V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed... (0 Replies)
Discussion started by: naik_mit
0 Replies
3. Solaris
Hello,
For testing purpose, I need to install SOLARIS 2.6 on a machine SUN FIRE 880 which is installed with Solaris 2.8.
When I boot on the cdrom 2.6, the system answers :
boot : cannot open /kernel/unix
In the documentation, I saw that I need to reset the boot file value in the PROM. I did it... (1 Reply)
Discussion started by: aribault
1 Replies
4. Shell Programming and Scripting
Hi ,
I have installed a s/w for work tracking (work tracking fecilitator) in linix OS.
all my other perl programs are working fine. i have completed the backend part of it but unable to use this application .
Please guide me regarding this .
I have downloaded the source from... (4 Replies)
Discussion started by: alma
4 Replies
5. AIX
Dear Frnz,
I have a strange problem with nim installation.
I am able to push the image from Nim server to the client and the Os is reinstalled successfully.But after the installation the client doesnt hold any host name or ip address.That is the host name is assigned as local host and ip is... (2 Replies)
Discussion started by: sriram.s
2 Replies
6. UNIX for Dummies Questions & Answers
hihi, im new here.
just start to use cygwin as unix-based in Windows XP.
my installation of cygwin is not success, it has procedure entry_impure_ptr problem due with ash.exe, install_info.exe, and In-exe files.
do anyone know why is that so? (3 Replies)
Discussion started by: Suraine
3 Replies
7. AIX
Hi Guys,
I have a typical problem in installing HDLM software..
Command status says still running ...and at the bottom i see..KAPL09076-I The permanent license was installed.
It is not coming out/no errors..
Please help me (1 Reply)
Discussion started by: b_manu78
1 Replies
8. UNIX for Advanced & Expert Users
Hi,
I am trtying to install SVN server with Apache.
I have already configured apache with SVN modulesh and the same can be seen in the modules directory.
-rwxr-xr-x 1 root root 34740 Jul 3 13:43 mod_authz_svn.so
-rwxr-xr-x 1 root root 385133 Jul 3 13:43 mod_dav_svn.so
now the... (1 Reply)
Discussion started by: Siddheshk
1 Replies
9. UNIX and Linux Applications
We are using subversion as a version control system in our project. We are connecting to client`s sun Solaris box through check point VPN. Client has installed subversion .
We have created repository and add files to it. Now we want to access the same from our windows machine (through... (0 Replies)
Discussion started by: aasid
0 Replies
10. SuSE
I had installed svn on SLES 11 using comands:
zypper addrepo http://download.opensuse.org/repositories/devel:tools:scm:svn/SLE_11/devel:tools:scm:svn.repo
zypper refresh
zypper install subversion
But when I run svn it gives me error as:
linux-uw85:~/Desktop # svn help
svn: error while... (4 Replies)
Discussion started by: rupeshkp728
4 Replies
WHICH(1) General Commands Manual WHICH(1)
NAME
which - shows the full path of (shell) commands.
SYNOPSIS
which [options] [--] programname [...]
DESCRIPTION
Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been exe-
cuted when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories
listed in the environment variable PATH using the same algorithm as bash(1).
This man page is generated from the file which.texinfo.
OPTIONS
--all, -a
Print all matching executables in PATH, not just the first.
--read-alias, -i
Read aliases from stdin, reporting matching ones on stdout. This is useful in combination with using an alias for which itself. For
example
alias which='alias | which -i'.
--skip-alias
Ignore option `--read-alias', if any. This is useful to explicity search for normal binaries, while using the `--read-alias' option in
an alias or function for which.
--read-functions
Read shell function definitions from stdin, reporting matching ones on stdout. This is useful in combination with using a shell func-
tion for which itself. For example:
which() { declare -f | which --read-functions $@ }
export -f which
--skip-functions
Ignore option `--read-functions', if any. This is useful to explicity search for normal binaries, while using the `--read-functions'
option in an alias or function for which.
--skip-dot
Skip directories in PATH that start with a dot.
--skip-tilde
Skip directories in PATH that start with a tilde and executables which reside in the HOME directory.
--show-dot
If a directory in PATH starts with a dot and a matching executable was found for that path, then print "./programname" rather than the
full path.
--show-tilde
Output a tilde when a directory matches the HOME directory. This option is ignored when which is invoked as root.
--tty-only
Stop processing options on the right if not on tty.
--version,-v,-V
Print version information on standard output then exit successfully.
--help
Print usage information on standard output then exit successfully.
RETURN VALUE
Which returns the number of failed arguments, or -1 when no `programname' was given.
EXAMPLE
The recommended way to use this utility is by adding an alias (C shell) or shell function (Bourne shell) for which like the following:
[ba]sh:
which ()
{
(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot $@
}
export -f which
[t]csh:
alias which 'alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
This will print the readable ~/ and ./ when starting which from your prompt, while still printing the full path when used from a script:
> which q2
~/bin/q2
> echo `which q2`
/home/carlo/bin/q2
BUGS
The HOME directory is determined by looking for the HOME environment variable, which aborts when this variable doesn't exist. Which will
consider two equivalent directories to be different when one of them contains a path with a symbolic link.
AUTHOR
Carlo Wood <carlo@gnu.org>
SEE ALSO
bash(1)
WHICH(1)