所以我尝试安装ruby 2.3.3并获悉:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
...
ruby-2.3.3/port_install.log Requirements installation failed with status: 56.
所以,我做了brew doctor
并告诉我:
Warning: You have MacPorts or Fink installed:
/opt/local/bin/port
This can cause trouble. You don't have to uninstall them, but you may want to
temporarily move them out of the way, e.g.
sudo mv /opt/local ~/macports
所以我跑:
sudo mv /opt/local ~/macports
然后我正在尝试安装ruby 2.3.3并且我有这个错误:
rvm install 2.3.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.13/x86_64/ruby-2.3.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx_port.
Installing macports - please wait
romenigld password required for 'make install':
Installing requirements for osx_port.
Updating system - please wait
Installing required packages: , autoconf, automake, libtool, pkgconfig, libiconv, libyaml, libffi, readline, libksba, openssl, sqlite3, zlib, gdbm, ncurses - please wait
There were package installation errors, make sure to read the log.
Error running 'requirements_osx_port_libs_install autoconf automake libtool pkgconfig libiconv libyaml libffi readline libksba openssl sqlite3 zlib gdbm ncurses',
please read /Users/romenigld/.rvm/log/1520277738_ruby-2.3.3/package_install__autoconf_automake_libtool_pkgconfig_libiconv_libyaml_libffi_readline_libksba_openssl_sqlite3_zlib_gdbm_ncurses.log
Requirements installation failed with status: 1.
在我没有这个问题之前,我已经安装了这个库,我需要做什么?
...更新
我跑:
rvm --debug requirements ruby
然后:
rvm install ruby-2.3.3
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.13/x86_64/ruby-2.3.3.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx_port.
Installing macports - please wait
romenigld password required for 'make install':
Certificates bundle '/opt/local/etc/openssl/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/romenigld/.rvm/rubies/ruby-2.3.3, this may take a while depending on your cpu(s)...
ruby-2.3.3 - #downloading ruby-2.3.3, this may take a while depending on your connection...
** Resuming transfer from byte position 786432
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 13.0M 100 13.0M 0 0 4602k 0 0:00:02 0:00:02 --:--:-- 4601k
ruby-2.3.3 - #extracting ruby-2.3.3 to /Users/romenigld/.rvm/src/ruby-2.3.3 - please wait
ruby-2.3.3 - #applying patch /Users/romenigld/.rvm/patches/ruby/ruby_2_3_gcc7.patch - please wait
ruby-2.3.3 - #applying patch /Users/romenigld/.rvm/patches/ruby/2.3.3/random_c_using_NR_prefix.patch - please wait
ruby-2.3.3 - #configuring - please wait
ruby-2.3.3 - #post-configuration - please wait
ruby-2.3.3 - #compiling - please wait
ruby-2.3.3 - #installing - please wait
ruby-2.3.3 - #making binaries executable - please wait
ruby-2.3.3 - #downloading rubygems-2.6.14
ruby-2.3.3 - #extracting rubygems-2.6.14 - please wait
ruby-2.3.3 - #removing old rubygems - please wait
ruby-2.3.3 - #installing rubygems-2.6.14 - please wait
ruby-2.3.3 - #gemset created /Users/romenigld/.rvm/gems/ruby-2.3.3@global
ruby-2.3.3 - #importing gemset /Users/romenigld/.rvm/gemsets/global.gems - please wait
ruby-2.3.3 - #generating global wrappers - please wait
ruby-2.3.3 - #gemset created /Users/romenigld/.rvm/gems/ruby-2.3.3
ruby-2.3.3 - #importing gemsetfile /Users/romenigld/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.3.3 - #generating default wrappers - please wait
ruby-2.3.3 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.3.3 - #complete
Please be aware that you just installed a ruby that requires 2 patches just to be compiled on an up to date linux system.
This may have known and unaccounted for security vulnerabilities.
Please consider upgrading to ruby-2.4.1 which will have all of the latest security patches.
Ruby was built without documentation, to build it run: rvm docs generate-ri
并且已安装。这是我第二次需要跑步:
rvm --debug requirements ruby
但是我遇到了另一个问题,例如:
brew update
remote: Repository not found.
fatal: repository 'https://github.com/amber-crystal/homebrew-amber/' not found
Error: Fetching /usr/local/Homebrew/Library/Taps/amber-crystal/homebrew-amber failed!
任何人都可以帮助我,我需要做什么?卸载并安装所有内容?