Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install the Ubuntu Anjuta program

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article is about how to install Ubuntu Anjuta programs. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In particular, it is worth mentioning that Ubuntu software has a lot to learn. Here we mainly introduce Ubuntu software, including Ubuntu software installation and so on. Application, Ubuntu Software Center, search Ubuntu Anjuta, install

Run: sudo apt-get install libtool

Sudo apt-get install autogen automake build-essential indent intltool

OK, let's start and get to work!

In IRC, it is common to ask what tools to use under Linux to learn from CumberCraft. There are people who recommend vi/vim and emacs. Personally, I think it's too difficult for beginners like us. In my impression, KDeveloper in KDE is very good, almost as powerful and convenient as VC. I haven't used it for years, and now I don't know what happened.

Recently, it has been found that the GTK-based Anjuta integrated development environment (IDE) is also very good, smaller and faster, as well as automatic code completion and prompting! Develop Cmax Candle tools under NetBeans? Forget it, it's a little bit more pediatric than Ubuntu Anjuta; if Eclipse+CDT doesn't pass, it's probably no better; and these two Java-based IDE are slow and memory-consuming.

APT install Ubuntu Anjuta

There is a 1.x version in the source, which is not to mention. The new 2.x version, which uses the plug-in architecture and integrates Glade, will be installed here.

The operating system environment is Ubuntu Feisty 7.04.Please refer to this post if you use Gutsy 7.10.

The following installation steps are carried out by referring to the instructions on the official website (first close Synaptic, update manager, etc.):

one. Add source: click "system", "system Management", "Software Source" on the main menu, enter the password, click "third Party Software" in the dialog box that appears, click "Add..." in the lower left foot, paste the following line, and then press "add Source", "close", "reload".

Code: deb http://Anjuta.org/apt. /

two. APT installation: click "applications", "attachments" and "Terminal" on the main menu, and execute the following command:

Code: $sudo apt-get install Anjuta

three. Solving dependencies: in order for Ubuntu Anjuta to automatically configure, compile, and work better, we need to install the necessary toolkits, such as localized "intltool" and automatic format "indent". Execute the following command in Terminal:

Code: $sudo apt-get install autogen automake build-essential indent intltool

This avoids the inability to create new projects, compilations, and runtime errors such as autoconf, automake, and so on.

Code:

Unable to exec g++.real: No such file or directory

Make: * * [main.o] error 2

Completed... Unsuccessful

Note: the problem of "Anjuta cannot build" in Ubuntu 8.04 can be solved by adding libtool (apt-get install libtool). Thank you russell18721970 for providing! (on 2008-8-31)

Restart X (that is, log out and log in again) after the installation is complete, so that some of the icons of Ubuntu Anjuta can be displayed properly.

Write a C++ program for Hello World

one. Open Ubuntu Anjuta: click "applications", "programming" and "Anjuta IDE" on the main menu.

two. Create a project: click the menu in Ubuntu Anjuta, File, New, 4. Project. "Application Wizard" appears, click "forward"; select "Generic C++" in "C++" (with Anjuta-1.png in figure), then click "forward"; in the project options (Project Options), select "No" (see figure Anjuta-2.png), and then click "forward" to apply.

three. View the source code: click the "Project" button on the left and switch to the "Project" tab. Click the project name "foobar-cpp", double-click "main.cc" to open it, and select "Scintilla Editor" in the editor (this is the only way to complete the code, see figure Anjuta-3.png).

four. Compile and run: as you can see, the main () function has been written in advance. We press "Shift+F11" to compile, and then press "F3" to run! (the corresponding menus for these two shortcuts are under the generate menu. (photo Anjuta-4.png,Anjuta-5.png)) well, more features of Ubuntu Anjuta are waiting for you to discover! Click "Settings"Plugins".

Install the development documentation for CumberCraft +.

In the process of programming sometimes can not remember the use of a function, usually at this time to check the man manual is relatively fast, so install this manpages-dev package. If you want to see the use of a function, man it. Execute the installation command:

Code: ~ $sudo apt-get install manpages-dev

The index of manpage is managed by the mandb command, and sometimes after installing a new manpage file, you may need to update the index to see functions such as man-k and man-f.

Code: ~ $mandb-c

You can then view these documents. For example, fopen's:

Code: ~ $man fopen

Thank you for reading! This is the end of this article on "how to install Ubuntu Anjuta programs". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report