Re: VMware errrors.

2004-11-06 Thread Bob Proulx
Jan-Benedict Glaw wrote:
  You must run ldconfig after making the symlinks. 
 
 Normally, this should be done automatically at the time you install the
 .deb package...

ldconfig sets symlinks according to configuration in /etc/ld.so.conf.
If this is done in a chroot then it configures it according to the
chroot's /etc/ld.so.conf file.  For programs running in the chroot
that is fine.

But if you are running i686 outside the chroot then the outside the
chroot area must know about the libraries in this other location.  To
programs running outside they don't know anything about chroots.  They
only know what the /etc/ld.so.conf tells the dynamic loader about and
at that time it just looks like libraries in a unique filesystem
location.  My /etc/ld.so.conf looks like this:

  /usr/X11R6/lib
  /emul/ia32-linux/lib
  /emul/ia32-linux/usr/lib
  /emul/ia32-linux/usr/X11R6/lib
  /emul/ia32-linux/usr/local/lib

That also means that when ldconfig is run in the system normally,
outside of the chroot, that it will set up the symlinks (again) for
anything inside the chroot too.  That is fine.  Just noting that it
happens twice, effectively.

An alternative method would be to use LD_LIBRARY_PATH to the ia32
libraries.  That should work too.  But better not to require
environment variables to run programs.

So normally a program installed in the chroot is available immediately
by programs outside the chroot and there is no need to run ldconfig
explicitly.

Bob


signature.asc
Description: Digital signature


Re: VMware errrors.

2004-11-05 Thread A. P. Kennedy
 Jan-Benedict == Jan-Benedict Glaw [EMAIL PROTECTED] writes:

 Jan-Benedict On Thu, 2004-11-04 18:03:35 -0600, A. P. Kennedy
 Jan-Benedict [EMAIL PROTECTED] wrote in message
 Jan-Benedict [EMAIL PROTECTED]:
  kernel is 2.6.8.1 and all needed debs to support vmware are
  installed in my chroot directory, and the correct lib directories
  are placed in /etc/ld.so.conf

 Jan-Benedict Are also all needed symlinks in place?

Thanks that did the trick with strace to find out what vmware was
looking for and then added the symlinks for 

ln -s /ia32/usr/lib/gdk-pixbuf/loaders/* /emul/ia32-linux/usr/lib

This will work also for folks that don't have chroot installed.

dpkg -X libgdk-pixbuf2_0.22.0-7_i386.deb /emul/ia32-linux
ln -s /emul/ia32-linux/usr/lib/gdk-pixbuf/loaders/* /emul/ia32-linux/usr/lib

Interesting I tried using chroot in place of /emul/ia32-linux and that
did not work at all. I guess I have a lot to learn about this library
stuff. 

You must run ldconfig after making the symlinks. 

Still have this error but I suspect it is a another missing lib or
config file. Can't really figure it out with strace. Will take another
look. 


Gdk-WARNING **: locale not supported by Xlib, locale set to C

Gdk-WARNING **: can not set locale modifiers

Thanks,

Alan