On 09/18/2015 03:42 AM, rod wrote:> So... > Following the directions given (on two different machines just to make > sure) I get to the point where I try to use dpkg -i to install the > downloaded file and I end up with this error: > > I have no name!@ravirin:/# dpkg -i libpcre3_8.35-7.1+sparc64_sparc64.deb > dpkg: error while loading shared libraries: libpcre.so.3: cannot open > shared object file: No such file or directory
Well, it actually tells you what's wrong. Your problem is that dpkg requires libpcre3.so.3 to work which is in the package you are currently trying to install. $ dpkg-deb -c libpcre3_8.35-7.1+sparc64_sparc64.deb |grep libpcre.so.3.13.1 -rw-r--r-- root/root 437096 2015-08-11 04:18 ./lib/sparc64-linux-gnu/libpcre.so.3.13.1 lrwxrwxrwx root/root 0 2015-08-11 04:18 ./lib/sparc64-linux-gnu/libpcre.so.3 -> libpcre.so.3.13.1 Just extract libpcre3.so.3.13.1 manually and copy it into place: $ dpkg -x libpcre3_8.35-7.1+sparc64_sparc64.deb ~/libpcre3 $ cp -av ~/libpcre3/lib/sparc64-linux-gnu/libpcre.so.3.13.1 \ sid-sparc64-sbuild/lib/sparc64-linux-gnu/libpcre.so.3.13.1 $ ln -s sid-sparc64-sid/lib/sparc64-linux-gnu/libpcre.so.3.13.1 \ sparc64-sid-sbuild/lib/sparc64-linux-gnu/libpcre.so.3 Then try again. > Q1: did I miss a step? I am logged in as myself and not as root. Does it > matter? No, you didn't. I forgot to mention that. But the error message above should have given you the proper clue. > Q2: should debootstrap --second-stage be run from within chroot or from > outside? Of course *within* the chroot. The idea behind the two stages is that the first stage is run on the host system while the second stage is run on the target system when using --foreign to debbootstrap a foreign architecture. Please read the manpage of debootstrap. Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - [email protected] `. `' Freie Universitaet Berlin - [email protected] `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913

