简体   繁体   English

Ubuntu 10.04开发工具

[英]Ubuntu 10.04 Development Tools

I needed to install Ubuntu Lucid 10.04 for my dev work. 我需要为开发工作安装Ubuntu Lucid 10.04。 I found that it does not install most of the dev tools/packages by default. 我发现默认情况下它不会安装大多数开发工具/软件包。

  1. What are the essential dev tools one needs? 一个需要哪些基本的开发工具? I don't mind installing them all for the sake of not wanting to have build failure later on for some third part package. 我不介意将它们全部安装,以免以后再出现某些第三方软件包失败。
  2. Also any documentation where I can get a list of essential packages. 还有任何我可以获取基本软件包列表的文档。 Eg:I found that mysql-devel rpm in fedora is called 'libmysql++-dev' in Ubuntu. 例如:我发现在fedora中mysql-devel rpm在Ubuntu中称为'libmysql ++-dev'。 I am looking for such querks 我正在寻找这样的古怪

Start with build-essential . build-essential开始。 Presumably you're after C/C++ stuff. 大概您在追求C / C ++的东西。 Don't forget: 不要忘记:

  • g++ g ++
  • libboost-dev libboost-dev
  • libgtk2.0-dev libgtk2.0开发版
  • libmysqlclient-dev libmysqlclient-dev
  • python-dev python开发

To install the necessary dev files to build a given package, run the command: 要安装必要的dev文件以构建给定的软件包,请运行以下命令:

sudo apt-get build-dep <package>

For example: 例如:

matt@stanley:~/cpfs$ sudo apt-get build-dep pidgin
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting libltdl-dev instead of libltdl3-dev
The following NEW packages will be installed:
  doxygen libenchant-dev libgadu-dev libgstfarsight0.10-dev libgtkspell-dev
  libidn11-dev libltdl-dev libmeanwhile-dev libncursesw5-dev libnm-util-dev
  libnspr4-dev libnss3-dev libperl-dev libsasl2-dev libsilc-dev libsqlite3-dev
  libstartup-notification0-dev libxss-dev libzephyr-dev network-manager-dev
  tcl tcl-dev tcl8.4-dev tk tk-dev tk8.4-dev x11proto-scrnsaver-dev
0 upgraded, 27 newly installed, 0 to remove and 2 not upgraded.
Need to get 11.3MB of archives.
After this operation, 60.3MB of additional disk space will be used.
Do you want to continue [Y/n]?

Generally, most packages have a development version. 通常,大多数软件包都有开发版本。 By convention the names of theseare the very same, but have an -dev sticked to the end. 按照惯例,它们的名称是相同的,但是在末尾加上-dev If you're interested, you can also get the source-code for any package from the repo ( sudo apt-get source ... ) and even let apt automatically build it. 如果您有兴趣,还可以从仓库中获取任何软件包的源代码( sudo apt-get source ... ),甚至让apt自动构建它。 Check out the manpage of apt-get for specific details. 请查看apt-get的手册页以apt-get详细信息。

You can do 你可以做

apt-cache search <package or tools>

You don't need to run this as root or sudoed. 您无需以root用户或sudo身份运行它。 Through this manner you can find the correct package name. 通过这种方式,您可以找到正确的程序包名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM