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


Intro

Base

More

Read

Use

Last:
30


60

90

All
Days

Base: patch-2.5.4   Print


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

Run these commands:

cd /sources/  &&
rm -rf patch-2.5.4 &&
tar -xjf patch-2.5.4.tar.bz2 &&
cd patch-2.5.4 &&
CPPFLAGS=-D_GNU_SOURCE ./configure --prefix=/usr &&
make &&
make install

The output should look something like this:

creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for a BSD compatible install... /bin/install -c
checking whether make sets ${MAKE}... yes
checking for ed... /bin/ed
checking build system type... i686-pc-linux-gnu
checking for getconf... getconf
checking for CFLAGS value to request large file support... no
checking for LDFLAGS value to request large file support... no
checking for LIBS value to request large file support... no
checking for _FILE_OFFSET_BITS... no
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for AIX... no
checking for minix/config.h... no
checking for POSIXized ISC... no
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
.
.
.
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I. -g -O2 util.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I. -g -O2 version.c
gcc -c -D_GNU_SOURCE -DHAVE_CONFIG_H -Ded_PROGRAM=\"/bin/ed\" -I. -I. -g -O2 xmalloc.c
gcc -o patch -g -O2  addext.o argmatch.o backupfile.o basename.o error.o inp.o maketime.o partime.o patch.o pch.o quotearg.o quotesys.o util.o version.o xmalloc.o  
patch.o(.text+0xb35): In function `make_temp':
/sources/patch-2.5.4/patch.c:1325: warning: the use of `mktemp' is dangerous, better use `mkstemp'
/bin/sh ./mkinstalldirs /usr/bin /usr/man/man1
/bin/install -c patch /usr/bin/`echo patch | sed 's,x,x,'`
/bin/install -c -m 644 ./patch.man /usr/man/man1/`echo patch | sed 's,x,x,'`.1



~~~
Please read our Terms of Use
The Mountain Climbing Journal filesystem has borrowed heavily from various pieces of Linux From Scratch.

Copyright 2006-2008 NoNIC.org

Created by:
MCJ
MCJ CMS