Menu

#2487 "problematic" setting of "$HOME/.miktex" during the build

None
open
nobody
None
2016-09-18
2016-05-20
No

When building MiKTeX on OS X with a package manager, the package manager would run a build under a special user without write permissions to user's folder (which is a proper thing to do). The problem is that MiKTeX then blindly assumes that $HOME/.miktex should be fine. It might be OK, but not while building the package.

This is the error I get:

[ 53%] Generating tfmin.c
cd /path/to/miktex/work/build/Programs/TeXAndFriends/mplib && /path/to/miktex/work/build/binlib/ctangle /path/to/miktex/work/miktex-2.9-2016-05-18/Programs/TeXAndFriends/mplib/source/tfmin
log4cxx: No appender could be found for logger (ctangle).
log4cxx: Please initialize the log4cxx system properly.
14 [0x7fff7a1e0000] INFO initexmf null - starting: MiKTeX Configuration Utility 2.9.5900 (MiKTeX 2.9)
14 [0x7fff7a1e0000] INFO initexmf null - Creating fndb for user root directory (/Users/username/.miktex/texmfs/config)...
30 [0x7fff7a1e0000] FATAL initexmf null - Permission denied: path="/Users/username/.miktex"
30 [0x7fff7a1e0000] FATAL initexmf null - Info: path="/Users/username/.miktex"
30 [0x7fff7a1e0000] FATAL initexmf null - Source: Libraries/MiKTeX/Core/unx/unx.cpp
30 [0x7fff7a1e0000] FATAL initexmf null - Line: 87

Sorry, but "MiKTeX Configuration Utility" did not succeed.

You may want to visit the MiKTeX project page, if you need help.

Sorry, but /path/to/miktex/work/build/binlib/ctangle did not succeed.

You may want to visit the MiKTeX project page, if you need help.
make[2]: *** [Programs/TeXAndFriends/mplib/tfmin.c] Error 1
make[1]: *** [Programs/TeXAndFriends/mplib/CMakeFiles/mp-static.dir/all] Error 2
make: *** [all] Error 2

Discussion

MongoDB Logo MongoDB