[plug] oh dear :(
James Devenish
devenish at guild.uwa.edu.au
Wed Mar 10 08:01:32 WST 2004
In message <20040309224410.GB24980 at linmagau.org>
on Wed, Mar 10, 2004 at 09:44:10AM +1100, Kimberly Shelt wrote:
> mv * to some random directory..
[...]
> root at allmine:/# /home/misskim/oldfloppy/bin/mv /home/misskim/oldfloppy/tmp/ /tmp
> bash: /home/misskim/oldfloppy/bin/mv: No such file or directory
As John showed, the problem is likely to be 'dynamic linking'
difficulty, because POSIX systems rely on file paths to find the
appropriate files. The "No such file or directory" will be referring to
the missing libraries, such as would normally be found in /lib.
Presumably, `sln` is a statically-linked version of `ln`. If using zsh
as your shell and you already have a prompt, you can often get away with
using the built-in commands (e.g. built-in `ln`) to perform these
operations if your real ones are misplaced. Whatever shell you are
using, perhaps it has some built-ins that can help. Otherwise, you
probably need to try and simulate the presence of /lib/ld-linux.so.2
(or whatever it normally is on your system). If you are lucky, your
shell might have a 'mkdir' built-in. In that case, perhaps you can
% mkdir /lib
% < /home/misskim/oldfloppy/lib/ld-linux.so.2 > /lib/ld-linux.so.2
(i.e. this is trying to make use of the shell's built-in redirection to
produce a copy of a file, even though `cp` might not be working.)
Once that has been done, you can probably get away with
% export LD_LIBRARY_PATH=/home/misskim/oldfloppy/lib/
(and add ../usr/lib as well, if necessary).
More information about the plug
mailing list