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

Comments

@robertvalik
Copy link
Contributor

commented Nov 29, 2015

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 fornwall closed this in 3a66382 Nov 29, 2015
@fornwall

This comment has been minimized.

Copy link
Member

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!

@ghost

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link
Contributor

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

This comment has been minimized.

Copy link

commented Apr 4, 2018

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

@Ahmedroid

This comment has been minimized.

Copy link

commented Jul 15, 2018

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

Enjoy

@technicalverma

This comment has been minimized.

Copy link

commented Aug 3, 2018

i am aman
@jakoma1

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

commented Jan 10, 2019

jakoma1

Im also having the same issue

@bebo74

This comment has been minimized.

Copy link

commented Jan 21, 2019

And i am

@termux termux 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.
Projects
None yet
10 participants
You can’t perform that action at this time.