문제

I want to install Cilk on my linux machine (Ubuntu 12.04 LTS), in README file they said that I need to have glibc on my machine, I downloaded the 2.16 version, and after many attempts to install it, I messed up some files by installing even though I had numerous errors in make check (after many failing attempts to solve them, I installed anyway). Now that I re-installed Ubuntu on my machine, can I compile and build glibc code without installing it on the machine (do everything until make check without make install), but when building Cilk, can I tell it to use the glibc folder (already compiled and built) that I have on Desktop for example?

도움이 되었습니까?

해결책

Manually upgrading the glibc on Ubuntu is probably going to break a lot of things. First, setting up the right build environment is not trivial and installing a broken glibc will hose your system (as you have seen by now). Second, installing files over top of an Ubuntu/Debian package, may break the package manager in the future when it goes to upgrade packages.

The best solution would be to create a mini-environment with the upgraded libc. Linux from Scratch does just that. You could follow those instructions until you have the libc installed and then install Click into that environment. What's important to note is that LFS causes everything to live in a separate directory. So, you still install the libc, just not in /, but in a little jail (LFS uses /static, you might prefer /opt/clik).

One last thought: have you tried compiling Clik on the glibc 2.15 included with Ubuntu? Ubuntu tends to backport features, so Ubuntu's 2.15 likely has features from 2.16, just not all of them.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top