zoukankan      html  css  js  c++  java
  • Linux环境下一些配置记录

    Cmake出现The CXX Compiler not found错误

    sudo apt-get update && sudo apt-get install build-essential

    sudo apt-get install libglew-dev

    sudo apt-get install freeglut3 freeglut3-dev

    sudo apt-get install libXmu-dev libXi-dev

    安装Sublime Text 3

    For Sublime-Text-2:

    sudo add-apt-repository ppa:webupd8team/sublime-text-2

    sudo apt-get update

    sudo apt-get install sublime-text

    For Sublime-Text-3:

    sudo add-apt-repository ppa:webupd8team/sublime-text-3

    sudo apt-get update

    sudo apt-get install sublime-text-installer

    OpenFlipper/OpenFlipper/widgets/coreWidget/CoreWidget.hh

    加入#include <unistd.h>

    export QTDIR=/usr/share/qt4

    export QTINC=/usr/share/qt4/include

    export QTLIB=/usr/share/qt4/lib

    export PATH=$QTDIR/bin:$PATH

    Installing Boost on Ubuntu with an example of using boost array:

    Install libboost-all-dev and aptitude

    sudo apt-get install libboost-all-dev
     
    sudo apt-get install aptitude
     
    aptitude search boost

    1, 首先安装Boost,下载最新的boost ,解压到某个目录

    首先要编译生成boost安装工具bjam

    进入boost目录执行:

    ./bootstrap.sh

    然后执行刚生成的

    ./bjam

    编译开始,大约半小时,全部编译结束。

    ./bjam install 将当前目录下编译好的头文件拷贝到相应位置:在/usr/local/include下有头文件夹boost,在/usr/local/lib下有boost的库

    具体可参考:http://www.linuxidc.com/Linux/2013-07/87573.htm 这个配置不会出错。

    2, 安装m4、GMP、mfpr、

    m4可以直接从软件中心进行下载,或者apt-get install也可以;gmp和mfpr可以直接下载源码再进行编译,gmp可以使用./configure ,make , make check, make install设置,mfpr在安装时需要依赖于mfpr,推荐使用”./configure --with-gmp-include=/usr/local/include --with-gmp-lib=/usr/local/lib“ ”make 、make check、 make install” 进行建立,但本人在“make check”时却出现了问题:"error while loading shared libraries : libgmp.so.3 : can't open shared object file",最终也没能解决,但是也可以install。希望有知道的朋友可以支会声。

    3,安装cgal 可参考http://www.cgal.org/Manual/latest/doc_html/installation_manual/contents.html

    cmake-gui .

    make

    sudo make install

    默认头文件装在 usr/local/include/,  库文件装在 usr/local/lib/.

  • 相关阅读:
    C# 让程序自动以管理员身份运行
    [转]SAP算号器 license key Developer Access Key 完美解决方案
    【原创】项目性能优化全纪录(一) 存储过程优化
    treeview的遍历
    .NET求职笔试题目(续)
    SQL server 数据同步 Merge 的一个小bug
    use Stored procedure return a tabel(存储过程返回table)
    四种sql server 数据库分页的测试
    十五个世界最顶级的技术类博客网站
    层的拖动与隐藏
  • 原文地址:https://www.cnblogs.com/jast/p/4913885.html
Copyright © 2011-2022 走看看