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

Installation fails with space in XCode path #2062

Closed
mycarrysun opened this issue Aug 12, 2020 · 2 comments
Closed

Installation fails with space in XCode path #2062

mycarrysun opened this issue Aug 12, 2020 · 2 comments

Comments

@mycarrysun
Copy link

Describe the bug

When XCode has a space in the file path (mine was /Applications/Xcode 11.4.1.app) the following command fails during installation:

/Applications/Xcode 11.4.1.app/Contents/Developer/usr/bin/make  all-recursive
make: /Applications/Xcode: No such file or directory

To Reproduce
This happens on bundle install when you have a space in the filename for Xcode on MacOS

Expected behavior

That nokogiri is installed successfully

Environment
MacOS Catalina 10.15.6
Ruby 2.6.5
Nokogiri 1.10.1

Solution?
I would imagine the solution to this is to surround the path in quotes when running the make command. If someone could point me in the direction of the install script I can put up a PR to fix.

@flavorjones
Copy link
Member

@mycarrysun Thanks for asking this question, and sorry you're having trouble.

Without more information from you, I can't be absolutely sure, but I believe the issue you're having is due to a commonly-reported issue with libxml2. See also #1407, #1427, #1289, #1175, and #1891.

I've created #2055 to document this problem. In the meantime, you may want to try to compile and link against your system libraries, or else re-install xcode into a directory without spaces.

Sorry I can't be of more help here.

@flavorjones
Copy link
Member

Long-term we hope to be able to provide pre-compiled libxml2 for popular platforms. See #1983 for some indication of where we're at on that (after Linux we'll tackle OSX).

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

2 participants