注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

勇敢的劳尤条

 
 
 

日志

 
 

Cygwin利用apt-cyg安装gcc、g++、make和gdb  

2014-02-26 19:22:27|  分类: unix/linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
前面讲了 "apt-cyg的使用方法和基本原理",如下面这般。

apt-cyg install nano
Cygwin的安装以及部分使用 - yuanshuilee - 勇敢的劳尤条

但是,当我运行 apt-cyg install gcc 时,却出现这样:
Cygwin利用apt-cyg安装gcc、g++、make和gdb - yuanshuilee - 勇敢的劳尤条
 找不到。为什么呢?难道软件中心没有提供gcc吗?想想也觉得不应该吧。
毕竟apt-cgy没有apt-get那么强大,后者可以输入部分名字,按tab补全,这里毕竟只是简单脚本,还不行,还没有实现那么强大的功能。所以,很可能是名字出错了。

还记得setup.ini吗?我查找这个文件发现下面这个。
@ gcc-core
sdesc: "GNU Compiler Collection (C, OpenMP)"
ldesc: "The GNU Compiler Collection includes front ends for C, C++,
Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these
languages (libstdc++, libgcj,...)."
category: Devel
requires: bash libatomic1 libcloog-isl4 libgcc1 libgmp10 libgomp1 libintl8 libisl10 libmpc3 libmpfr4 libquadmath0 libssp0 zlib0 binutils w32api-headers w32api-runtime
version: 4.8.2-3
install: x86_64/release/gcc/gcc-core/gcc-core-4.8.2-3.tar.xz 13577500 ba49eb8db890379d6b8f7264d44006f7
source: x86_64/release/gcc/gcc-4.8.2-3-src.tar.xz 85959836 8a29635f2f87d24c2b22750d95105103
[prev]
version: 4.8.2-2
install: x86_64/release/gcc/gcc-core/gcc-core-4.8.2-2.tar.xz 13585744 1997b2d72b5ed2e16f8f7bc8cfb8a594
source: x86_64/release/gcc/gcc-4.8.2-2-src.tar.xz 85959916 81f921aaf429afa22812e8bc37ab5554

这说明软件中心有gcc这个东西,只不过名字叫做gcc-core而已。
同理,我还找到了 g++  make  gdb  libstdc++6 等,然后就可以很好的安装了。

@ gcc-g++
sdesc: "GNU Compiler Collection (C++)"
ldesc: "The GNU Compiler Collection includes front ends for C, C++,
Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these
languages (libstdc++, libgcj,...)."
category: Devel
requires: libcloog-isl4 libgmp10 libintl8 libisl10 libmpc3 libmpfr4 libstdc++6 python zlib0 gcc-core
version: 4.8.2-3
install: x86_64/release/gcc/gcc-g++/gcc-g++-4.8.2-3.tar.xz 7543032 7304dc9262d38d6f017aaec9f0097274
source: x86_64/release/gcc/gcc-4.8.2-3-src.tar.xz 85959836 8a29635f2f87d24c2b22750d95105103
[prev]
version: 4.8.2-2
install: x86_64/release/gcc/gcc-g++/gcc-g++-4.8.2-2.tar.xz 7542204 fbaf380b29ac88c63412bb42c9a36cfa
source: x86_64/release/gcc/gcc-4.8.2-2-src.tar.xz 85959916 81f921aaf429afa22812e8bc37ab5554

@ make
sdesc: "The GNU version of the 'make' utility"
ldesc: "A GNU tool for controlling the generation of executables and other
non-source files of a program from the program's source files. Make
allows users to build and install packages without any significant
knowledge about the details of the build process. The details about
how the program should be built are provided for make in the program's
makefile."
category: Devel
requires: cygwin coreutils bash libintl8 libiconv2
version: 4.0-2
install: x86_64/release/make/make-4.0-2.tar.xz 374228 2d0d82a9d7eba8eaaa518a2b689df24a
source: x86_64/release/make/make-4.0-2-src.tar.xz 1075548 f0c09fec14f6ecfe5c583b213de33309
[prev]
version: 3.82.90-1
install: x86_64/release/make/make-3.82.90-1.tar.bz2 1283082 206fef597ef40ca22921c5788083a93d
source: x86_64/release/make/make-3.82.90-1-src.tar.bz2 1962406 db12c0bcc5a544b7969f406cff00190a

@ gdb
sdesc: "The GNU Debugger"
ldesc: "The GNU debugger, allows you to debug programs written in C, C++,
and other languages, by executing them in a controlled fashion
and printing their data."
category: Devel
requires: libncursesw10 zlib0 libintl8 libexpat1 bash libiconv2
version: 7.6.50-4
install: x86_64/release/gdb/gdb-7.6.50-4.tar.bz2 3216614 372c8008dc29f32a36722b567f8d4044
source: x86_64/release/gdb/gdb-7.6.50-4-src.tar.bz2 20234488 46f3fb0328758aa0e2067006af7a4073
[prev]
version: 7.6-2
install: x86_64/release/gdb/gdb-7.6-2.tar.bz2 4099548 6c359f22e43cd9d48c1533045a1dfe18
source: x86_64/release/gdb/gdb-7.6-2-src.tar.bz2 24247447 4c1703cd7aff73a892b8de169cbc2cd6

@ libstdc++6
sdesc: "GCC C++ runtime library"
ldesc: "The GNU Compiler Collection includes front ends for C, C++,
Objective-C, Fortran, Java, Ada, and Go, as well as libraries for these
languages (libstdc++, libgcj,...)."
category: Devel
requires: libgcc1
version: 4.8.2-3
install: x86_64/release/gcc/libstdc++6/libstdc++6-4.8.2-3.tar.xz 188708 c74b222dd45b0879bf032f969ae6cf57
source: x86_64/release/gcc/gcc-4.8.2-3-src.tar.xz 85959836 8a29635f2f87d24c2b22750d95105103
[prev]
version: 4.8.2-2
install: x86_64/release/gcc/libstdc++6/libstdc++6-4.8.2-2.tar.xz 188732 25409f4f30769035395b56920e135ca4
source: x86_64/release/gcc/gcc-4.8.2-2-src.tar.xz 85959916 81f921aaf429afa22812e8bc37ab5554

 安装完成之后,可以查看版本。
gcc --version     
g++ --version 
make --version  
gdb --version 
都有版本信息说明已经都安装完成了,所以可以进行编译了。

【参考资料】
http://yuanshuilee.blog.163.com/blog/static/2176972752014126105334181/
  评论这张
 
阅读(5991)| 评论(1)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017