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

nokogiri gem install probelm #69

Closed
robertvalik opened this issue Nov 29, 2015 · 9 comments
Closed

nokogiri gem install probelm #69

robertvalik opened this issue Nov 29, 2015 · 9 comments
Labels
ruby Issue is about Ruby related stuff, including gem

Comments

@robertvalik
Copy link
Contributor

When trying to install gollum

   gem install gollum

One of the dependencies fails. I get this error in /data/data/com.termux/files/usr/lib/ruby/gems/2.2.0/extensions/x86-linux/2.2.0/nokogiri-1.6.6.4/mkmf.log:

    cat mkmf.log
    "i686-linux-android-gcc -o conftest -I/data/data/com.termux/files/usr/include/ruby-2.2.0/i686-linux-android -I/data/data/com.termux/files/usr/include/ruby-2.2.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.2.0 -I. -I/data/data/com.termux/files/usr/include   -specs=/home/fornwall/dc/termux.spec -march=i686 -msse3 -mstackrealign -mfpmath=sse -Os -fPIC  conftest.c  -L. -L/data/data/com.termux/files/usr/lib -L. -specs=/home/fornwall/dc/termux.spec -L/data/data/com.termux/files/usr/lib -fstack-protector -rdynamic -Wl,-export-dynamic     -lruby  -lgmp -ldl -lm   -lc "
    i686-linux-android-gcc: error: /home/fornwall/dc/termux.spec: No such file or directory
    checked program was:
    /* begin */
    1: #include "ruby.h"
    2:
    3: int main(int argc, char **argv)
    4: {
    5:   return 0;
    6: }
    /* end */
@fornwall
Copy link
Member

fornwall commented Nov 29, 2015

Thanks, it was a mistake in the configuration of the x86 ruby package which now has been fixed (run apt update && apt upgrade to get the updated ruby x86 package)!

After installing the following packages:

apt install ruby-dev libxslt-dev pkg-config make clang

I can now install nokogiri with:

gem install nokogiri -- --use-system-libraries

The reason that --use-system-libraries is needed is that otherwise nokogiri tries to build a bundled version of libxml2, which won't work due to scripts there assuming that /bin/ exists (which it doesn't on Android). Linking against the system libraries should however be fine and just save space, since the libxml2 package in Termux contains the patches from upstream that nokogiri wants!

@Neo-Oli Neo-Oli added the ruby Issue is about Ruby related stuff, including gem label Feb 17, 2017
@ghost
Copy link

ghost commented Jul 25, 2017

Anyone can help me? To install gems
$ gem install nokogiri -- --use-system-libraries
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen - /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.0/.autotest

@Auxilus
Copy link
Contributor

Auxilus commented Jul 26, 2017

Try rm -r /data/data/com.termux/files/usr/lib/ruby/gems/2.4.0/gems/nokogiri-1.8.0 then apt update && apt upgrade
gem install nokogiri -- --use-system -libraries
If it fails , and if you have rooted then try to run it under root authority

@helchiro
Copy link

helchiro commented Apr 4, 2018

Bonsoir j'ai problème sur l'installation de mon payloads.bash: ./msfconsole: No such file or directory.

@Ahmedroid
Copy link

For all who have a problem in nokogiri error !!!!
Just type
gem install pkg-config
Then
bundle install

Enjoy

@technicalverma
Copy link

i am aman

@jakoma1
Copy link

jakoma1 commented Jan 7, 2019

1: from /data/data/com.termux/files/usr/lib/ruby/2.5.0/rubygems.rb:308:in activate_bin_path' /data/data/com.termux/files/usr/lib/ruby/2.5.0/rubygems.rb:289:in find_spec_for_exe': can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
$

@jigarpunadiya
Copy link

jakoma1

Im also having the same issue

@bebo74
Copy link

bebo74 commented Jan 21, 2019

And i am

@ghost ghost locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ruby Issue is about Ruby related stuff, including gem
Projects
None yet
Development

No branches or pull requests

10 participants