scttnlsn/dandelion

macOS Catalina

Closed this issue · 2 comments

I updated to macOS Catalina and after trying a deploy I get:

-bash: /usr/local/bin/dandelion: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby: bad interpreter: No such file or directory

I already downloaded and install command line tools for Xcode 11 beta.

Anyone with the same problem that can share a fix?

Any help here? I am not able to make it work.

Tried to reinstall (sudo gem install dandelion) and got this:

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

    current directory: /Library/Ruby/Gems/2.6.0/gems/rugged-0.27.7/ext/rugged
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /Library/Ruby/Site/2.6.0 -r ./siteconf20190615-7038-1wtokav.rb extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h

You might have to install separate package for the ruby development
environment, ruby-dev or ruby-devel for example.

extconf failed, exit code 1

Gem files will remain installed in /Library/Ruby/Gems/2.6.0/gems/rugged-0.27.7 for inspection.
Results logged to /Library/Ruby/Gems/2.6.0/extensions/universal-darwin-19/2.6.0/rugged-0.27.7/gem_make.out

For anyone updating to macOS betas and Xcode betas here is the solution.

1- Select Xcode beta
sudo xcode-select -switch /Applications/Xcode-beta.app

2- Install dandelion in /usr/local/bin
sudo gem install -n /usr/local/bin dandelion

3- Install net-sftp gem
sudo gem install net-sftp

Done.