[lfs-support] Trouble changing dynamic linker in step 6.9

Bruce Dubbs bruce.dubbs at gmail.com
Tue Jan 31 09:23:46 PST 2012


Firerat wrote:
> On 31 January 2012 14:50, Dave H <thegenrlftw at gmail.com> wrote:
>>> $(readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p')
>> with this i get:
>> ===========================================================================
>> $(readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p')
>>
>> bash: command substitution: line 54: syntax error near unexpected token `)'
>> bash: command substitution: line 54: `readelf -l /bin/sh | sed -n
>> 's at .*interpret.*/tools\(.*\)]$@\1 at p')'
>> ===========================================================================
>>
>>> ` readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p' `
>> this looks like i get something different (this is still with set -vx)
>> ===========================================================================
>> root:/sources/glibc-2.14.1# ` readelf -l /bin/sh | sed -n
>> 's at .*interpret.*/tools\(.*\)]$@\1 at p' `
>>
>> ` readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p' `
>> �readelf -l /bin/sh | sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p'
>> ++ readelf -l /bin/sh
>> ++ sed -n 's at .*interpret.*/tools\(.*\)]$@\1 at p'
>> + /lib64/ld-linux-x86-64.so.2
>> bash: /lib64/ld-linux-x86-64.so.2: No such file or directory
>> ============================================================================

What is the result of: echo `bash --version`
How about: echo $(bash --version)

The result above for the backticks is correct, but the $() is not.

Give us the full output of the script in section vii of the Preface 
(Host System Requirements).

Also show us the result of: set

   -- Bruce



More information about the lfs-support mailing list