某人说我靠一个买卖好友的bug吸引这么多的流量并以此表示对我的bs,好吧……
搞定了distcc,小学期又结束了,该写报告了,编译个openoffice吧~
可惜刚开始emerge就提示需要保证5G的编译空间,我的根目录一共才分了10G,可用4G……
这个问题当时刚开始用gentoo的时候emerge gcc,需要至少1G空间。问过oceanboo,当时想到的方法是把/home下的某目录mount到/var/tmp/portage解决了问题,之后换了250G硬盘,给/分了10G,暂时好久没关心过这个问题了,没想到今天又遇到了。
好好查了下,找到了这篇文章,终于找到一个比较合适的解决方法了。
Portage’s temporary files are stored in /var/tmp by default. This is defined by the PORTAGE_TMPDIR variable.
If you alter the PORTAGE_TMPDIR variable, you might want to alter the following variables as well since they will not notice the PORTAGE_TMPDIR change. This is due to how Portage handles variables: BUILD_PREFIX.
Portage creates specific build directories for each package it emerges inside /var/tmp/portage. This location is defined by the BUILD_PREFIX variable.
By default Portage installs all files on the current filesystem (/), but you can change this by setting the ROOT environment variable. This is useful when you want to create new build images.
所以解决方法也很简单,在make.conf中加入BUILD_PREFIX=/home/yegle/tmp就OK了。
P.S.发现在这里的man make.conf中有提到BUILD_PREFIX这个变量,为什么我自己的man make.conf没有呢……
如果你喜欢这篇日志的话,欢迎订阅我的RSS Feed!
本文来源于一阁Blog。版权所有,转载请确保已阅读该页面。


没玩过的飘~~~
赞250G…
=.=你的gravatar头像真囧……
为啥…
反正挺囧的……
=。=
你认识 ob ?你上 #arch-cn 么?
顺便鄙视一下那个验证码。。。。
不认识……不上……
那个插件是reCAPTCHA的,给那个项目做点贡献,呵呵~