ubuntu10.04修改骨头源搭建 eclipse C/C++平台
2010-09-06 20:35
447 查看
之前用台湾和国内的源,安装eclipse都不成功,修改为骨头源就可以了。
传说中的“骨头源”(SRT源)
骨头源为Ubuntu论坛成员bones7456(人称骨头兄)亲自搭建并维护的Ubuntu更新源,这个Ubuntu全新源位于浙江杭州百兆共享宽带的电信机房,保证源的及时同步和完整性是该源的重要特色。该源的同步频率是间隔两小时模式
骨头源,提供ubuntu,deepin
deb http://ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
1 安装eclipse:
第一种是通过Ubuntu自带的程序安装功能安装Eclipse,应用程序 ->Ubtuntu软件中心,搜Eclipse安装即可。
第二种方法是用命令:应用程序->附件->终端 然后输入(中间可能需要你输入密码):
sudo apt-get install eclipse
sudo apt-get install eclipse-pde
sudo apt-get install eclipse-jdt
2 安装中文语言包
菜单栏:Help------>Install New Software------>在Work with的框框下输入以下地址回车。
http://download.eclipse.org/technology/babel/update-site/galileo
选择简体中文: Babel Language Packs in Chinese (Simplified)
然后就是选择简体中文安图提示一步步安装
3 安装CDT(c/c++插件)
(1)同 2 中 在Work with的框框下输入 http://download.eclipse.org/releases/galileo
选择Collaboration->Mylyn Bridge: C/C++ Development,安装,重启eclipse
(2)同上输入网址后选择 Programming Languages->Eclipse C/C++ Development
切记:(1)(2)顺序有依赖关系,安装顺序不能颠倒。
在安装cdt的时候,会报这个错误:
An error occurred while installing the items
session context was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343,
action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.
后来google了一下,发现解决办法。
sudo apt-get install eclipse-pde
在装cdt插件,完成~
用Eclipse+CDT开发c/c++项目的时候,怎么能让Eclipse发挥代码自动提示的功能呢?其实也很简单:
打开终端:输入:$ gcc- v
得到类似的:gcc 版本 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
很容易就看到你当前使用的版本了。
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.1.3(我的gcc版本)
C_INCLUDE_PATH: /usr/include �
传说中的“骨头源”(SRT源)
骨头源为Ubuntu论坛成员bones7456(人称骨头兄)亲自搭建并维护的Ubuntu更新源,这个Ubuntu全新源位于浙江杭州百兆共享宽带的电信机房,保证源的及时同步和完整性是该源的重要特色。该源的同步频率是间隔两小时模式
骨头源,提供ubuntu,deepin
deb http://ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb-src http://ubuntu.srt.cn/ubuntu/ lucid main universe restricted multiverse
deb http://ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-security universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-proposed universe main multiverse restricted
deb http://ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-backports universe main multiverse restricted
deb-src http://ubuntu.srt.cn/ubuntu/ lucid-updates universe main multiverse restricted
1 安装eclipse:
第一种是通过Ubuntu自带的程序安装功能安装Eclipse,应用程序 ->Ubtuntu软件中心,搜Eclipse安装即可。
第二种方法是用命令:应用程序->附件->终端 然后输入(中间可能需要你输入密码):
sudo apt-get install eclipse
sudo apt-get install eclipse-pde
sudo apt-get install eclipse-jdt
2 安装中文语言包
菜单栏:Help------>Install New Software------>在Work with的框框下输入以下地址回车。
http://download.eclipse.org/technology/babel/update-site/galileo
选择简体中文: Babel Language Packs in Chinese (Simplified)
然后就是选择简体中文安图提示一步步安装
3 安装CDT(c/c++插件)
(1)同 2 中 在Work with的框框下输入 http://download.eclipse.org/releases/galileo
选择Collaboration->Mylyn Bridge: C/C++ Development,安装,重启eclipse
(2)同上输入网址后选择 Programming Languages->Eclipse C/C++ Development
切记:(1)(2)顺序有依赖关系,安装顺序不能颠倒。
在安装cdt的时候,会报这个错误:
An error occurred while installing the items
session context was:(profile=PlatformProfile,
phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Install,
operand=null --> [R]org.eclipse.cvs 1.0.400.v201002111343,
action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for osgi.bundle,org.eclipse.cvs,1.0.400.v201002111343 was not found.
后来google了一下,发现解决办法。
sudo apt-get install eclipse-pde
在装cdt插件,完成~
用Eclipse+CDT开发c/c++项目的时候,怎么能让Eclipse发挥代码自动提示的功能呢?其实也很简单:
打开终端:输入:$ gcc- v
得到类似的:gcc 版本 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
很容易就看到你当前使用的版本了。
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.1.3(我的gcc版本)
C_INCLUDE_PATH: /usr/include �
相关文章推荐
- ubuntu10.04修改骨头源搭建 eclipse C/C++平台
- ubuntu10.04 eclipse c/c++ 开发环境搭建
- Ubuntu 10.04 Eclipse C/C++平台搭建
- Ubuntu 10.04 Eclipse C/C++平台搭建
- Ubuntu 10.04 Eclipse C/C++平台搭建
- Ubuntu 10.04 Eclipse C/C++平台搭建
- ubuntu10.04 eclipse C/C++平台搭建
- ubuntu10.04 eclipse C/C++平台搭建
- ubuntu10.04 eclipse C/C++平台搭建
- ubuntu 10.04 应用eclipse 搭建 RTEMS 应用程序集成开发环境
- ubuntu 10.04 应用eclipse 搭建 RTEMS 应用程序集成开发环境
- Ubuntu 10.04 Eclipse c/c++ 平台搭建
- ubuntu 10.04 下 eclipse 开发环境搭建
- Ubuntu 10.04 Eclipse C/C++平台搭建
- ubuntu10.04 eclipse C/C++平台搭建
- Ubuntu 10.04 修改Eclipse 字体大小
- Ubuntu10.04搭建linux-0.11编译环境(1.bochs安装和使用)
- Ubuntu下搭建 Eclipse+NDK for Android JNI 的开发环境
- 搭建Ubuntu下基于Eclipse的php开发环境
- Ubuntu 10.04 修改启动菜单默认系统的的方法