Am Monday 20 August 2012 schrieb David Linn:
> Hi,
>
> I checked out the git repo of wget and tried building it. However, when I
> run ./bootstrap, I get the following error three times.
>
> sed: -e expression #1, char 7: unknown option to 's'.
Maybe this is a side effect of a warning.
Looking at 'bootstrap' reveals:
me=$0
...
warn()
{
for i
do
echo "$i"
done | sed -e "s/^/$me: /" >&2
}
$me must not contain any slashes ('/'), which it does (me contains
./bootstrap)...
As soon as warn() is called, you will see the above error message.
You can test it (using bash) with:
$ export me='./bootstrap'
$ echo message | sed "s/^/$me: /"
sed: -e expression #1, char 7: unknown option to `s'
The solution would be to use an sed delimeter that is very unlikely to exist
in $me, e.g. |
$ export me='./bootstrap'
$ echo message | sed "s|^|$me: |"
Hand-edit your bootstrap script and try again. The real error message will
show up and might give you a hint on what's wrong.
Tim