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

Cant install nokogiri gem. Please advice #1884

Closed
acidphuck opened this issue Mar 28, 2019 · 4 comments
Closed

Cant install nokogiri gem. Please advice #1884

acidphuck opened this issue Mar 28, 2019 · 4 comments

Comments

@acidphuck
Copy link

"arm-linux-androideabi-clang -o conftest -I/data/data/com.termux/files/usr/include/ruby-2.6.0/arm-linux-androideabi -I/data/data/com.termux/files/usr/include/ruby-2.6.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.6.0 -I. -I/data/data/com.termux/files/usr/include -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -Oz -fPIC conftest.c -L. -L/data/data/com.termux/files/usr/lib -L. -L/data/data/com.termux/files/usr/lib -march=armv7-a -landroid-support -fstack-protector-strong -rdynamic -Wl,-export-dynamic -lruby -lm -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char *argv)
4: {
5: return 0;
6: }
/
end */

"arm-linux-androideabi-clang -I/data/data/com.termux/files/usr/include/ruby-2.6.0/arm-linux-androideabi -I/data/data/com.termux/files/usr/include/ruby-2.6.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.6.0 -I. -I/data/data/com.termux/files/usr/include -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -Oz -fPIC -Werror -c conftest.c"
checked program was:
/* begin /
1: #include "ruby.h"
2:
3: int main() {return 0;}
/
end */

"pkg-config --exists libxml-2.0"
WARNING: linker: Unsupported flags DT_FLAGS_1=0x8
| pkg-config --libs libxml-2.0
=> "Warning: linker: Unsupported flags DT_FLAGS_1=0x8\n"
=> "-L/data/data/com.termux/files/usr/lib -lxml2\n"
"arm-linux-androideabi-clang -o confteI/data/data/com.termux/files/usr/include/ruby-2.6.0/arm-linux-androideabi -I/data/data/com.termux/files/usr/include/ruby-2.6.0/ruby/backward -I/data/data/com.termux/files/usr/include/ruby-2.6.0 -I. -I/data/data/com.termux/files/usr/include -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -Oz -fPIC -g -DXP_UNIX conftest.c -L. -L/data/data/com.termux/files/usr/lib -L. -L/data/data/com.termux/files/usr/lib -march=armv7-a -landroid-support -fstack-protector-strong -rdynamic -Wl,-export-dynamic -lruby WARNING: linker: Unsupported flags DT_FLAGS_1=0x8
-L/data/data/com.termux/files/usr/lib -lxml2 -lm -lc "
clang-7: error: no such file or directory: 'WARNING:'
clang-7: error: no such file or directory: 'linker:'
clang-7: error: no such file or directory: 'Unsupported'
clang-7: error: no such file or directory: 'flags'
clang-7: error: no such file or directory: 'DT_FLAGS_1=0x8'
sh: 2: -L/data/data/com.termux/files/usr/lib: not found
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char *argv)
4: {
5: return 0;
6: }
/
end */

package configuration for libxml-2.0 is not found
have_package: checking for libxml-2.0... -------------------- yes


@andrewmcodes
Copy link

andrewmcodes commented Mar 29, 2019

Don’t want to open a new issue that duplicates this but wish some more context had been added here as I am also experiencing this issue.

I’m on the latest version of MaOS and cannot bundle or gem install the latest release of this gem with a very similar error. Happy to provide more info if needed.

EDIT: I solved this issue by following these instructions: frida/frida#338 (comment)

@flavorjones
Copy link
Member

Hi, I wish you had used the template offered by github for installation issues. There are both helpful hints in it and it asks the appropriate questions for us to be able to start helping you.

It appears you're trying to build Nokogiri on an ARM platform of some sort; can you please answer the questions from the issue template:


Have you read and followed the advice in the installation tutorial at http://www.nokogiri.org/tutorials/installing_nokogiri.html?

What is the complete output of gem install?

Please make sure the escape the file contents with triple-backticks.

What are the complete contents of the mkmf.log file generated during the failed installation?

Please make sure the escape the file contents with triple-backticks.

What operating system are you using?

Are you using Linux, MacOS, Windows, a BSD variant, or something else entirely?

If MacOS, please note the version of XCode you have installed.

If Linux, please include the output of uname -a and the contents of /etc/lsb-release.

If Windows, please note whether you're installing the precompiled gems, or compiling yourself with DevKit. Also please note the version of RubyInstaller you've installed.

@flavorjones
Copy link
Member

flavorjones commented Mar 30, 2019

@andrewmcodes your issue probably was not the same as the OP if you are on MacOS. The issue you probably ran into, and that the linked issue addresses, was fixed in v1.9.0 (see #1812 and #1813).

@andrewmcodes
Copy link

@flavorjones gotcha! My issue popped up after upgrading some brew packages and then trying to bundle v1.10.2 but looks like it was just bc of my local setup

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

3 participants