0

我想安装latex2html,它抱怨找不到dbmopen

$ ./configure 
loading cache ./config.cache
checking for perl... /usr/bin/perl
checking whether #! works in shell scripts... yes
launching proprietary configuration...

config.pl, Release 2006-1 (Revision )
Accompanies LaTeX2HTML, (C) 1999 GNU Public License.

checking for old config file (cfgcache.pm)... not found (ok)
checking for platform... linux (assuming unix)
checking for /usr/bin/perl... /usr/bin/perl
checking perl version... 5.010001
checking if perl supports some dbm... no
Error: Perl reported DBM error: dbmopen failed
LaTeX2HTML needs some DBM.

我在 ubuntu 11.4 上,不知道从哪里得到dbmopen(或者这到底是什么)。我应该怎么做才能继续?

4

1 回答 1

1

这很奇怪,dbmopen是 Perl 5 中的核心功能。尝试在命令行上运行它:

perl -le 'dbmopen my %h, "/tmp/foo", 0600 or die $!; $h{foo} = 5; print $h{foo}'

如果它打印5到屏幕上,那么你有dbmopen并且它可以工作(我完全希望是这种情况)。我不知道latex2html它的配置脚本在做什么,但是如果上面的代码有效,那一定是有问题。这可能是权限错误,dbmopen创建了一个文件,因此您可能需要检查该文件的创建位置以及您是否有权在此处创建文件。

于 2011-07-27T11:01:19.013 回答