[Watford] Installiang Debian

Walter walter at helvatron.co.uk
Tue Apr 4 22:16:30 BST 2006


 Hi Matt,

Yep, that did the trick.  Output log is attached.  

I am getting quite imaginative with this stuff now.  I managed to adapt the
apt-get command and told it to install ftp which it duly did. I was then
able to upload the above file to one of my windows servers and subsequently
attach it to this email.

I am will try and install X next so I can use the gui email. That will have
to do till I understand the command line alternative.

Thanks and buonas noches, Walter

-----Original Message-----
From: watford-bounces at mailman.lug.org.uk
[mailto:watford-bounces at mailman.lug.org.uk] On Behalf Of Matt Marsh
Sent: 04 April 2006 21:22
To: watford at mailman.lug.org.uk
Subject: Re: [Watford] Installiang Debian

Walter,

> I have got to:
> 
> 	# make-kpkg kernel_image kernel_header
> 
> And that where I get a string of errors.  I tried to change the stdout 
> to a file by piping it:
> 
> 	make-kpkg kernel_image kernel_header > log.txt
> 
> Which works up to a point.  The script behind it must be calling other 
> scripts because the errors are not in the above file. Only aobut 2 
> lines appear but no errors.

When you do: command > log.txt, that takes output printed to, as you say,
stdout, and put's that into the log file. However, errors are often not
printed to stdout, instead they are usually printed to stderr and so you
have to do a bit of magic to ensure that both output to stdout and to stderr
go to your log file. The syntax for that is the following: command >log.txt
2>&1

That magic "2>&1" means "redirect anything going to file descriptor 2
(stderr) to the same place as file descriptor
1 (stdout), and hence because you've redirected stdout to log.txt, it will
now also get the output directed at stderr.

Hope that I've explained that well enough! So the command you'll want to use
is:

     # make-kpkg kernel_image kernel_header >log.txt 2>&1

I suspect that it will be complaining about you not having some tool that it
needs to build the kernel. If you post some of the output once you've
captured it then hopefully I can tell you which tool packages to install.

Matt

--
Matt N. Marsh
Email: matt at mattmarsh.net         GoogleTalk: marshmn at gmail.com
   Web: http://www.mattmarsh.net/       Yahoo: marshmn
                                       Jabber: mattmarsh at jabber.org
                                          MSN: matt at mattmarsh.net
                                          ICQ: 250467363
                                          AIM: MattMarshUK


_______________________________________________
Watford mailing list
Watford at mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/watford
-------------- next part --------------
/usr/bin/make    \
                                 ARCH=i386 oldconfig
make[1]: Entering directory `/usr/src/kernel-source-2.6.8'
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c:97:23: sys/types.h: No such file or directory
scripts/basic/fixdep.c:98:22: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:99:22: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:100:20: unistd.h: No such file or directory
scripts/basic/fixdep.c:101:19: fcntl.h: No such file or directory
scripts/basic/fixdep.c:102:20: string.h: No such file or directory
scripts/basic/fixdep.c:103:20: stdlib.h: No such file or directory
scripts/basic/fixdep.c:104:19: stdio.h: No such file or directory
In file included from /usr/lib/gcc-lib/i486-linux/3.3.5/include/syslimits.h:7,
                 from /usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:11,
                 from scripts/basic/fixdep.c:105:
/usr/lib/gcc-lib/i486-linux/3.3.5/include/limits.h:122:75: limits.h: No such file or directory
scripts/basic/fixdep.c:106:19: ctype.h: No such file or directory
scripts/basic/fixdep.c:107:24: netinet/in.h: No such file or directory
scripts/basic/fixdep.c: In function `usage':
scripts/basic/fixdep.c:121: warning: implicit declaration of function `fprintf'
scripts/basic/fixdep.c:121: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:121: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:121: error: for each function it appears in.)
scripts/basic/fixdep.c:122: warning: implicit declaration of function `exit'
scripts/basic/fixdep.c: In function `print_cmdline':
scripts/basic/fixdep.c:127: warning: implicit declaration of function `printf'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:130: error: `NULL' undeclared here (not in a function)
scripts/basic/fixdep.c: In function `grow_config':
scripts/basic/fixdep.c:143: warning: implicit declaration of function `realloc'
scripts/basic/fixdep.c:143: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:144: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:145: warning: implicit declaration of function `perror'
scripts/basic/fixdep.c: In function `is_defined_config':
scripts/basic/fixdep.c:161: warning: implicit declaration of function `memcmp'
scripts/basic/fixdep.c: In function `define_config':
scripts/basic/fixdep.c:174: warning: implicit declaration of function `memcpy'
scripts/basic/fixdep.c: In function `use_config':
scripts/basic/fixdep.c:193: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:207: warning: implicit declaration of function `tolower'
scripts/basic/fixdep.c:193: warning: unused variable `s'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:212: error: syntax error before "size_t"
scripts/basic/fixdep.c:213: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_config_file':
scripts/basic/fixdep.c:214: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:214: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c:220: warning: implicit declaration of function `ntohl'
scripts/basic/fixdep.c:231: warning: implicit declaration of function `isalnum'
scripts/basic/fixdep.c: In function `strrcmp':
scripts/basic/fixdep.c:244: warning: implicit declaration of function `strlen'
scripts/basic/fixdep.c: In function `do_config_file':
scripts/basic/fixdep.c:255: error: storage size of `st' isn't known
scripts/basic/fixdep.c:259: warning: implicit declaration of function `open'
scripts/basic/fixdep.c:259: error: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:261: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:265: warning: implicit declaration of function `fstat'
scripts/basic/fixdep.c:267: warning: implicit declaration of function `close'
scripts/basic/fixdep.c:270: warning: implicit declaration of function `mmap'
scripts/basic/fixdep.c:270: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:270: error: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:270: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:270: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:279: warning: implicit declaration of function `munmap'
scripts/basic/fixdep.c:255: warning: unused variable `st'
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:284: error: syntax error before "size_t"
scripts/basic/fixdep.c:285: warning: function declaration isn't a prototype
scripts/basic/fixdep.c: In function `parse_dep_file':
scripts/basic/fixdep.c:286: error: `map' undeclared (first use in this function)
scripts/basic/fixdep.c:287: error: `len' undeclared (first use in this function)
scripts/basic/fixdep.c:289: error: `PATH_MAX' undeclared (first use in this function)
scripts/basic/fixdep.c:291: warning: implicit declaration of function `strchr'
scripts/basic/fixdep.c:293: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:289: warning: unused variable `s'
scripts/basic/fixdep.c: In function `print_deps':
scripts/basic/fixdep.c:325: error: storage size of `st' isn't known
scripts/basic/fixdep.c:329: error: `O_RDONLY' undeclared (first use in this function)
scripts/basic/fixdep.c:331: error: `stderr' undeclared (first use in this function)
scripts/basic/fixdep.c:341: error: `NULL' undeclared (first use in this function)
scripts/basic/fixdep.c:341: error: `PROT_READ' undeclared (first use in this function)
scripts/basic/fixdep.c:341: error: `MAP_PRIVATE' undeclared (first use in this function)
scripts/basic/fixdep.c:341: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:325: warning: unused variable `st'
scripts/basic/fixdep.c: In function `traps':
scripts/basic/fixdep.c:360: error: `stderr' undeclared (first use in this function)
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.6.8'
make: *** [stamp-kernel-configure] Error 2


More information about the Watford mailing list