문서의 이전 판입니다!
Beyond Linux From Scratch 12.4
CCACHE 4.x 설정
1. /etc/ccache.conf
cat /etc/ccache.conf
cache_dir = /var/cache/ccache
compression = true
max_size = 50GIB
hash_dir = false
sloppiness = time_macros, include_file_mtime, locale, modules, content
inode_cache = true
umask = 002
compression_level = 6
compiler_check = mtime
2. Group and Mode
export CCACHE_DIR=/var/cache/ccache
sudo groupadd -g 501 dev-ccache
sudo usermod -aG dev ccache username
sudo mkdir -pv $CCACHE_DIR
sudo chown -R :dev-ccache $CCACHE_DIR
이미 사용중이었다면 다음과 같이
sudo find $CCACHE_DIR -type d -exec chmod 2775 {} +
sudo find $CCACHE_DIR -type f -exec chmod 644 {} +