安装SourceNavigator 6.0

今天在ubuntu9.10上装sourcenavigator, 打了一行命令 sudo apt-get insatll sourcenav 之后,囧了,居然说找不到它。没有办法,下载了sourcenav-6.0.tar.gz,然后一步步地,
$tar xf sourcenav-6.0.tar.gz
$cd sourcenav-6.0
$./configure
$make
$sudo make install
然后启动source navigator,
$snavigator
又囧了,出现以下提示

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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 within
"source [file join $tk_library listbox.tcl]"
    invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
	[string compare {} $tk_library]} {
    source [file join $tk_library button.tcl]
    so..."
    (file "/usr/local/share/tk8.3/tk.tcl" line 308)
    invoked from within
"source /usr/local/share/tk8.3/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 [list source $file]"
 
 
This probably means that tk wasn't installed properly.

然后google,看了看,知道解决方法了。
注意上面的第10行:file “/usr/local/share/tk8.3/listbox.tcl” line 182
于是:
$sudo gedit /usr/local/share/tk8.3/listbox.tcl
注释掉182~184三行。

然后:
$snavigator
又囧了,提示如下:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
 
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 Text <MouseWheel> {
    %W yview scroll [expr {- (%D / 120) * 4}] units
}"
    (file "/usr/local/share/tk8.3/text.tcl" line 457)
    invoked from within
"source [file join $tk_library text.tcl]"
    invoked from within
"if {[string compare $tcl_platform(platform) "macintosh"] && \
	[string compare {} $tk_library]} {
    source [file join $tk_library button.tcl]
    so..."
    (file "/usr/local/share/tk8.3/tk.tcl" line 308)
    invoked from within
"source /usr/local/share/tk8.3/tk.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel \#0 [list source $file]"
 
 
This probably means that tk wasn't installed properly.

照着葫芦画瓢,注意第11行:file “/usr/local/share/tk8.3/text.tcl” line 457
好吧:
$sudo gedit /usr/local/share/tk8.3/text.tcl
注释掉457~459行。
然后再:
$snavigator
正常了。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要在Ubuntu上安装FFmpeg 6.0,您可以按照以下步骤进行操作: 1. 首先,确保您的Ubuntu版本是22.04.2 LTS,并且已经正确配置了环境。 2. 创建一个目录来存储FFmpeg的源代码和构建文件。 3. 打开终端并执行以下命令,以便在重新启动Ubuntu后可以识别新安装FFmpeg的位置:source ~/.profile 4. 在终端中执行以下命令,下载FFmpeg 6.0的源代码并解压: cd ~/ffmpeg_sources && \ wget -O ffmpeg-6.0.tar.bz2 https://ffmpeg.org/releases/ffmpeg-6.0.tar.bz2 && \ tar xjvf ffmpeg-6.0.tar.bz2 && \ cd ffmpeg-6.0 5. 继续在终端中执行以下命令,配置FFmpeg的编译选项: PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" CFLAGS="-O3 -fPIC" ./configure \ --prefix="$HOME/ffmpeg_build" \ --pkg-config-flags="--static" \ --extra-cflags="-I$HOME/ffmpeg_build/include" \ --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ --extra-libs="-lpthread -lm" \ --bindir="$HOME/bin" \ --enable-gpl \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libx265 \ --enable-pic \ --enable-shared \ --enable-nonfree 6. 接下来,在终端中执行以下命令,编译并安装FFmpeg: PATH="$HOME/bin:$PATH" make && \ make install 7. 最后,执行以下命令以刷新终端的哈希值: hash -r 这样,您就成功在Ubuntu上安装了FFmpeg 6.0。请确保按照上述步骤逐一执行,并在每个步骤完成后继续执行下一个步骤。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值