Linux下常用软件源码编译

python源码编译

  • 安装expat-devel
    sudo yum install expat-devel
  • 安装libffi-devel
    sudo yum install libffi-devel
  • 安装bzip2
    sudo yum install bzip2-devel
  • 编译python
    ./configure --prefix=/usr --enable-shared --enable-ipv6 --with-system-ffi --with-threads --with-computed-gotos --enable-optimizations --with-lto --with-dbmliborder=gdbm:ndbm --with-system-libmpdec --with-system-expat --enable-loadable-sqlite-extensions && make

vim源码编译

  • 安装ncurses-devel
    sudo yum install ncurses-devel
  • 编译
    ./configure --with-features=huge -enable-python3interp=dynamic --with-python-config-dir=/usr/lib/python3.8/config-3.8m-x86_64-linux-gnu && sudo make

YouCompleteMe

  • future安装
    sudo pip3 install future
  • cmake安装
    sudo yum install cmake
  • 子模块代码下载
    git submodule update --init --recursive
  • 语言支持
    python3 ./install.py --clang-completer
    python3 ./install.py --js-completer
    python3 ./install.py --go-completer
    python3 ./install.py --java-completer

GCC

  • 编译
    ./configure --prefix=/usr --disable-multilib --enable-languages=c,c++,go --enable-shared --enable-threads=posix --with-isl --enable-linker-build-id --enable-lto --enable-plugin --enable-gnu-indirect-function && make -j4

puppeteer

  • 安装libXss库
    sudo yum install libXScrnSaver
  • 安装
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容