zoukankan      html  css  js  c++  java
  • 开发环境部署 < Main < TWiki

    开发环境部署 < Main < TWiki

    开发环境部署

    1. 部署

    0. 自动化部署

    附件: auto_depl.tar
    功能:将以下部署环境安装
    操作:将包解压,用root运行work.sh即可

    1. boost库

    功能: 提供线程、文件操作、正则表达式、通信框架等跨平台类库主页: http://www.boost.org 安装:开发环境应用的版本为1.40.0,安装之前可以先将本机已有的boost库删除, rm -rf /usr/lib/libboost*; rm -rf /usr/lib64/libboost*; rm -rf /usr/include/boost
    获取软件包:见附件,或 wget http://ncu.dl.sourceforge.net/project/boost/boost/1.40.0/boost_1_40_0.tar.bz2
    tar jxvf boost_1_40_0.tar.bz2
    cd boost_1_40_0/tools/jam
    ./build_dist.sh
    cd ../..
    cp tools/jam/stage/bin.linuxx86_64/bjam bjam
    ./bjam "-sTOOLS=gcc" "--includedir=/usr/include" "--libdir=/usr/lib/boost" install

    2. libiconv 1.31.1
    ./configure
    make
    make install

    3. net-snmp-5.4.4.pre1
    ./configure(按默认配置,一路回车)
    make
    make install

    4. scons 2.1.0
    解压进入scons目录后执行python setup.py install

    5. jsoncpp 0.5.0
    安装jsoncpp前要安装scons,解压进入jsoncpp目录,执行scons platform=linux-gcc后在本目录下生成libs文件,在usr/local/lib/目录下新建json目录,将libs/linux-gcc-4.1.2里的libjson_linux-gcc-4.1.2_libmt.a libjson_linux-gcc-4.1.2_libmt.so拷贝到json里。

    6. unixODBC和freetds

    先安装unixODBC

    ./configure --prefix=/usr/local/unixODBC --enable-gui=no

    make

    make install

    再安装freetds

    ./configure --prefix=/usr/local/freetds --with-unixodbc=/usr/local/unixODBC --with-tdsver=8.0

    make && make install

    vi /etc/ld.so.conf

    add: /usr/local/lib/

    /usr/local/unixODBC/lib/

    /usr/local/freetds/lib/

    ldconfig

    7. mysql-connector-odbc-3.51.28-linux-glibc2.3-x86-64bit

    cp lib/* /usr/local/lib/myodbc3.5/

    ldconfig

    8. redis C++客户端安装

    make && make install

    9. sparse_hash_map

    rpm -ivh sparsehash-2.0-1.noarch.rpm

    10. tcmalloc

    tar -xzvf google-perftools-1.9.1.tar.gz

    ./configure --enable-frame_pointers && make &&make install

    11. glog

    ./configure && make &&make install

    ldconfig

    12. oracle驱动

    rpm -ivh oracle-instantclient11.2-basic-11.2.0.1.0-1.x86_64.rpm
    rpm -ivh oracle-instantclient11.2-odbc-11.2.0.1.0-1.x86_64.rpm

    在/etc/ld.so.conf中增加lib路径:/usr/lib/oracle/11.2/client64/lib

    ldconfig

    在~/.bashrc中增加:

    export NLS_LANG="SIMPLIFIED ZHS16GBK"

    如果:测试连接时,出现错误

    01000][unixODBC][Driver Manager]Can't open lib '/usr/lib/oracle/11.2/client64/lib/libsqora.so.11.1' : file not found

    还需要安装 libaio

    rpm -ivh libaio-0.3.106-5.x86_64.rpm

    13. Protobuf 安装

    ./configure --prefix=/usr && make &&make install

    2. 软件包

    见附件

    • sparsehash-1.12.tar.gz: google 的 sparse hash 有省空间和省时间 两种hash结构! 读写反馈数据的时候用!
  • 相关阅读:
    作业
    bash陷阱
    Hive
    工作小结
    Python脚本没有实时print信息
    Ubuntu下apt-get遇到Hash Sum Mismatch
    微信小程序要2017-01-19号发布!
    flex布局学习(四)flex色子布局练习
    flex布局学习(三)
    flex布局学习(二)
  • 原文地址:https://www.cnblogs.com/lexus/p/2704182.html
Copyright © 2011-2022 走看看