Problems related to codeblocks installation in Ubuntu (it cannot be compiled or compiled but cannot generate executable files)

Source: Internet
Author: User
Tags gz file

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.1020.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

How to Use Ubuntu night

The top mirror feature of ubuntu night (http://ubuntu9.com) continually updates information about the currently available source based on current network conditions and source health conditions, including top fast/near/stable mirror, you can find all the available Ubuntu images (source) on the current network and rank them according to the average download speed and geographical location. In addition, when you find the most suitable source, you can also directly download its sources. list file, and copy it directly to/etc/APT/sources. list or put it in/etc/APT/souces. list. d directory, it is very convenient, you do not have to find the available source.

1. First, back up the source list:

Sudo CP/etc/APT/sources. LIST/etc/APT/sources. list_backup

2 and then open it in gedit or another Editor:

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. select an appropriate source from the list below, replace all the content in the file, and save the edited file:

Note: Be sure to select the correct version info 10.04 info 9.10 info 9.04 info 8.10 info 8.04

4. Refresh the list:

Sudo apt-Get update



Netease 163 Update Server:

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
The Deb-Src http://mirrors.163.com/ubuntu/ lucid main restricted universe multiverse
The Deb-Src http://mirrors.163.com/ubuntu/ lucid-security main restricted universe multiverse
The 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


-----------------------------------------
After codeblocks is installed, it may fail to compile Program , Error: G ++: not found
This is because the debugger is not fully installed.
Sudo aptitude install build-essential

The role of the preceding command: That installg ++, GCC, make, etc.

From:
Http://ubuntuforums.org/showthread.php? T = 509997

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.