1. Install the SDK through apt-Get (earlier version)
Installation command: sudo apt-Get install sourcenav
Start command: snavigator
2. Manually install the latest version.
1) obtain the software package from the official website.
Http://sourceforge.net/project/showfiles.php? Group_id = 51180
2) Extract
Tar zxvf s ourcenav-6.0.tar.gz
./Configure -- prefix =/opt/sourcenav
(Recommended parameters for the install file)
Make
Make install
PS: In case of permission issues, add sudo
3) if you encounter the following errors:
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1279: Error: 'tkborder' has no member named 'resourcerefcount'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1280: Error: 'tk _ fakewin 'has no member named 'display'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1280: Error: 'tk _ fakewin 'has no member named 'screennum'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1280: Error: 'tkborder' has no member named 'screen'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1281: Error: 'tk _ fakewin 'has no member named 'atts'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1281: Error: 'tkborder' has no member named 'colormap'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1301: Error: 'tkdisplay' has no member named 'bordertable'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1301: Error: 'tkdisplay' has no member named 'bordertable'
/Root/tk8.4.16/Unix/../generic/tk3d. C: 1306: Error: 'tkborder' has no member named 'nextptr'
......
In the terminal, enter: sudo apt-Get install libx11-dev
Then run again
./Configure -- prefix =/opt/sourcenav
(Recommended parameters for the install file)
Make
Make install
4) Start snavigator
Enter/opt/sourcenav/bin/snavigator directly on the terminal
5) User Manual)
Http://sourcenav.sourceforge.net/online-docs/userguide/index_ug.html
There is also a post comparing source insight and source Navigator:
Http://fky168.blog.163.com/blog/static/3786097200831033957620/
========================================================== ======================
Running source Navigator
Method 1 (reproduced)
Prompt for running snavigator after installation is complete
[Root @ magiclinux Co., sourcenav-6.0] # snavigator
Can't find a usable Tk. TCL in the following directories:
/Usr/local/share/tk8.3
/Usr/local/share/tk8.3/Tk. TCL: No event type or button # Or keysym
No event type or button # Or keysym
While executing
"Bind ListBox <mousewheel> {
% W yview scroll [expr {-(% d/120) * 4}] Units
}"
(File "/usr/local/share/tk8.3/ListBox. TCL" line 182)
Invoked from
"Source"
Invoked from
"If {[String compare $ tcl_platform (Platform)" Macintosh "] &/
[String compare {}$ tk_library]} {
Source
So ..."
(File "/usr/local/share/tk8.3/Tk. TCL" line 30
Invoked from
"Source/usr/local/share/tk8.3/Tk. TCL"
("Uplevel" body line 1)
Invoked from
"Uplevel/#0 [list source $ file]"
This probably means that TK wasn' t installed properly.
If you do not know why, it is invalid to reinstall tk8.3 and upgrade to tk8.5.
Later, we found on the internet that we needed to patch the downloaded source-Navigator 6.0.
To http://bugs.gentoo.org/show_bug.cgi? Id = 225999 find tk-8.4-lastevent.patch patch
Paste the patch to the source navigator source code directory under the sourcenav-6.0/tk directory, and then CD to the sourcenav-6.0/tk source code directory
Patch-P0-I tk-8.4-lastevent.patch
Delete the installation and reinstall it. You can run it (I tried it)
.
Method 2:This method is feasible
)
Find the solution:
(Http://forums.fedoraforum.org/showthread.php? T = 213441)
Remove lines 182-184 in the file/opt/sourcenav/share/tk8.3/ListBox. TCL
Remove lines 457-459 in the file/opt/sourcenav/share/tk8.3/text. TCL
Add launcher to the Panel and add/opt/sourcenav/bin/snavigator to the command.
===== Method for adding a on the desktop after installing the security software ======
The goal of my project is/opt/sourcenav/bin/snavigator (this is a sh script)
Change the line
# Snbindir = 'dirname $0'
Snbindir =/opt/sourcenav/bin
In this case, you can create a new desktop:
Ln-S/opt/sourcenav/bin/snavigator ~ /Desktop/
From: http://hi.baidu.com/superql/blog/item/d6f31655a05cccceb645ae76.html
Another installation method is not tested in person.
In Linux, Baidu has seen source navigator. Many people recommend this tool to view the source code. It is an IDE developed by red hat, 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.4.
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, 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;
Http://blog.csdn.net/xian0617/archive/2011/04/29/6371579.aspx