目录
  1. 1. BLFS构建06-常用库和工具
    1. 1.1. apr
    2. 1.2. apr-utils
    3. 1.3. aspell
BLFS构建06-常用库和工具

BLFS构建06-常用库和工具

apr

1
2
3
4
5
6
7
8
wget http://ftp.lfs-matrix.net/pub/blfs/8.4/a/apr-1.6.5.tar.bz2
tar -jxvf apr-1.6.5.tar.bz2
cd apr-1.6.5
./configure --prefix=/usr \
--disable-static \
--with-installbuilddir=/usr/share/apr-1/build &&
make
make install

apr-utils

1
2
3
4
5
6
7
8
9
10
wget http://ftp.lfs-matrix.net/pub/blfs/8.4/a/apr-util-1.6.1.tar.bz2
tar -jxvf apr-util-1.6.1.tar.bz2
cd apr-util-1.6.1
./configure --prefix=/usr \
--with-apr=/usr \
--with-gdbm=/usr \
--with-openssl=/usr \
--with-crypto &&
make
make install

aspell

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
wget http://ftp.lfs-matrix.net/pub/blfs/8.4/a/aspell-0.60.6.1.tar.gz
wget https://ftp.gnu.org/gnu/aspell/dict
tar -zxvf aspell-0.60.6.1.tar.gz
cd aspell-0.60.6.1
sed -i '/ top.do_check ==/s/top.do_check/*&/' modules/filter/tex.cpp &&
sed -i '/word ==/s/word/*&/' prog/check_funs.cpp
./configure --prefix=/usr &&
make
make install &&
ln -svfn aspell-0.60 /usr/lib/aspell &&

install -v -m755 -d /usr/share/doc/aspell-0.60.6.1/aspell{,-dev}.html &&

install -v -m644 manual/aspell.html/* \
/usr/share/doc/aspell-0.60.6.1/aspell.html &&

install -v -m644 manual/aspell-dev.html/* \
/usr/share/doc/aspell-0.60.6.1/aspell-dev.html

install -v -m 755 scripts/ispell /usr/bin/
install -v -m 755 scripts/spell /usr/bin/

./configure &&
make
make install
  • aspell依赖which
1
2
3
4
5
6
7
8
9
10
11
12
13
wget http://ftp.lfs-matrix.net/pub/blfs/8.4/w/which-2.21.tar.gz
tar -zxvf which-2.21.tar.gz
which-2.21
./configure --prefix=/usr &&
make
make install
#配置
cat > /usr/bin/which << "EOF"
#!/bin/bash
type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}
EOF
chmod -v 755 /usr/bin/which
chown -v root:root /usr/bin/which
1

1

1

1

文章作者: rack-leen
文章链接: http://yoursite.com/2019/06/19/BLFS/BLFS%E6%9E%84%E5%BB%BA06-%E5%B8%B8%E7%94%A8%E5%BA%93%E5%92%8C%E5%B7%A5%E5%85%B7/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 rack-leen's blog
打赏
  • 微信
  • 支付宝

评论