Install SourceNavigator in Ubuntu10.04 step by step

Source: Internet
Author: User
In Linux, many people recommend that you use the Source-Navigator tool to view the Source code. It is an IDE developed by RedHatLinux, but most people use it for reading, instead of development. In short, there is not much nonsense. Let's see how to install it in Ubuntu10.04 as follows: 1. download the latest sourcenavigator package, URL: http://sourceforge.net/projects/sourcenav

In Linux, many people recommend that you use the Source-Navigator tool to view the Source code. It is an IDE developed by RedHat Linux, but most people use it for reading, instead of development. In short, there is not much nonsense. Let's look at how to install it in Ubuntu 10.04.

The procedure is as follows:

1. download the latest source navigator package, URL: http://sourceforge.net/projects/sourcenav/
The latest package is sourcenav-6.0.tar.gz. Size: 18.9 MB.

2. Go to the file directory.

3. decompress the package, command: tar zxvf sourcenav-6.0.tar.gz

4. Prepare for installation. First run the command: sudo./configure -- prefix =/opt/sourcenav

5. Many Methods on the Internet are to make first, and then check whether it can be passed. If one-time installation is successful, it is better to say, otherwise it will be more troublesome. We recommend that you do this before making:
Don't make it for the time being, because many of your systems do not have to be installed, even if it is installed, it doesn't matter, because the supervisor will prompt that if it is installed, it will only detect updates, rather than reinstall it, therefore,
Install libx11-dev first. Run the following command on the terminal:
Sudo apt-get install libx11-dev

6. After installation, we need to change a header file. Under the/opt/sourcenav-6.0/tk/generic Directory, locate the tk. h file, open it, http://www.linuxidc.com and modify it with reference to the following text. First in tk. in the H file, find the following definition and add the '-' in the following statement to tk. h: Add // at the beginning of the statement, and copy the statement with the '+' sign before the statement to it, if other statements remain unchanged, click OK, save, and exit. (If this parameter is not modified and cannot be started after compilation, it indicates that tk is not successfully installed)

-# Define VirtualEvent (LASTEvent)
-# Define activatenovel (LASTEvent + 1)
-# Define DeactivateNotify (LASTEvent + 2)
-# Define MouseWheelEvent (LASTEvent + 3)
-# Define TK_LASTEVENT (LASTEvent + 4)
+ # Define VirtualEvent (MappingNotify + 1)
+ # Define ActivateNotify (MappingNotify + 2)
+ # Define DeactivateNotify (MappingNotify + 3)
+ # Define MouseWheelEvent (MappingNotify + 4)
+ # Define TK_LASTEVENT (MappingNotify + 5)
# Define MouseWheelMask (1L <28) // The following three statements must exist (including this article). If they do not exist, add them!
# Define ActivateMask (1L <29 )//
# Define VirtualEventMask (1L <30 )//
-# Define TK_LASTEVENT (LASTEvent + 4)

7. Run the following command: sudo make

8. Run the command: sudo make install. After the installation is complete, type snavigator on the terminal to run source navigator. If the problem persists, check whether the modification in step 1 is correct.

9. After installation, the source navigator can be started from the terminal using the command line. If you prefer to start from the application menu, you can create a project to the Application menu. Run: sudo gedit/usr/share/applications/source-navigator.desktop
Copy the following text and save and exit. The source navigator is displayed in the Application menu. Note: Except for the Icon line, there cannot be spaces behind each line. Otherwise, the source navigator item may not be displayed in the Application menu.

[Desktop Entry]
Name = Source-Navigator
Comment = code-based tool
Exec =/opt/sourcenav/bin/snavigator
Icon =
Terminal = false
Type = Application
Categories = Application; Development;

Related Article

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.