Opened 14 years ago
Closed 14 years ago
#2713 closed defect (invalid)
Problem in chapter 6 of LFS-BOOK-6.6 with sed in editing the ext/Compress-Raw-Zlib/config.in file
Reported by: | Mahmoud | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 6.7 |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
When editing the ext/Compress-Raw-Zlib/config.in with sed command as shown in the book the resulted changes in the file are:
BUILD_ZLIB = False INCLUDE= /usr/include LIB= /usr/lib
this will lead to following error in make
Running Makefile.PL in ext/Compress-Raw-Zlib ../../miniperl -I../../lib Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic Parsing config.in... Unknown keys in config.in ignored [INCLUDE= /USR/INCLUDE LIB= /USR/LIB] The following keys are missing from config.in [INCLUDE LIB] 65280 from ext/Compress-Raw-Zlib's Makefile.PL at make_ext.pl line 301. Warning: No Makefile! make[1]: Entering directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib' make[1]: *** No rule to make target `config'. Stop. make[1]: Leaving directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib' make config PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic failed, continuing anyway... Making all in ext/Compress-Raw-Zlib make all PERL_CORE=1 LIBPERL_A=libperl.a LINKTYPE=dynamic make[1]: Entering directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib' make[1]: *** No rule to make target `all'. Stop. make[1]: Leaving directory `/sources/perl-5.10.1/ext/Compress-Raw-Zlib' Unsuccessful make(ext/Compress-Raw-Zlib): code=512 at make_ext.pl line 360. make: *** [lib/auto/Compress/Raw/Zlib/Zlib.so] Error 2
Using vim to edit the file we have:
BUILD_ZLIB = False INCLUDE = /usr/include LIB = /usr/lib
Although this edition seems almost similar to the previous result, but make and make test will go error free
Note:
See TracTickets
for help on using tickets.
The first time you tried it the spacing was different, which apparently confuses the build system. However, running the sed gives me this config.in:
which works fine and is exactly what you should get. You must have mistyped the sed command - double-check your command history and see where the problem is.