• ICE安装手记


    ICE安装过程中碰到了一些列问题,总是报下面这种错误:

    relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

    总结起来是config的问题,总结几点如下:

    openssl的安装: 

    ./config -fPIC shared --prefix=/home/admin/local --openssldir=/home/admin/local/openssl && make -j 8 &&  make install

    mcpp的安装:

    ./configure CFLAGS=-fPIC --enable-mcpplib --disable-shared --prefix=/home/admin/local 

    BDB(BerkeleyDB)的安装报错:include/db_cxx.h:60:23: error: exception.h:No such file or directory,解决: 

    ../dist/configure  --prefix=/home/admin/local/ --enable-cxx  

    ICE的编译报错 libIce.so: undefined reference to `libiconv',解决: 

    这个问题很恶心,是ICE自己makefile的问题,找到cpp/config/Makefile.rules中,找到193行 :

    ICONV_LIBS              = $(if $(ICONV_HOME),-L$(ICONV_HOME)/$(libsubdir)) $(ICONV_LIB) 

    把这一行修改成下面的就好了, ICONV_LIB根本没有定义

    ICONV_LIBS              = $(if $(ICONV_HOME),-L$(ICONV_HOME)/$(libsubdir)) -liconv

    (对此,我深表无语啊~~~~) 

    ICE的安装没有configure的过程,要修改编译过中库的查找路径,要编辑 cpp/config/Makefile.rules这个文件,所有的库的位置都要在这里面指定。包括prefix

    指定好了,直接在cpp下面make -j 16 && make install

  • 相关阅读:
    django-搭建BBS关键点总结
    关于django中input标签中file类型以及开路由
    Bzoj1115 石子游戏Kam
    HDU1907 John
    HDU2509 Be the Winner
    洛谷P1082 同余方程
    POJ1065 Area
    Vijos1889 天真的因数分解
    Bzoj2440 完全平方数
    Bzoj2705 Longge的问题
  • 原文地址:https://www.cnblogs.com/welkinwalker/p/2094090.html
Copyright © 2020-2023  润新知