Ubuntu 下安装 source navigator NG 4.5

锺离德运
2023-12-01

官网上有两个版本sourcenavigator-NG4.5-i686-opt.zip 和 sourcenavigator-NG4.5.tar.bz2

最开始下载的是.zip 后来发现找不到INSTALL.txt文件,按照网上的步骤执行./configure 显示没有该文件

sourcenavigator-NG4.5-i686-opt.zip解压缩之后的bin文件夹中有很多.exe文件,所以这个版本可能是在windows环境下运行的。因此重新下载sourcenavigator-NG4.5.tar.gz2


1、将压缩文件移动到/opt目录下,并解压缩

cp sourcenavigator-NG4.5.tar.bz2 /opt

cd /opt

tar jxvf sourcenavigator-NG4.5.tar.bz2


2、查看sourcenavigator-NG4.5文件夹中的INSTALL

内容如下:

UNIX Build:

GNU tools must be on the PATH before the configure script
is run. GNU make and gcc are required to build Source-Navigator.
If the GNU make executable on your system is installed as
gmake, type gmake instead of make in the following instructions.

To build under a UNIX system, simply run the configure script.
The following commands assume that the user wants to install into
a non-default location (/opt/sourcenav) that is owned by root.
If the install directory is not owned by root, then you don't need
to become root before the make install step.

% ./configure --prefix=/opt/sourcenav
% make
(become root)
% make install

进入目录后执行上述命令,会在opt目录下生成新的sourcenav文件夹

su

cd /opt/sourcenavigator-NG4.5

 ./configure --prefix=/opt/sourcenav
 make
 make install


3、安装好sourcenavigator-NG4.5之后,修改/etc/environment配置文件

在PATH环境变量之后追加sourcenavigator-NG4.5安装后的bin目录

PATH=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/opt/sourcenav/bin


4、启动snavigator

键入命令:snavigator,就可以启动了。

不知道哪里没有配置好,输入命令后,显示snavigator:未找到命令

于是直接进入bin文件夹,执行程序

cd /opt/sourcenav/bin

./snavigator

 类似资料: