我正在尝试安装Metasploit框架(不重要),而bundler正在尝试安装sqlite3,这是它一直失败的地方.安装了Sqlite3(在命令行执行sqlite3将我带入环境)并使用brew link sqlite3(并出于某种原因添加--force )进行链接,但bundler install每次都出现此错误:
sudo gem install sqlite3
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all
build scripts full access to your system.
checking for sqlite3.h... yes
checking for pthread_create() in -lpthread... yes
checking for sqlite3_libversion_number() in …Run Code Online (Sandbox Code Playgroud)