[英]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.
我发现默认情况下它不会安装大多数开发工具/软件包。
Start with build-essential
. 从
build-essential
开始。 Presumably you're after C/C++ stuff. 大概您在追求C / C ++的东西。 Don't forget:
不要忘记:
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.