我是 LaTeX 的初学者,我试图在我的 Mac 上安装 BasicTeX 软件包(版本 10.7.3)。一切顺利 -.zip
从 TUG 下载文件、解压 - 直到我真正开始安装软件包。
但是之后
我也尝试了 MacTeX,但也失败了。以下是完整 MacTex 的安装程序日志:
**Apr 11 20:39:04 William-Lius-MacBook-Pro installd[7796]: PackageKit: ----- Begin install -----**
**Apr 11 20:43:07 William-Lius-MacBook-Pro installd[7796]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Ghostscript-9.02.pkg”." UserInfo=0x7fd45e807e90 {NSFilePath=./postflight, NSURL=file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Ghostscript-9.02.pkg, PKInstallPackageIdentifier=org.tug.mactex.ghostscript9.02, NSLocalizedDescription=An error occurred while running scripts from the package “Ghostscript-9.02.pkg”.} {
NSFilePath = "./postflight";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cGhostscript-9.02.pkg\U201d.";
NSURL = "file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Ghostscript-9.02.pkg";
PKInstallPackageIdentifier = "org.tug.mactex.ghostscript9.02";
}**
**Apr 11 20:43:08 William-Lius-MacBook-Pro Installer[7783]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.**
**Apr 11 20:43:08 William-Lius-MacBook-Pro Installer[7783]: Displaying 'Install Failed' UI.**
**Apr 11 20:43:08 William-Lius-MacBook-Pro Installer[7783]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.**
我尝试取消选择 Ghostscript 包,但“GUI 应用程序”也出现了类似的问题,以下是完整日志:
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: @(#)PROGRAM:Install PROJECT:Install-686.3
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: @(#)PROGRAM:Installer PROJECT:Installer-530
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Hardware: MacBookPro8,1 @ 2.70 GHz (x 4), 4096 MB RAM
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Running OS Build: Mac OS X 10.7.3 (11D50b)
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: TMPDIR=/var/folders/r2/gx0svmcs5h95bd34kkrvzknr0000gn/T/
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: SHELL=/bin/bash
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: HOME=/Users/William
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: USER=William
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: LOGNAME=William
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: DISPLAY=/tmp/launch-NlNQAn/org.x:0
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: SSH_AUTH_SOCK=/tmp/launch-mwoggh/Listeners
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: Apple_Ubiquity_Message=/tmp/launch-wNPeC9/Apple_Ubiquity_Message
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: Apple_PubSub_Socket_Render=/tmp/launch-ZINUEC/Render
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: COMMAND_MODE=unix2003
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0:0
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: MacTeX-2011 Installation Log
Apr 11 21:06:12 William-Lius-MacBook-Pro Installer[7837]: Opened from: /Users/William/Downloads/MacTeX-2011.mpkg
Apr 11 21:07:03 William-Lius-MacBook-Pro Installer[7837]: InstallerStatusNotifications plugin loaded
Apr 11 21:08:18 William-Lius-MacBook-Pro Installer[7837]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (
"file://localhost"
)
Apr 11 21:08:25 William-Lius-MacBook-Pro runner[7847]: Administrator authorization granted.
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: ================================================================================
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: User picked Custom Install
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Choices selected for installation:
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Install: "MacTeX-2011"
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: MacTeX-2011.mpkg : org.tug.mactex.mactex2011 : 1.3.0.1.3
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Install: "GUI Applications"
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: GUI-Applications.pkg : org.tug.mactex.gui : 1.3.0.1.3
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Install: "ImageMagick Convert 6.6.9-3"
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: ImageMagick-Convert-6.6.9-3.pkg : org.tug.mactex.imagemagick-convert-6.6.9-3 : 1.3.0.1.3
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Install: "Latin Modern Fonts"
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Latin-Modern-Fonts.pkg : org.tug.mactex.latin-modern : 1.3.0.1.3
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: Install: "TeX Live 2011"
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: TeXLive-2011.pkg : org.tug.mactex.texlive2011 : 1.3.0.1.3
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: ================================================================================
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: It took 0.00 seconds to summarize the package selections.
Apr 11 21:08:25 William-Lius-MacBook-Pro Installer[7837]: -[IFPKGDerivedDocument sortedPackageLocations]: result = (
"file://localhost"
)
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: location = file://localhost
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/ImageMagick-Convert-6.6.9-3.pkg
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Latin-Modern-Fonts.pkg
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/TeXLive-2011.pkg
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: -[IFDInstallController(Private) _buildInstallPlan]: file://localhost/Users/William/Downloads/MacTeX-2011.mpkg
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Set authorization level to root for session
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Will use PK session
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Starting installation:
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Configuring volume "Macintosh HD"
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Preparing disk for local booted install.
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Free space on "Macintosh HD": 433.11 GB (433109905408 bytes).
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Create temporary directory "/var/folders/r2/gx0svmcs5h95bd34kkrvzknr0000gn/T//Install.7837eNj0ED"
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: IFPKInstallElement (6 packages)
Apr 11 21:08:26 William-Lius-MacBook-Pro Installer[7837]: Using authorization level of root for IFPKInstallElement
Apr 11 21:08:26 William-Lius-MacBook-Pro installd[7850]: PackageKit: ----- Begin install -----
Apr 11 21:08:26 William-Lius-MacBook-Pro installd[7850]: PackageKit: request=PKInstallRequest <6 packages, destination=/>
Apr 11 21:08:26 William-Lius-MacBook-Pro installd[7850]: PackageKit: packages=(
"PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg>",
"PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg>",
"PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/ImageMagick-Convert-6.6.9-3.pkg>",
"PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Latin-Modern-Fonts.pkg>",
"PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/TeXLive-2011.pkg>",
"PKJaguarPackage <file://localhost/Users/William/Downloads/MacTeX-2011.mpkg>"
)
Apr 11 21:08:27 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Apr 11 21:08:38 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/ImageMagick-Convert-6.6.9-3.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Apr 11 21:08:39 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/Latin-Modern-Fonts.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Apr 11 21:08:39 William-Lius-MacBook-Pro installd[7850]: PackageKit: Extracting file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/TeXLive-2011.pkg (destination=/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root, uid=0)
Apr 11 21:10:52 William-Lius-MacBook-Pro installd[7850]: PackageKit: Shoving /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/Cleanup At Startup/PKInstallSandbox-tmp/Root (3 items) to /
Apr 11 21:12:19 William-Lius-MacBook-Pro installd[7850]: PackageKit: Executing script "./postflight" in /Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg/Contents/Resources
Apr 11 21:12:22 William-Lius-MacBook-Pro installd[7850]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “GUI-Applications.pkg”." UserInfo=0x7ffb9d7e09f0 {NSFilePath=./postflight, NSURL=file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg, PKInstallPackageIdentifier=org.tug.mactex.gui, NSLocalizedDescription=An error occurred while running scripts from the package “GUI-Applications.pkg”.} {
NSFilePath = "./postflight";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cGUI-Applications.pkg\U201d.";
NSURL = "file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg";
PKInstallPackageIdentifier = "org.tug.mactex.gui";
}
Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “GUI-Applications.pkg”." UserInfo=0x7f9de9616730 {NSFilePath=./postflight, NSURL=file://localhost/Users/William/Downloads/MacTeX-2011.mpkg/Contents/Packages/GUI-Applications.pkg, PKInstallPackageIdentifier=org.tug.mactex.gui, NSLocalizedDescription=An error occurred while running scripts from the package “GUI-Applications.pkg”.}
Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: IFDInstallController E9535990 state = 7
Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: Displaying 'Install Failed' UI.
Apr 11 21:12:22 William-Lius-MacBook-Pro Installer[7837]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
我尝试修复硬盘权限,但问题依旧。即使我在安装完整版 MacTex 时只选择“TeX Live”,仍然会失败。
有人能帮忙解释一下这是怎么回事吗?卡在这个阶段有点令人沮丧。任何建议都将不胜感激。
答案1
Ars Technica 论坛上的某个人意识到了问题所在。我敢打赌,你使用 Unarchiver 解压了包含该.mpkg
文件的文件。显然,它的解压方式引入了某种损坏。如果你回去,不使用 Unarchiver,而是使用 Apple 自己的 Archive Utility,然后尝试使用新解压的进行安装.mpkg
,它应该可以正常工作。对我来说,它工作得很好。
答案2
Ghostcript 包似乎有问题。我不知道这是否可行,但您可以在“安装类型”中取消选择该包(可能您不需要 Ghostscript)。否则,您可以从互联网安装 Texlive(从终端命令行安装),然后安装编辑器。