Ubuntu编译环境相关

编译基础包

编译基础包

sudo apt-get install build-essential 

sudo apt-get install autoconf   automake

sudo apt-get install  libc6  libstdc++6   libc6-dev libstdc++6-4.x-dev

 

alphajay@alphajay-desktop:~/program/thread$ dpkg -l | grep libc6

ii libc6                               2.11.1-0ubuntu7.8                              
Embedded GNU C Library: Shared libraries

ii  libc6-dev                            2.11.1-0ubuntu7.8                              
Embedded GNU C Library: Development Librarie

ii libc6-i686                          2.11.1-0ubuntu7.8                              

alphajay@alphajay-desktop:~/program/thread$ dpkg -l | grep libstdc++

ii libstdc++6                   4.4.3-4ubuntu5                                 
The GNU Standard C++ Library v3

ii  libstdc++6-4.4-dev                   4.4.3-4ubuntu5                                  
The GNU Standard C++ Library v3 (development


函数文档

sudo apt-get install manpages-dev  manpages-posix-dev

sudo apt-get install binutils-doc cpp-doc gcc-doc glibc-doc

实现Secure CRT的rz sz命令支持

sudo apt-get install lrzsz

(send a file with Zmodem under minicom, you should install a Y/Z modem.)


解决函数跳转的问题

sudo apt-get install ctags   cscope

 

 

安装库文件
eg:一些通过二进制tar包发布的软件需要“libstdc++-libc6.2-2.so.3”文件,但ubuntu中相应的库文件名为“libstdc++-3-libc6.2-2-2.10.0.so”。解决办法除了建立符号连接之外似乎还可以这样:

sudo apt-get install libstdc++2.10-glibc2.2




_____________________

也可以用零散文件的方式安装编译环境

apt-get install    bison   flex libncurses5-dev   zlib1g-dev    libz-dev   gettext    patch
apt-get install  gcc g++ make  binutils autoconf

apt-get install  unzip   gawk   bzip2

apt-get install lcov ggcov

apt-get install asciidoc
apt-get install subversion

你可能感兴趣的:(Ubuntu编译环境相关)