Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installation #33

Open
Obi8 opened this issue Nov 19, 2016 · 6 comments
Open

Error installation #33

Obi8 opened this issue Nov 19, 2016 · 6 comments

Comments

@Obi8
Copy link

Obi8 commented Nov 19, 2016

I have a problem to install qml on my linux.
I follow this instructions: https://github.com/seanchas116/ruby-qml
If i run bundle install i became this:

shell-init: Kann das aktuelle Verzeichnis nicht wiederfinden: getwd: Kann auf das übergeordnete Verzeichnis nicht zugreifen.: No such file or directory /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:60:in getwd': No such file or directory - getcwd (Errno::ENOENT)
from /home//.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:60:in pwd' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:60:in block in pwd'
from /usr/share/ruby/monitor.rb:214:in mon_synchronize' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:59:in pwd'
from /home/
/.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:161:in search_up' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:148:in find_file'
from /home//.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:144:in find_gemfile' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/shared_helpers.rb:24:in default_gemfile'
from /home/
/.gem/ruby/gems/bundler-1.13.6/lib/bundler.rb:261:in default_gemfile' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler.rb:171:in root'
from /home//.gem/ruby/gems/bundler-1.13.6/lib/bundler.rb:183:in app_config_path' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler.rb:209:in settings'
from /home/
/.gem/ruby/gems/bundler-1.13.6/lib/bundler/env.rb:28:in report' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:74:in request_issue_report_for'
from /home//.gem/ruby/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:40:in log_error' from /home/****/.gem/ruby/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:102:in rescue in with_friendly_errors'
from /home/
/.gem/ruby/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in with_friendly_errors' from /home/****/.gem/ruby/gems/bundler-1.13.6/exe/bundle:26:in <top (required)>'
from /usr/bin/bundle:23:in load' from /usr/bin/bundle:23:in

'`

@Obi8
Copy link
Author

Obi8 commented Nov 19, 2016

Now i download master zip from this site.
Add in the gemfile gem 'qml'
Execute this code bundle install
Then comes this:

`[00:49 **** ~/Downloads/ruby-qml-master]$ bundle install
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...
Using json 2.0.2
Using docile 1.1.5
Using simplecov-html 0.10.0
Using tins 1.12.0
Using thor 0.19.1
Installing qml 1.0.2 with native extensions
Using bundler 1.13.6
Using simplecov 0.12.0
Using term-ansicolor 1.4.0
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory: /home/****/.gem/ruby/gems/qml-1.0.2/ext/qml

/usr/bin/ruby -r ./siteconf20161120-8140-3ptdj8.rb extconf.rb
checking for qmake... no

building libqmlbind...
make: *** Es wurden keine Ziele angegeben und keine „make“-Steuerdatei gefunden.
Schluss.
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}/lib64
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/$(RUBY_BASE_NAME)
--with-qmake
--without-qmake
--enable-debug
--disable-debug
--enable-clean
--disable-clean

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/home/****/.gem/ruby/extensions/x86_64-linux/2.3.0/qml-1.0.2/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /home/_/.gem/ruby/gems/qml-1.0.2 for
inspection.
Results logged to
/home/
_
/.gem/ruby/extensions/x86_64-linux/2.3.0/qml-1.0.2/gem_make.out

An error occurred while installing qml (1.0.2), and Bundler cannot
continue.
Make sure that gem install qml -v '1.0.2' succeeds before bundling.`

Can any one please explain what i must do to become qt bindings for ruby?

My system: Fedora 24 x86_64

@Obi8
Copy link
Author

Obi8 commented Nov 20, 2016

It works i make a gem update --system, install sqlite for fedora and install qml with bundle install.

But in ruby mine i became this error:
/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- qml (LoadError)

@Obi8 Obi8 changed the title Error installation with getwd Error installation Nov 20, 2016
@JijoBose
Copy link

JijoBose commented Dec 19, 2016

I use Ruby 2.3.3 installed in Rbenv (Ubuntu 16.04).

I tried to install using
gem install qml --with-qmake

and i get an error as,

ERROR: While executing gem ... (OptionParser::InvalidOption)
invalid option: --with-qmake

I'm not sure what to do with the dir in
--with-qmake=[dir]
Please help me with this

@seanchas116
Copy link
Owner

If gem install qml (without options) doesn't work, try gem install qml -- --with-qmake=/path/to/qmake (find where the qmake executable is and replace /path/to/qmake with its path).
It's important to add -- .

@emanuelgauler
Copy link

How to solve this problem?

In file included from src/metaobject.h:4:0,
from src/api_engine.cpp:3:
src/exporter.h:5:10: fatal error: private/qmetaobjectbuilder_p.h: No existe el archivo o el directorio
#include <private/qmetaobjectbuilder_p.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:495: fallo en las instrucciones para el objetivo 'api_engine.o'
make: *** [api_engine.o] Error 1
make: *** Se espera a que terminen otras tareas....
ERROR: Failed to build libqmlbind
*** extconf.rb failed ***

@shayneoneill
Copy link

@emanuelgauler did you ever solve this? I've got the exact same bug and I cant find any reference to what the solution is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants