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 installing appium_lib #78

Open
thuquynhpham opened this issue Feb 4, 2021 · 2 comments
Open

Error installing appium_lib #78

thuquynhpham opened this issue Feb 4, 2021 · 2 comments

Comments

@thuquynhpham
Copy link

I have a trouble install appium_lib: gem install -n /usr/local/bin appium_lib

it returns errors:

Building native extensions. This could take a while...
ERROR:  Error installing appium_lib:
	ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.6.0/gems/websocket-driver-0.7.3/ext/websocket-driver
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20210204-29857-kx6gbj.rb extconf.rb
creating Makefile

current directory: /Library/Ruby/Gems/2.6.0/gems/websocket-driver-0.7.3/ext/websocket-driver
make DESTDIR\= clean

current directory: /Library/Ruby/Gems/2.6.0/gems/websocket-driver-0.7.3/ext/websocket-driver
make DESTDIR\=
make: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin19/ruby/config.h', needed by `websocket_mask.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/websocket-driver-0.7.3 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/websocket-driver-0.7.3/gem_make.out
@jcoglan
Copy link
Collaborator

jcoglan commented Feb 4, 2021

I don't have any experience using the macOS system Ruby; most users typically install Ruby using rvm, rbenv or ruby-install. However, recently the most common cause of build failures for me is that macOS has uninstalled Xcode and all associated C headers as part of a software update, and I need to reinstall Xcode to get anything to build again.

Which version of macOS are you running?

@jcoglan
Copy link
Collaborator

jcoglan commented Jun 15, 2021

Is this an ongoing problem, or can we close this issue? I am mostly not equipped to deal with compiler errors but here's what I've been telling most issues like this:

We don't do anything special with the extension config, we just tell rubygems about it:

For development we use rake-compiler to build.

I'm not able to provide support for OSes other than Ubuntu and macOS, but usually compiler issues aren't to do with this gem specifically but some other problem with the environment gems are being compiled in.

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