On Sunday 20 March 2005 08:36, Young Koh wrote: > Hi, > > i wanted to run application executables (such as apache) installed in > the host on top of UML using hostfs. but the problem was that glibs > versions installed in the host and UML filesystem are different. so, i > set LD_LIBRARY_PATH in the UML, > > uml# mount none /mnt/host -t hostfs > uml# export LD_LIBRARY_PATH=/mnt/host/lib/ > uml# /mnt/host/where_apache_is_installed/bin/apachectl > > /bin/sh: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found > (required by /mnt/host/lib/libdl.so.2) > /bin/sh: /lib/ld-linux.so.2: version `GLIBC_PRIVATE' not found > (required by /mnt/host/lib/libc.so.6) > > but i'm getting above errors. (libc.so.6 was found correct, it seems) > how can i run executables installed in the host (built with different > version of glibc)? Hmm, I remember that once, besides setting LD_LIBRARY_PATH, I had to prefix each line with /mnt/host/lib/ld-linux.so.2, to use the host loader instead of the guest's one.
I would also avoid exporting LD_LIBRARY_PATH that way, because it could interfere (and in my experience it did) with the applications of the guest. Really, the simplest road is to chroot inside /mnt/host (in a separate shell if you want) and there you'll be able to run flawlessly what you need. > thank you, -- Paolo Giarrusso, aka Blaisorblade Linux registered user n. 292729 http://www.user-mode-linux.org/~blaisorblade ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
