Re: make problem on new installation
On Wed, Apr 27, 2005 at 09:13:36AM -0400, Marty Landman wrote:
> I recently installed Woody on an i386 using the mini-iso and am now wanting
> to get Apache 1.3 installed from the tar file. I put apache_1.3.29.tar.gz
> in /tmp, su'd to root, untarred it and cd'd into the dir, then here's what
> happened -- and I wonder if this a sed problem or otherwise issue with my
> Woody installation rather than an Apache problem:
>
> ...................................................................................................
> woody:/tmp/apache_1.3.29# ./configure --prefix=/usr/local/apache
> --enable-module=unique_id --enable-module=rewrite --enable-module=speling
> --enable-module=expires --enable-module=info --enable-module=log_agent
> --enable-module=log_referer --enable-module=usertrack --enable-module=proxy
> --enable-module=userdir --enable-module=so --enable-suexec
> --suexec-caller=www --suexec-docroot=/mnt/web/guide
> Configuring for Apache, Version 1.3.29
> + using installation path layout: Apache (config.layout)
> Creating Makefile
> sed: -e expression #44, char 45: Unknown option to 's'
In the configure script there's a code section that reads
## create Makefile from Makefile.tmpl
##
if [ "x$quiet" = "xno" ]; then
echo "Creating $mkf"
fi
sed <Makefile.tmpl >$mkf \
-e "s%@PLATFORM@%$PLATFORM%g" \
(... man other -e statements ...)
-e "s%@SHELL@%$SHELL%g"
If you enable echoing of commands for that call of sed, like this
set -x
sed <Makefile.tmpl >$mkf \
-e "s%@PLATFORM@%$PLATFORM%g" \
(...)
-e "s%@SHELL@%$SHELL%g"
set +x
you should get enough info to figure out what the problem is.
If I counted correctly, the 44th -e expression in that list is
-e "s%@conf_serveradmin@%$conf_serveradmin%g"
so, presumably there's some problem with the value that
$conf_serveradmin expands to (e.g. if it contains the char %).
Just to illustrate, something like
#!/bin/sh
conf_serveradmin='your%name@gmail.com'
sed <Makefile.tmpl >Makefile \
-e "s%@conf_serveradmin@%$conf_serveradmin%g"
would make the -e expression expand to
s%@conf_serveradmin@%your%name@gmail.com%g
^
which would cause sed to complain about the unknown 'option' n:
sed: -e expression #1, char 27: Unknown option to 's'
Using a different seperator like
-e "s|@conf_serveradmin@|$conf_serveradmin|g"
should work around the problem in that case. Alternatively, use a
different mail address...
Cheers,
Almut
Reply to: