
TexLive-Utility로 tlmgr을 업데이트하려고 했지만 kpsewhich를 찾지 못했습니다. 그래도 내 bash PATH에 있기 때문에 이유를 잘 모르겠습니다.
$which kpsewhich
/usr/texbin/kpsewhich
뿐만 아니라 TeXLive-Utility가 자체 환경을 위해 생성하는 PATH에 있지만 로그 파일에는 두 개의 다른 PATH 변수가 표시됩니다... 다음은 로그입니다(일부 개인 정보가 수정됨).
2014-12-26 02:38:24 +0000 Notice -[TLMAppController _checkSystemPythonVersion][3465] Using Python interpreter at '/usr/bin/python'
Python version: 2.7.6 (default, Sep 9 2014, 15:04:36)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
2014-12-26 02:38:24 +0000 Notice -[TLMAppController _checkProcessUmask][3465] Process umask = 022
2014-12-26 02:38:24 +0000 Notice -[TLMAppController applicationDidFinishLaunching:][3465] Welcome to TeX Live Utility 1.17, running under Mac OS X Version 10.10.1 (Build 14B25) with 4/4 processors active and 8.0 GB physical memory.
2014-12-26 02:38:24 +0000 Notice +[TLMEnvironment updateEnvironment][3465] Setting up a new environment for /usr/local/texlive/2014…
2014-12-26 02:38:24 +0000 Notice +[TLMEnvironment updatePathEnvironment][3465] Using PATH = "(
"/usr/local/bin",
"/usr/bin",
"/bin",
"/usr/sbin",
"/sbin",
"/usr/texbin"
)"
2014-12-26 02:38:24 +0000 Notice +[TLMEnvironment updatePathEnvironment][3465] /usr/bin/env
PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/texbin
DISPLAY=/private/tmp/com.apple.launchd.EwTEw7Hhie/org.macosforge.xquartz:0
DBUS_LAUNCHD_SESSION_BUS_SOCKET=/private/tmp/com.apple.launchd.Mg3IUoeulu/unix_domain_listener
PATH=/usr/bin:/bin:/usr/sbin:/sbin
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.pyOdcu5mIa/Listeners
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.UmmBWlY0EC/Render
SHELL=/bin/bash
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
TMPDIR=/var/folders/bh/xqbvhy9j1hg21kb0bh_mm8jc0000gn/T/
XPC_SERVICE_NAME=0
DISPLAY=/private/tmp/com.apple.launchd.EwTEw7Hhie/org.macosforge.xquartz:0
DBUS_LAUNCHD_SESSION_BUS_SOCKET=/private/tmp/com.apple.launchd.Mg3IUoeulu/unix_domain_listener
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.pyOdcu5mIa/Listeners
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.UmmBWlY0EC/Render
XPC_FLAGS=0x0
SHELL=/bin/bash
TMPDIR=/var/folders/bh/xqbvhy9j1hg21kb0bh_mm8jc0000gn/T/
2014-12-26 02:38:25 +0000 Notice +[TLMEnvironment _getInstalledYear:isDevelopmentVersion:tlmgrVersion:][3465] Looks like you're using TeX Live 2014
2014-12-26 02:38:25 +0000 Notice -[TLMEnvironment _checkForRootPrivileges][3465] Root permission required for installation at /usr/local/texlive/2014
2014-12-26 02:38:25 +0000 Notice +[TLMEnvironment updateEnvironment][3465] Nothing to update for /usr/local/texlive/2014
2014-12-26 02:38:25 +0000 Notice -[TLMLogWindowController awakeFromNib][3465] Loaded log window controller
2014-12-26 02:38:25 +0000 Notice -[TLMDatabase _downloadDatabaseHead][3465] Checking the repository version. Please be patient.
2014-12-26 02:38:25 +0000 Notice -[TLMDatabase _downloadDatabaseHead][3465] Downloading at least 2048 bytes of tlpdb for a version check…
2014-12-26 02:38:26 +0000 Notice -[TLMDatabase connection:willSendRequest:redirectResponse:][3465] redirected request to http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb
2014-12-26 02:38:26 +0000 Notice -[TLMDatabase _downloadDatabaseHead][3465] Downloaded 130749 bytes of tlpdb for version check
2014-12-26 02:38:27 +0000 Notice -[TLMEnvironment _getValidServerURL:repositoryYear:][3465] Repository version appears to be 2014; a young TeX Live
2014-12-26 02:38:27 +0000 Notice -[TLMMainWindowController _refreshLocalDatabase][3465] Updating local package database
2014-12-26 02:38:27 +0000 Notice -[TLMMainWindowController _refreshUpdatedPackageListFromLocation:][3465] Refreshing list of updated packages…
2014-12-26 02:38:34 +0000 Notice -[TLMMainWindowController _paperSizeCheckTerminated:][3465] System paper size = a4, pdftex paper size = (null)
2014-12-26 02:38:39 +0000 Notice -[TLMOperation main][3465] Successfully executed `/usr/texbin/tlmgr --machine-readable --repository http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/ update --list --all`
2014-12-26 02:38:39 +0000 Notice -[TLMOperation main][3465] tlmgr: package repository http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/
===============================================================================
tlmgr itself needs to be updated.
Please do this via either
tlmgr update --self
or by getting the latest updater for Unix-ish systems:
http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
and/or Windows systems:
http://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.exe
Then continue with other updates as usual.
===============================================================================
2014-12-26 02:38:42 +0000 Notice -[TLMMainWindowController _handleListUpdatesFinishedNotification:][3465] Critical updates detected: (
"texlive.infra"
)
2014-12-26 02:39:01 +0000 Notice -[TLMMainWindowController _isCorrectDatabaseVersionAtURL:][3465] Checking database version in case preferences have been changed…
2014-12-26 02:39:01 +0000 Notice -[TLMMainWindowController _updateAllPackagesFromRepository:][3465] Beginning infrastructure update from http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/
2014-12-26 02:39:01 +0000 Notice -[TLMInfraUpdateOperation _synchronouslyDownloadURL:toPath:][3465] Downloading URL: http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh
2014-12-26 02:39:01 +0000 Notice -[TLMInfraUpdateOperation download:willSendRequest:redirectResponse:][3465] Download redirected to http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh, expecting 0 bytes.
2014-12-26 02:39:02 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveResponse:][3465] Will download 4794067 bytes…
2014-12-26 02:39:04 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveDataOfLength:][3465] Received 20% of 4794067 bytes…
2014-12-26 02:39:05 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveDataOfLength:][3465] Received 41% of 4794067 bytes…
2014-12-26 02:39:06 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveDataOfLength:][3465] Received 63% of 4794067 bytes…
2014-12-26 02:39:07 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveDataOfLength:][3465] Received 85% of 4794067 bytes…
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation downloadDidFinish:][3465] Download of 4794067 bytes complete
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation _downloadUpdateScript][3465] First line of downloaded file is: "#!/bin/sh"…good!
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation _synchronouslyDownloadURL:toPath:][3465] Downloading URL: http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh.sha256
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation download:willSendRequest:redirectResponse:][3465] Download redirected to http://mirror.ox.ac.uk/sites/ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh.sha256, expecting 0 bytes.
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveResponse:][3465] Will download 89 bytes…
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation download:didReceiveDataOfLength:][3465] Received 100% of 89 bytes…
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation downloadDidFinish:][3465] Download of 89 bytes complete
2014-12-26 02:39:08 +0000 Notice -[TLMInfraUpdateOperation _downloadAndCheckHash][3465] SHA256 signature looks okay
2014-12-26 02:39:08 +0000 Notice -[TLMAuthorizedOperation main][3465] Checking code signature before running tlu_ipctask as root…
2014-12-26 02:39:08 +0000 Notice /usr/bin/codesign[3465] /Applications/TeX/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: valid on disk
/Applications/TeX/TeX Live Utility.app/Contents/MacOS/tlu_ipctask: satisfies its Designated Requirement
2014-12-26 02:39:08 +0000 Notice -[TLMAuthorizedOperation main][3465] Signature was valid, okay to run tlu_ipctask
2014-12-26 02:39:14 +0000 Notice -[TLMAuthorizedOperation main][3465] Invoking privileged task via AuthorizationExecuteWithPrivileges
2014-12-26 02:39:14 +0000 Notice tlu_ipctask[3664] dropped privileges to user nobody
2014-12-26 02:39:15 +0000 Notice -[TLMAuthorizedOperation setWrapperPID:][3465] tlu_ipctask checking in: tlu_ipctask pid = 3664
2014-12-26 02:39:16 +0000 Notice -[TLMAuthorizedOperation setUnderlyingPID:][3465] tlu_ipctask checking in: pid = 3665 (/var/folders/bh/xqbvhy9j1hg21kb0bh_mm8jc0000gn/T/TLMInfraUpdateOperation.LUkU1n/update-tlmgr-latest.sh --nox11)
2014-12-26 02:39:16 +0000 Notice tlu_ipctask[3664] tlu_ipctask: child HOME = '/var/root'
2014-12-26 02:39:16 +0000 Notice tlu_ipctask[3664] tlu_ipctask: current HOME = '/var/empty'
2014-12-26 02:39:16 +0000 Notice tlu_ipctask[3664] Verifying archive integrity... All good.
2014-12-26 02:39:16 +0000 Notice tlu_ipctask[3664] Uncompressing TeX Live Manager Updater......................................................................................................................................................................................
그러나 주요 문제는 설치 스크립트 "runme.sh"가 시작될 때 발생합니다.
2014-12-26 02:39:16 +0000 Warning tlu_ipctask[3664] ./runme.sh: line 11: kpsewhich: command not found
2014-12-26 02:39:16 +0000 Warning tlu_ipctask[3664] ./runme.sh: Cannot find TeX Live root using kpsewhich --var-value=SELFAUTOPARENT.
2014-12-26 02:39:16 +0000 Warning tlu_ipctask[3664] ./runme.sh: Please set your PATH as needed, otherwise it's hopeless.
2014-12-26 02:39:16 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][3465] kqueue noted that pid 3665 exited (/var/folders/bh/xqbvhy9j1hg21kb0bh_mm8jc0000gn/T/TLMInfraUpdateOperation.LUkU1n/update-tlmgr-latest.sh --nox11)
2014-12-26 02:39:16 +0000 Notice tlu_ipctask[3664] child process pid = 3665 exited
2014-12-26 02:39:17 +0000 Error tlu_ipctask[3664] Value of errno is No such file or directory
2014-12-26 02:39:17 +0000 Error tlu_ipctask[3664] *** ERROR *** exit status of pid = 3665 was 1
2014-12-26 02:39:17 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][3465] waitpid returned 3664, WIFEXITED(256) = 1, errno = 93 (Attribute not found)
2014-12-26 02:39:17 +0000 Notice -[TLMAuthorizedOperation _runUntilChildExit][3465] kqueue noted that tlu_ipctask (pid = 3664) exited with status 1
2014-12-26 02:39:18 +0000 Notice -[TLMInfraUpdateOperation main][3465] Removed temp directory "/var/folders/bh/xqbvhy9j1hg21kb0bh_mm8jc0000gn/T/TLMInfraUpdateOperation.LUkU1n"
문제는 TexLive-Utility가 여기에서 어떤 PATH 변수를 사용하는지(환경에 두 번 나열되어 있음), 그리고 자체 환경을 구성할 때 TeXLive-Utility가 권장하는 것처럼 어떻게 "설정"할 수 있느냐는 것입니다.
답변1
이는 일시적인 문제이며 TeX Live 업스트림에 보고되었습니다. TeX Live 유틸리티는 다음을 사용합니다.업데이트-tlmgr-최신.sh의 역사적 문제로 인해 업데이트를 수행해야 합니다 tlmgr update --self
.
TLU 관리자로서 사용자는 서버에서 수정될 때까지 기다리는 것이 좋지만 일부 패키지 업데이트가 절실하다면 터미널에서 업데이트 명령을 실행할 수 있습니다.
편집: TeX Live 팀에 따르면 이 문제는 이제 수정되었습니다. 수정된 버전은 지금쯤 모든 CTAN 미러에 있을 것입니다.
Option 키를 누른 채 작업 메뉴를 선택하고 "중요 저장소에서 TeX Live Manager 설치" 항목을 선택하면 문제를 해결할 수 있습니다. 일부 사용자는 이 방법으로 다운로드가 실패했다고 보고합니다.
이제 이 질문을 주제에서 벗어난 질문으로 표시해야 합니까? 아마도 나보다 점수가 높은 사람이 그렇게 할 수 있을 것 같은데…