我正在尝试在 Ubuntu 14.04 LTS 中安装 MiKTeX。我正在逐个下载依赖项,但下面是我卡住的地方:
CMake Warning at /usr/share/cmake-2.8/Modules/FindQt4.cmake:659 (message):
/usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
QtCore could not be found there. Qt is NOT installed correctly for the
target build environment.
Call Stack (most recent call first):
CMakeLists.txt:347 (find_package)
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindCURL.cmake:54 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:354 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/user/Downloads/2.9/CMakeFiles/CMakeOutput.log".
See also "/home/user/Downloads/2.9/CMakeFiles/CMakeError.log".
至于 CURL,我确实有它。当我输入时,curl -V
我得到了以下内容:
curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP
另外,我应该安装什么 QT?
答案1
MikTeX 尚未针对 Ubuntu 进行打包,但如果你按照以下方法安装,安装起来相当容易:文档。
首先删除您可能手动安装的所有软件包(例如 CURL)。然后从存储库安装依赖项:
sudo apt-get install build-essential libcurl3-openssl-dev
配置和编译(在 MikTeX 源文件夹内):
./configure && make
最后安装它:
sudo make install