加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

ubuntu 安装pcre-8.30

(2012-05-05 19:40:41)
标签:

it

分类: linux

原文地址:http://permalink.gmane.org/gmane.linux.lfs.beyond.support/43608

LFS 6.5, 6.7, 6.8 and SVN-20111210.

Building pcre-8.30 was a little difficult.

First attempt, grep stopped working, with message:

"grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file
or directory".

Boot failed, to my scare...

I had to make the symlink:

"ln -v -sf libpcre.so.1.0.0 /lib/libpcre.so.0"

in order to boot and have a working grep back.

Build still failed:

<<
ln -s pcre_assign_jit_stack.3           /usr/share/man/man3/pcre16_assign_jit_stack.3
ln: failed to create symbolic link "/usr/share/man/man3/pcre16_assign_jit_stack.3": Arquivo existe
make[3]: ** [install-data-hook] Erro 1
make[3]: Saindo do diretório `/media/dados/home/fernando/tmp/paco-build-2012.02.11/pcre-8.30'
make[2]: ** [install-data-am] Erro 2
>>

Build succeeded when the symlink was made after the removal of previous build, and, before starting build,
I removed previous entries for man:

<<
mkdir -vp /home/fernando/usr-share-man-man3-pcre16 &&
mv -v /usr/share/man/man3/pcre16* /home/fernando/usr-share-man-man3-pcre16
>>

I believe these issues are due to the use of paco. I have:

      INSTALLCOMMAND="ln -v -sf libpcre.so.1.0.0 /lib/libpcre.so.0 &&
                      make install" &&

      ./configure \
                  --prefix=/usr \
                  --disable-static \
                  --libdir=/lib \
                  --docdir=/usr/share/doc/pcre-8.30 \
                  --enable-utf8 \
                  --enable-unicode-properties \
                  --enable-pcregrep-libz \
                  --enable-pcregrep-libbz2 \
                  --enable-jit &&

      time make -j4 &&

      if [ $PIPESTATUS = 0 ]; then

          paco -r --batch pcre-8.21 || continue &&
          paco -U pcre-8.21 || continue &&
          paco -lp pcre-8.30 "$INSTALLCOMMAND" &&

          echo "`date` pcre-8.30 $SOURCEDIR/pcre-8.30.tar.bz2" >> \
                /usr/src/packages.log &&

          ldconfig

      fi &&

[]s,
Fernando

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有