[lfs-support] ln -sv ../usr/bin/cpp /lib

Rick Shelton rick.shelton at gmail.com
Tue Mar 20 07:39:53 PDT 2012


On Tue, Mar 20, 2012 at 7:41 AM, Alexander Kapshuk
<alexander.kapshuk at gmail.com> wrote:
> While working on '6.17.1. Installation of GCC', I created and cd'd into
> '/sources/gcc-build'. One of the instructions suggests creating this
> symlink, 'ln -sv ../usr/bin/cpp /lib'. I assumed that I was supposed to run
> the command line while still in '/sources/gcc-build'. If that is the case,
> shouldn't the command line be 'ln -sv ../../usr/bin/cpp'?
>

When the ln command is given two paths, the current directory does not
affect the result. The current directory only has an affect when there
is only one path passed to the command.



More information about the lfs-support mailing list