Ubuntu安装CodeBlocks相关问题(不能编译或者编译通过但不能生成可执行文件)
2012-06-06 14:54
781 查看
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_nightly_build_on_Ubuntu
1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.
tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz
2. Install all the packages at the same time.
sudo dpkg -i *.deb
The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.
-----------------------------------------
http://wiki.ubuntu.org.cn/Qref/Source
如何使用Ubuntu Night
Ubuntu Night( http://ubuntu9.com ) 的Top mirror功能根据当前的网络情况和源健康状况不断地进行更新当前可用的源的信息,包括了Top fast/near/stable mirror,可以找到当前网络上所有可用的Ubuntu 镜像(即源),并按照平均下载速度和地理位置进行排名。而且,当你找到最适合你的源之后,还可以直接下载它的sources.list 文件,并可直接将它copy到/etc/apt/sources.list或者放在/etc/apt/souces.list.d目录下,非常的方便,无 须苦苦找可用源。
1 首先备份源列表:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2 而后用gedit或其他编辑器打开:
gksu gedit /etc/apt/sources.list
kdesudo kate /etc/apt/sources.list
gksu mousepad /etc/apt/sources.list
gksu gedit /etc/apt/sources.list
3 从下面列表中选择合适的源,替换掉文件中所有的内容,保存编辑好的文件:
注意:一定要选对版本 Info 10.04 Info 9.10 Info 9.04 Info 8.10 Info 8.04 Info 6.06
4 然后,刷新列表:
sudo apt-get update
网易163更新服务器:
deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
-----------------------------------------
安装codeblocks之后,可能编绎不了程序,报错: g++: not found
这是因为编绎器,调试器未安装完全。
sudo aptitude install build-essential
以上命令的作用: That installs g++, gcc, make, etc.
1. Download the tar.gz file to your computer and extract the files to an empty directory, such as one called temp for example.
tar xvf CB_date-of-build_revision-number_Ubuntu6.10+7.04_wx2.8.4.tar.gz
2. Install all the packages at the same time.
sudo dpkg -i *.deb
The packages can be installed individually, if you prefer not to install everything. The first package to install is libcodeblocks0 followed by the codeblocks package. All the other packages are optional. If you want to install the wxsmith and/or contrib packages, you must install the libwxsmithlib0 package first.
-----------------------------------------
http://wiki.ubuntu.org.cn/Qref/Source
如何使用Ubuntu Night
Ubuntu Night( http://ubuntu9.com ) 的Top mirror功能根据当前的网络情况和源健康状况不断地进行更新当前可用的源的信息,包括了Top fast/near/stable mirror,可以找到当前网络上所有可用的Ubuntu 镜像(即源),并按照平均下载速度和地理位置进行排名。而且,当你找到最适合你的源之后,还可以直接下载它的sources.list 文件,并可直接将它copy到/etc/apt/sources.list或者放在/etc/apt/souces.list.d目录下,非常的方便,无 须苦苦找可用源。
1 首先备份源列表:
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2 而后用gedit或其他编辑器打开:
gksu gedit /etc/apt/sources.list
kdesudo kate /etc/apt/sources.list
gksu mousepad /etc/apt/sources.list
gksu gedit /etc/apt/sources.list
3 从下面列表中选择合适的源,替换掉文件中所有的内容,保存编辑好的文件:
注意:一定要选对版本 Info 10.04 Info 9.10 Info 9.04 Info 8.10 Info 8.04 Info 6.06
4 然后,刷新列表:
sudo apt-get update
网易163更新服务器:
deb http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ lucid-backports main restricted universe multiverse
-----------------------------------------
安装codeblocks之后,可能编绎不了程序,报错: g++: not found
这是因为编绎器,调试器未安装完全。
sudo aptitude install build-essential
以上命令的作用: That installs g++, gcc, make, etc.
相关文章推荐
- ubuntu 安装bin 文件不能执行的问题
- Ubuntu安装CodeBlocks相关问题总结
- Ubuntu下重新安装软件 配置文件不重新生成得问题解决
- ubuntu下解决codeblocks刚装好时终端不能粘贴的问题
- ROS中编译通过但是遇到可执行文件找不到的问题
- 编译通过但是执行文件的时候出现查找不到共享库问题
- Ubuntu 11.04 Code::Blocks 下编译OpenCV文件
- Ubuntu 16.04 systemback生成镜像文件无法安装grub的问题
- 解决vs2008中包含wlanapi.h头文件后编译不能通过的问题
- ubuntu codeblocks通过配置文件修改主题
- 64位Ubuntu下不能生成R.java文件的问题(Android)
- 关于CodeBlocks安装后无法编译问题
- 编译和链接通过生成可执行文件,但运行时找不到动态库
- 解决Fedora上code::blocks不能编译问题
- codeblocks编译出错问题的解答!(编译c++ 或者c程序)
- android 中 R.java 常见问题(R.java文件没有生成 或者生成了但是R.id...不能识别出id或者R.layout)
- Ubuntu下numpy安装缺少Python.h头文件无法通过编译与python2.7-dev无法安装
- eclipse clean后不能自动编译生成class文件的问题
- 关于Ubuntu16.04安装opencv2.4.13及编译运行opencv程序的相关问题
- 11.13 matlab编译生成执行文件注意的若干问题