Ubuntu类日志
1、安装jdk
sudo apt-get install sun-java6-jdk
2、安装Eclipse
sudo apt-get install eclipse
3、安装pydev
下载:http://downloads.sourceforge.net/project/pydev/pydev/Pydev%201.5.0/org.python.pydev.feature-1.5.0.1251989166.zip?use_mirror=ncu并解压
运行Eclipse->Help->software update->Find and install->search for new features to install->new local site..->选择解压目录,搞定。
4、sudo apt-get install eclipse-cdt
新建一个C++工程:
file-->new-->project-->C++-->managed make C++ project (选这个不用自己写make file)
代码提示:
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.3.3
C_INCLUDE_PATH: /usr/include
sudo apt-get install sun-java6-jdk
2、安装Eclipse
sudo apt-get install eclipse
3、安装pydev
下载:http://downloads.sourceforge.net/project/pydev/pydev/Pydev%201.5.0/org.python.pydev.feature-1.5.0.1251989166.zip?use_mirror=ncu并解压
运行Eclipse->Help->software update->Find and install->search for new features to install->new local site..->选择解压目录,搞定。
4、sudo apt-get install eclipse-cdt
新建一个C++工程:
file-->new-->project-->C++-->managed make C++ project (选这个不用自己写make file)
代码提示:
启动Eclipse.进入:Windows-->Preferences-->C/C++找到Environment。增加两个变量:
CPLUS_INCLUDE_PATH: /usr/include/c++/4.3.3
C_INCLUDE_PATH: /usr/include
备份软件源:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
编辑软件源:
sudo gedit /etc/apt/sources.list
将里面的内容通通删掉,然后将下面的信息粘帖进去:
Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
编辑软件源:
sudo gedit /etc/apt/sources.list
将里面的内容通通删掉,然后将下面的信息粘帖进去:
Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):
deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse