Error: Failed to install Homebrew Portable Ruby (and your system version is too old) - macos

Hello Guys Can U help For Mac ?
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Already downloaded:
/Users/mda/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
Error: Checksum mismatch. Expected:
1f50bf80583bd436c9542d4fa5ad47df0ef0f0bea22ae710c4f04c42d7560bca
Actual:
65193ff2dfdd121466094ed9db6a01486f41b7d507c66be2862442fd617f9ced
Archive:
/Users/mda/Library/Caches/Homebrew/portable-ruby-2.6.8_1.el_capitan.bottle.tar.gz
To retry an incomplete download, remove the file above. Error: Failed
to install Homebrew Portable Ruby (and your system version is too
old)!

Related

Homebrew: Error running 'requirements_osx_brew_libs_install gcc#6' on Mac10.13.6

I can't install ruby 3.0.0 through my powershell, when I try rvm install 3.0.0 I receive a beautiful error:
Error running 'requirements_osx_brew_libs_install gcc#6',
please read /Users/ben/.rvm/log/1673079096_ruby-3.0.0/package_install_gcc#6.log
Requirements installation failed with status: 1.
I feel like I've tried everything to resolve this problem but without success.
-This is my gcc version:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 10.0.0 (clang-1000.10.44.4) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin
-homebrew version:
Homebrew 3.6.17-66-g974984d Homebrew/homebrew-core (git revision 0149ce7e63e; last commit 2023-01-07)
-rvm version:
rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
-ruby version:
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin17]
-which ruby:
/usr/bin/ruby
And when I run rvm install 3.0.0 this is what I receive:
Error: Invalid usage: This command requires at least 1 text or regex argument.
Usage: brew search, -S [options] text|/regex/ [...]
Perform a substring search of cask tokens and formula names for text. If
text is flanked by slashes, it is interpreted as a regular expression. The
search for text is extended online to homebrew/core and homebrew/cask.
--formula, --formulae Search online and locally for formulae.
--cask, --casks Search online and locally for casks.
--desc Search for formulae with a description
matching text and casks with a name or
description matching text.
--eval-all Evaluate all available formulae and casks,
whether installed or not, to search their
descriptions. Implied if HOMEBREW_EVAL_ALL is
set.
--pull-request Search for GitHub pull requests containing
text.
--open Search for only open GitHub pull requests.
--closed Search for only closed GitHub pull requests.
--repology Search for text in the given database.
--macports Search for text in the given database.
--fink Search for text in the given database.
--opensuse Search for text in the given database.
--fedora Search for text in the given database.
--archlinux Search for text in the given database.
--debian Search for text in the given database.
--ubuntu Search for text in the given database.
-d, --debug Display any debugging information.
-q, --quiet Make some output more quiet.
-v, --verbose Make some output more verbose.
-h, --help Show this message.
Error: Invalid usage: This command requires at least 1 text or regex argument.
Installing requirements for osx_brew.
Updating system..........
Installing required packages: gcc#6........There were package installation errors, make sure to read the log.
Try `brew tap --repair` and make sure `brew doctor` looks reasonable.
Check Homebrew requirements https://docs.brew.sh/Installation
.
Error running 'requirements_osx_brew_libs_install gcc#6',
please read /Users/benoitlardinois/.rvm/log/1673081014_ruby-3.0.0/package_install_gcc#6.log
Requirements installation failed with status: 1.
So, if I run brew install gcc#6, I receive:
Warning: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from MacHomebrew on Twitter.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
Warning: gcc#6 has been deprecated because it is deprecated upstream!
==> Fetching dependencies for gcc#6: isl, mpfr and libmpc
==> Fetching isl
==> Downloading https://raw.githubusercontent.com/Homebrew/formula-patches/03cf8088210822aa2c1ab544ed
Already downloaded: /Users/benoitlardinois/Library/Caches/Homebrew/downloads/195208ba31cadc265ea97bb8aad4e78caab1200daf4d855e6c839b5f987f92db--configure-big_sur.diff
==> Downloading https://libisl.sourceforge.io/isl-0.25.tar.xz
Already downloaded: /Users/benoitlardinois/Library/Caches/Homebrew/downloads/dce6d1ed4d25c923a4ad350c4b9cdf03406f649cd55be8c385814703502b5c81--isl-0.25.tar.xz
==> Fetching mpfr
==> Downloading https://ftp.gnu.org/gnu/mpfr/mpfr-4.2.0.tar.xz
Already downloaded: /Users/benoitlardinois/Library/Caches/Homebrew/downloads/2b7a1efec00f58b200d550146d18563516f005674020aa39ca2cd6666cb1d215--mpfr-4.2.0.tar.xz
==> Fetching libmpc
==> Downloading https://ftp.gnu.org/gnu/mpc/mpc-1.3.1.tar.gz
Already downloaded: /Users/benoitlardinois/Library/Caches/Homebrew/downloads/22a255b07a458ea7bd9717c0d1509282a69135dd842aa6b64144820c50bfd208--mpc-1.3.1.tar.gz
==> Fetching gcc#6
==> Downloading https://ftp.gnu.org/gnu/gcc/gcc-6.5.0/gcc-6.5.0.tar.xz
Already downloaded: /Users/benoitlardinois/Library/Caches/Homebrew/downloads/0a7c1b4768113746153c6e06f4ea6b2abf2d8ba48a68bf28f7c686b70117540e--gcc-6.5.0.tar.xz
==> Installing dependencies for gcc#6: isl, mpfr and libmpc
==> Installing gcc#6 dependency: isl
==> Patching
==> Applying configure-big_sur.diff
patching file configure
Hunk #1 succeeded at 13866 (offset 5133 lines).
==> ./configure --prefix=/usr/local/Cellar/isl/0.25 --with-gmp=system --with-gmp-prefix=/usr/local/op
==> make
Last 15 lines from /Users/benoitlardinois/Library/Logs/Homebrew/isl/02.make:
constexpr value_type& value() &
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
constexpr value_type const& value() const&
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: no known conversion from 'optional<...>' to 'optional<...>' for object argument
constexpr value_type&& value() &&
^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'optional<...>' to 'const optional<...>' for object argument
constexpr value_type const&& value() const&&
^
2 errors generated.
make[2]: *** [isl_test_cpp17.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
Error: You are using macOS 10.13.
We (and Apple) do not provide support for this old version.
It is expected behaviour that some formulae will fail to build in this old version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from MacHomebrew on Twitter.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.
I'm in despair, I don't know what I'm supposed to do.
The warning is clearly stating that macOS 10.13 is too old, so the best thing is to upgrade the OS - there were several failed attempts to build Ruby 3.0 - see https://github.com/rvm/rvm/issues/5055
Also, GCC below version 10 are deprecated - see homebrew issue https://github.com/Homebrew/homebrew-core/pull/110163
Though, you can first try switching from rvm to rbenv - seems like someone get it done with rbenv on High Sierra - https://github.com/rvm/rvm/issues/5012#issuecomment-811858777

During Openssl build: How to fix "fatal error: apps/app_rand.d: no such file or directory, compilation terminated"

I am attempting to update openssl to 1.1.1 on centos 7 in order to start building OpenLDAP.
After pulling the openssl installation package and unzipping it in /usr/local/src/ I ran ./config --prefix=/usr/local/ssl --openssldir=/usr/local/ssl shared zlib. This command successfully configured openssl.
I then ran the make command to build openssl and got the following error:
cc1: fatal error: apps/app_rand.d: no such file or directory
compilation terminated
make(1): *** (apps/app.rand.o) Error 1
make(1): Leaving directory '/usr/local/src/openssl-1.1.1d'
make: *** (all) Error 2
The apps directory was created and does exist, but the app_rand.d file is not present inside of the apps directory.
I have downloaded all dependencies (i believe)
I am decent in linux, I have my rhcsa, but am not familiar with manually building software libraries like openssl. I have tried to do some research online but have not come up with any solutions. Any advice would be very much appreciated!

<urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>

I'm currently installing emsdk. I was just following the tutorial in their site but got stuck at this command:
./emsdk install latest
Here is the output:
Installing SDK 'sdk-1.38.0-64bit'..
Installing tool 'clang-e1.38.0-64bit'..
The contents of file 'llvm/tag/osx_64bit/emscripten-llvm-e1.38.0.tar.gz' already exist in destination '/Users/user1/Desktop/emsdk/clang/e1.38.0_64bit', skipping.
Done installing tool 'clang-e1.38.0-64bit'.
Installing tool 'node-8.9.1-64bit'..
The contents of file 'node-v8.9.1-darwin-x64.tar.gz' already exist in destination '/Users/user1/Desktop/emsdk/node/8.9.1_64bit', skipping.
Done installing tool 'node-8.9.1-64bit'.
Installing tool 'emscripten-1.38.0'..
Error downloading URL 'https://github.com/kripken/emscripten/archive/1.38.0.tar.gz': <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>
Installation failed!
I already tried upgrading to Python 3 from Python 2.7 as well as upgraded my OpenSSL as per suggestion of some posts here. How can I fix this?
I ran into the same problem. I tried updating openssl on MacOS and using a newer version of python, but it still didn't work.
A hacky work around that worked for me is to download the failing file manually into the zips folder.
For example
cd zips
wget https://github.com/kripken/emscripten/archive/1.38.0.tar.gz
Then try to install again and it should work.

How to build PyCurl on MACOSX 10.11.6 without error

I am trying to build Pycurl against a version of libcurl (7.53.1) without success.
I am on MACOSX El Capitan v10.11.6.
I am not even sure I am aligned with OpenSSL at this point. I may need to make sure OpenSSL is properly installed and get Curl built with OpenSSL. Finally get Pycurl built with the proper Curl.
I have been followed couple of tracks on-line but none of them are getting me where I need to be.
What would be the best option to solve this build issue?
Log:
users-MBP-2:~ mickael$ sudo easy_install pycurl
Password:
Searching for pycurl
Reading https://pypi.python.org/simple/pycurl/ Best match: pycurl 7.43.0
Downloading https://pypi.python.org/packages/12/3f/557356b60d8e59a1cce62ffc07ecc03e4f8a202c86adae34d8958262 81fb/pycurl-7.43.0.tar.gz#md5=c94bdba01da6004fa38325e9bd6b9760
Processing pycurl-7.43.0.tar.gz
Writing /tmp/easy_install-tmm5sV/pycurl-7.43.0/setup.cfg
Running pycurl-7.43.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tmm5sV/pycurl-7.43.0/egg-dist- tmp-Yj_ArM
Using curl-config (libcurl 7.53.1)
warning: no files found matching 'src/Makefile'
In file included from src/docstrings.c:4:
In file included from src/pycurl.h:32:
In file included from /usr/local/Cellar/curl/7.53.1/include/curl/curl.h:39: /usr/local/Cellar/curl/7.53.1/include/curl/curlrules.h:143:6: error: '__curl_rule_01__' declared as an array with a negative
size
[CurlchkszEQ(long, CURL_SIZEOF_LONG)];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/curl/7.53.1/include/curl/curlrules.h:132:27: note: expanded from macro 'CurlchkszEQ' #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
^~~~~~~~~~~~~~~~~~~~~~~
/usr/local/Cellar/curl/7.53.1/include/curl/curlrules.h:153:6: error: '__curl_rule_02__' declared as an array with a negative
size
[CurlchkszEQ(curl_off_t, CURL_SIZEOF_CURL_OFF_T)];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/local/Cellar/curl/7.53.1/include/curl/curlrules.h:132:27: note: expanded from macro 'CurlchkszEQ' #define CurlchkszEQ(t, s) sizeof(t) == s ? 1 : -1
^~~~~~~~~~~~~~~~~~~~~~~ In file included from src/docstrings.c:4:
src/pycurl.h:190:5: warning: "libcurl was compiled with SSL support, but configure could not determine
which " "library was
used; thus no SSL crypto locking callbacks will be set, which may "
requests" [-W#warnings]
# warning \ ^
1 warning and 2 errors generated.
error: Setup script exited with error: command 'cc' failed with exit status 1
"cause random crashes on SSL
Ok, there is definitely some challenges to build Pycurl. Here are the steps I took:
Make sure OpenSSL was installed (if not use Brew: brew install openssl).
Rebuild Curl with OpenSSL, remember Curl is not built with OpenSSL by default on MacOsX/El Capitan, SecureTransport is used instead. (try: brew install --force curl --with-openssl)
Rebuild Pycurl with "pip". I had success with pip but not with easy_install. (try: sudo env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" pip install pycurl)
Pycurl is installed under: /Library/Python/2.7/site-packages/pycurl.so
Version installed is: pycurl-7.43.0

Can't update Macports (with Mac OS X Mavericks)

After upgrading Mac OS X to newest version Mavericks, I attempted to selfupdate my Macports, but it failed:
$ sudo port -v selfupdate
---> Updating MacPorts base sources using rsync
receiving file list ... done
sent 36 bytes received 69 bytes 210.00 bytes/sec
total size is 4925440 speedup is 46908.95
receiving file list ... done
sent 36 bytes received 76 bytes 74.67 bytes/sec
total size is 512 speedup is 4.57
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done
sent 36 bytes received 70 bytes 70.67 bytes/sec
total size is 57702400 speedup is 544362.26
receiving file list ... done
sent 36 bytes received 77 bytes 75.33 bytes/sec
total size is 512 speedup is 4.53
receiving file list ... rsync: change_dir "tarballs/PortIndex_darwin_13_i386" (in release) failed: No such file or directory (2)
done
sent 4 bytes received 9 bytes 26.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(1400) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 23
---> MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking MacPorts version... 2.2.1
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 5.0.1
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
<snip>
checking CommonCrypto/CommonDigest.h presence... yes
checking for CommonCrypto/CommonDigest.h... yes
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... yes
checking whether rl_completion_matches is declared... yes
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1
Exit code: 1
Error: Error installing new MacPorts base: command execution failed
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
$
If I just try to upgrade a particular port, it failed too:
$ sudo port upgrade emacsapp
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Error: emacsapp is not installed
$ sudo port search emacs
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
$ sudo port upgrade emacs-app
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
---> Fetching archive for gperf
---> Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://packages.macports.org/gperf
---> Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/gperf
---> Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gperf
---> Fetching distfiles for gperf
---> Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf
---> Verifying checksums for gperf
---> Extracting gperf
Error: org.macports.extract for port gperf returned: command execution failed
Please see the log file for port gperf for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/main.log
Error: Problem while installing gperf
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
$
Any idea
if this is caused by incompatibility between OS X Mavericks and Macports?
how to fix it?
Edit:
I tried a different computer upgrading it from 10.8.5 to 10.9, and then try to do selfupdate for macports, it did not work again but gave a different error:
$ sudo port -v selfupdate
---> Updating MacPorts base sources using rsync
receiving file list ... done
base.tar
sent 13396 bytes received 10355 bytes 15834.00 bytes/sec
total size is 4925440 speedup is 207.38
receiving file list ... done
base.tar.rmd160
sent 64 bytes received 635 bytes 1398.00 bytes/sec
total size is 512 speedup is 0.73
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
Synchronizing local ports tree from file:///opt/local/var/macports/sources/svn.macports.org/trunk/dports/
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/opt/local/var/macports/sources/svn.macports.org/trunk/dports' is too old (format 10, created by Subversion 1.6)
Command failed: /usr/bin/svn update --non-interactive /opt/local/var/macports/sources/svn.macports.org/trunk/dports
Exit code: 1
Error: Synchronization of the local ports tree failed doing an svn update
Error: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
Install the "Command Line Tools" first:
sudo xcode-select --install
(Explicitly agreeing to the license is sometimes necessary via "sudo xcodebuild -license")
Then upgrade the ports:
sudo port -v selfupdate
I answered a similar question. The location of the Tcl framework has changed, breaking the existing MacPorts infrastructure. The 2.2.1 installer for Mavericks has since become available here. Make a list of your installed ports, and consider deleting /opt/local prior to installing. You will likely need to 'update' everything anyway.
There might be a chance that you haven't agreed with the XCode license.
If xcode-install doesn't help, you can run the belowing command to agree with Xcode license.
sudo xcodebuild -license
there is an actual bug with
gperf #3.0.4: error: expected parameter declarator
thankfully this issue has its own ticket at MacPorts ticket 40918
if anything you could read all the issues in Mavericks at http://trac.macports.org/wiki/MavericksProblems
I had the same issue. I am assuming that you had Xcode command line utils installed previously. Just launch XCODE and let it finish configuration. Now rerun port command and it should work properly.
I got an error with selfupdate, and resolved it by doing a fresh installation of MacPorts from http://www.macports.org/install.php. Now I can run the selfupdate command without error and install other ports.
The error I were seeing was below, it seems the same problem as Yo Sophia has pointed out:
$ sudo port selfupdate
Password:
---> Updating MacPorts base sources using rsync
MacPorts base version 2.1.3 installed,
MacPorts base version 2.2.1 downloaded.
---> Updating the ports tree
---> MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
I mainly wanted to comment on #Brett's answer above (sorry, SO n00b still, not allowed) and share my experience upgrading... not really a new answer, but hopefully some useful info.
I downloaded and installed the Mavericks MacPorts installer as described above, (but without removing /opt, as suggested by #King Julian did self update which was fine, and then upgrade outdated and it seems to be uninstalling and reinstalling all my ports with a message:
Warning: Deactivate forced. Proceeding despite dependencies.
on each one. Luckily i made a copy of the etc and apache2/conf dirs, so should be able to get my config back when it eventually finishes... after 30 minutes or so it threw an error
Unable to open port: extra characters after close-quote
So i did self update again and upgrade outdated seems to run again...
So looks like it can be done (LAMP all working anyway) - it might have been quicker to start again from scratch, but make sure you have at least a couple of hours spare for this (and be connected to mains power ;)
Apologies if too much info, but hope it helps!
The problem seems to be with Macports and the location of the Tcl framework and it's path once Xcode has been installed. I suggest installing a fresh version of Macports for Mavericks here : http://www.macports.org/install.php.
I had this issue on Mountain Lion and it was actually to do with MacPorts looking at an old XCode path (I had several versions including betas installed). I ran with the -d option and checked the config.log file at /opt/local/var/macports/sources/rsync.macports.org/release/base and it reported some errors:-
--- snip ---
...
configure:3331: checking for C compiler version
configure:3340: gcc --version >&5
Configured with: --prefix=/Applications/Xcode5-DP3.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
xcrun: Error: could not stat active Xcode path '/Applications/Xcode5-DP3.app/Contents/Developer'. (No such file or directory)
configure:3351: $? = 0
configure:3340: gcc -v >&5
Configured with: --prefix=/Applications/Xcode5-DP3.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
xcrun: Error: could not stat active Xcode path '/Applications/Xcode5-DP3.app/Contents/Developer'. (No such file or directory)
...
--- snip ---
So I gave it the correct path using:-
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
and that fixed it.
I got my clues from this useful page.

Resources