Intro  Base  More  Read  Use  Last 30  60  90  All Articles  RSS


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: which-2.20   Print


Base Nav: first previous next last All Tab 2 spacerspacer
Source code is available here.

Run these commands:

cd /sources &&
rm -rf which-2.20 &&
tar -xzf which-2.20.tar.gz &&
cd which-2.20 &&
./configure --prefix=/usr  &&
make &&
make install &&
cd /sources &&
rm -rf which-2.20

The output should look something like this:

checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... pch
checking for a BSD-compatible install... /bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e...
/bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for xmalloc in libiberty.a... /lib/libiberty.a
checking for ANSI C header files... (cached) yes
checking for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking libiberty.h usability... yes
checking libiberty.h presence... yes
checking for libiberty.h... yes
checking whether stat file-mode macros are broken... no
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for strchr... yes
checking for memcpy... yes
checking for getopt_long... yes
checking for getcwd... yes
.
.
.
make[2]: Entering directory `/sources/which-2.20/tilde'
source='tilde.c' object='tilde.o' libtool=no \
DEPDIR=.deps depmode=pch /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I..	 -g -O2 -c tilde.c
source='shell.c' object='shell.o' libtool=no \
DEPDIR=.deps depmode=pch /bin/sh ../depcomp \
gcc -DHAVE_CONFIG_H -I. -I..	 -g -O2 -c shell.c
rm -f libtilde.a
ar cru libtilde.a tilde.o shell.o 
ranlib libtilde.a
make[2]: Leaving directory `/sources/which-2.20/tilde'
Making all in .
make[2]: Entering directory `/sources/which-2.20'
source='getopt.c' object='getopt.o' libtool=no \
DEPDIR=.deps depmode=pch /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I.     -g -O2 -c getopt.c
source='getopt1.c' object='getopt1.o' libtool=no \
DEPDIR=.deps depmode=pch /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I.     -g -O2 -c getopt1.c
source='bash.c' object='bash.o' libtool=no \
DEPDIR=.deps depmode=pch /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I.     -g -O2 -c bash.c
source='which.c' object='which.o' libtool=no \
DEPDIR=.deps depmode=pch /bin/sh ./depcomp \
gcc -DHAVE_CONFIG_H -I.     -g -O2 -c which.c
gcc  -g -O2   -o which getopt.o getopt1.o bash.o which.o
./tilde/libtilde.a /lib/libiberty.a 
make[2]: Leaving directory `/sources/which-2.20'
make[1]: Leaving directory `/sources/which-2.20'
make  install-recursive
make[1]: Entering directory `/sources/which-2.20'
Making install in tilde
make[2]: Entering directory `/sources/which-2.20/tilde'
make[3]: Entering directory `/sources/which-2.20/tilde'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/sources/which-2.20/tilde'
make[2]: Leaving directory `/sources/which-2.20/tilde'
Making install in .
make[2]: Entering directory `/sources/which-2.20'
make[3]: Entering directory `/sources/which-2.20'
test -z ""/usr/bin"" || /bin/mkdir -p ""/usr/bin""
  /bin/install -c 'which' '/usr/bin/which'
test -z ""/usr/share/info"" || /bin/mkdir -p
""/usr/share/info""
 /bin/install -c -m 644 './which.info'
'/usr/share/info/which.info'
 install-info --info-dir='/usr/share/info'
'/usr/share/info/which.info'
test -z ""/usr/share/man/man1"" || /bin/mkdir -p
""/usr/share/man/man1""
 /bin/install -c -m 644 './which.1'
'/usr/share/man/man1/which.1'
make[3]: Leaving directory `/sources/which-2.20'
make[2]: Leaving directory `/sources/which-2.20'
make[1]: Leaving directory `/sources/which-2.20'


~~~
Please read our Terms of Use and our Privacy Policy
A tip o' the hat to the folks at Linux From Scratch, who provided a lot of the know-how and framing for the NoNIC OS.

Copyright 2006-2009 NoNIC.org

Created by:
MCJ
MCJ CMS