Я пытаюсь запустить программу Tcl, Сервер Sguil в Ubuntu 18.04.4 LTS.
После изменения файлов конфигурации в соответствии с инструкциями я запустил программу:
sudo ./sguild
Я получил следующую ошибку:
2020-05-10 15:13:29 Error: Failed to load package fileutil::magic::mimetype. fileutil::magic::mimetype is required for HTTPS/WSS.
Я подтвердил, что fileutil
доступен:
echo "puts [package req fileutil]" | tclsh
1.16
И что fileutil :: magic :: mimetype
недоступен:
echo "puts [package req fileutil::magic::mimetype]" | tclsh
can't find package fileutil::magic::mimetype
Я запустил следующее, что говорит о том, что fileutil
включен в tcllib
:
dpkg -S tcl | grep fileutil
tcllib: /usr/share/doc/tcllib/html/fileutil.html
tcllib: /usr/share/tcltk/tcllib1.19/fileutil/pkgIndex.tcl
tcllib: /usr/share/tcltk/tcllib1.19/fileutil
tcllib: /usr/share/tcltk/tcllib1.19/fileutil/multi.tcl
tcllib: /usr/share/tcltk/tcllib1.19/fileutil/traverse.tcl
tcllib: /usr/share/tcltk/tcllib1.19/fileutil/fileutil.tcl
tcllib: /usr/share/tcltk/tcllib1.19/fileutil/multiop.tcl
tcllib: /usr/share/tcltk/tcllib1.19/fileutil/decode.tcl
tcllib: /usr/share/man/man3/fileutil.3tcl.gz
Пакет tcllib
уже установлен:
apt list tcllib
Listing... Done
tcllib/bionic,bionic,now 1.19-dfsg-2 all [installed]
Любые идеи, почему fileutil :: magic :: mimetype
не загружается или что Пакет обеспечивает это?
As @steeldriver pointed out, the fileutil::magic::mimetype
library is no longer a part of the Tcl libraries, but its features are now available in fileutil::magic::filetype
. This library available in the tcllib
package.
(This appears to be a change in Tcl 8.6, the version available in the bionic repos for Ubuntu 18.04.4 LTS. I checked a CentOS 7 machine with Tcl 8.5 and the fileutil::magic::mimetype
library was present.)
In my case I was able to resolve the errors by updating references in the code for the Sguil application from fileutil::magic::mimetype
to fileutil::magic::filetype
.