MacOSX SnowLeopard 上 MacPorts perl 5.12.3 的 AppendToPath 文件

发布于 2024-11-04 00:44:45 字数 1239 浏览 0 评论 0原文

我正在尝试在我的 MacBook Pro 上安装 html2latex。我使用 MacPorts perl,v. 5.12.3。当我安装 HTML/Latex.pm 模块时,它已安装到

/opt/local/lib/perl5/site_perl/5.12.3

但 perl 5.12.3 似乎没有找到它。当我运行 html2latex 时,出现错误:

jrmMac 6: html2latex workflow-in-r.html
Can't locate HTML/Latex.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at /Users/jrminter/bin/html2latex line 81.

但请注意同一 shell 中 perl -v 的输出

jrmMac 8: perl -v
This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-multi-2level

在我的网络搜索中,人们通常会将此目录添加到相应的 AppendToPath 文件中。我似乎可以在 /opt/local 中找到一个。 MaxOSX 提供的 perl 具有其他版本的文件:

/Library/Perl/5.10.0/AppendToPath
/Library/Perl/5.8.9/AppendToPath

我应该作弊并将其添加到 5.10.0 AppendToPath 文件吗?我对这个想法并不热衷。为什么从我的 shell 运行 Latex2hml 会得到不同的 Perl?我(显然)很困惑......并且希望得到任何指点。

I am trying to install html2latex on my MacBook Pro. I use the MacPorts perl, v. 5.12.3. When I install the HTML/Latex.pm module, it is installed to

/opt/local/lib/perl5/site_perl/5.12.3

but perl 5.12.3 doesn't seem too find it. When I run html2latex I get the error:

jrmMac 6: html2latex workflow-in-r.html
Can't locate HTML/Latex.pm in @INC (@INC contains: /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at /Users/jrminter/bin/html2latex line 81.

but note the output of perl -v from the same shell

jrmMac 8: perl -v
This is perl 5, version 12, subversion 3 (v5.12.3) built for darwin-multi-2level

In my web searches, people usually add this directory to the appropriate AppendToPath file. I can's seem to find one in /opt/local. The perl supplied with MaxOSX has files for other versions in:

/Library/Perl/5.10.0/AppendToPath
/Library/Perl/5.8.9/AppendToPath

Should I just cheat and add it to the 5.10.0 AppendToPath file? I'm not wild about this idea. Why would latex2hml run from my shell get a different perl? I am (obviously) confused... and would appreciate any pointers.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

☆獨立☆ 2024-11-11 00:44:45

当您安装模块时,将路径添加到 @INC 似乎很自然,但也许出了问题。这似乎是一个有用的链接:

http://www.brandonhutchinson.com/perl_inc.html

It would seem natural that the path is added to @INC when you install the module, but perhaps something went wrong. This seems to be a helpful link:

http://www.brandonhutchinson.com/perl_inc.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文