Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6136

Can I build a portable execution environment with everything in `~/.local`?

$
0
0

I'm using multiple Linux servers that are running on different versions of glibc and other essential libraries. Since I do not have root access, I have to compile the packages from scratch on each machine. So I want to pack a local library environment from scratch (containing glibc) in ~/.local (i.e. --prefix=/home/<xxx>/.local) and completely discard system libraries.

Will this solution approachable? (i.e. I can pack the ~/.local and ~/.bashrc, move to a new machine, unpack them, and use them directly.)

Recently I'm reading Linux from Scratch, but actually this is not a cross-compiling task so procedure in the book may not apply. My current sequence is glibc -> binutils -> libstdc++ -> gcc. Is the order correct? What's the correct order of building libraries?


Viewing all articles
Browse latest Browse all 6136

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>