RVM install issue - Unable to execute port (autoco

2019-04-11 22:11发布

I'm trying to install Jekyll on OSX mountain lion. First of all I wanted to install RVM and then the latest ruby. However, the RVM install is failing and I can't solve the problem. Any help appreciated

Here is what I did:

  • Installed OSX Command Line Tools
  • Attempted to install RVM (\curl -L https://get.rvm.io | bash -s stable --ruby) but it failed with an error in the log "Error: Please install Xcode and/or run xcode-select to specify its location."
  • Installed XCode to see if that would help (realise now I could have used xcode-select oh well)
  • Attempted to install RVM again but it failed again, see error below

Last lines of install output including error:

Installing required packages: autoconf, automake, libtool, pkgconfig, apple-gcc42, libiconv, libyaml, libffi, readline, libxml2, libxslt, libksba, openssl, curl-ca-bundle, sqlite3, zlib, gdbm, ncurses...

Error running 'requirements_osx_port_libs_install autoconf automake libtool pkgconfig apple-gcc42 libiconv libyaml libffi readline libxml2 libxslt libksba openssl curl-ca-bundle sqlite3 zlib gdbm ncurses', please read /Users/xxx/.rvm/log/1371125385_package_install_autoconf_automake_libtool_pkgconfig_apple-gcc42_libiconv_libyaml_libffi_readline_libxml2_libxslt_libksba_openssl_curl-ca-bundle_sqlite3_zlib_gdbm_ncurses.log

I opened the error log and it states:

Error: Unable to execute port: Could not open file: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/autoconf/Portfile

This is probably obvious to someone else but frankly I'm not sure what I'm supposed to do to fix it!

标签: ruby macos rvm
1条回答
你好瞎i
2楼-- · 2019-04-11 22:30

Installing homebrew and then running rvm autolibs brew, then rvm requirements fixed my problem. I was then successfully able to install the latest ruby (rvm install 2.0.0-p195).

Still think it's hilarious I've installed Xcode, rvm, homebrew and ruby just to build a static html site :-)

查看更多
登录 后发表回答