我正在尝试在Ubuntu 15.10(Wily)上安装ruby-qml。显然缺少一些先决条件:
:#> gem install qml
Building native extensions. This could take a while...
ERROR: Error installing qml:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
checking for qmake... yes
>>> building libqmlbind...
Project ERROR: Unknown module(s) in QT: qml quick
make: *** No targets specified and no makefile found. Stop.
ERROR: Failed to build libqmlbind
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby2.1
--with-qmake
--without-qmake
--enable-debug
--disable-debug
--enable-clean
--disable-clean
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/qml-1.0.2 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/qml-1.0.2/gem_make.out
我已经尝试安装一些常见的嫌疑人(build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev git-core subversion autoconf xorg-dev libgl1-mesa-dev libglu1-mesa-dev),但没有运气。
文档中没有提到Linux的先决条件。 缺少什么?
答案 0 :(得分:4)
您很可能缺少Qt包。通过以下错误行显示:
Project ERROR:QT中的未知模块:qml quick
使用以下方式安装:
sudo apt-get install libqt5qml5 libqt5quick5 qtdeclarative5-dev qt5-default
答案 1 :(得分:1)
安装libqt5quickparticles5
和qtdeclarative5-dev
有助于更进一步。然而,还有更多的缺失包。
qtcreator-plugin-ubuntu
有一个相当详尽的qt5编程有用依赖列表。安装它解决了我的麻烦。
答案 2 :(得分:1)
我已经按照上面提到的答案,但它没有单独工作。我找到了另一个答案here
所以在我的情况下,我已经安装了以下软件包,以便成功安装ruby-qml。
apt install libqt5qml5 libqt5quick5 qtdeclarative5-dev qt5-default qtbase5-private-dev
HTH