Closed genuinefafa closed 7 years ago
Try this, seems like the same error:
https://github.com/Homebrew/homebrew-php/issues/3283#issuecomment-249886457
Please let me know if that worked.
Tried, didn't work. I did not have xCode installed, doh. Not 8, neither 7. I'm downloading xCode 8 right now and will try again, maybe there is something there.
Here is the log.
$ brew install --with-unicode-path tholu/tap/subversion18
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
Warning: You are using a pre-release version of Xcode.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
==> Downloading https://homebrew.bintray.com/bottles/git-2.10.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring git-2.10.0.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completion has been installed to:
/usr/local/share/zsh/site-functions
Emacs Lisp files have been installed to:
/usr/local/share/emacs/site-lisp/git
==> Summary
🍺 /usr/local/Cellar/git/2.10.0: 1,432 files, 31.7M
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
Warning: You are using a pre-release version of Xcode.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
==> Installing subversion18 from tholu/tap
==> Installing dependencies for tholu/tap/subversion18: scons
==> Installing tholu/tap/subversion18 dependency: scons
==> Downloading https://homebrew.bintray.com/bottles/scons-2.5.0.sierra.bottle.tar.gz
Already downloaded: /Users/fafa/Library/Caches/Homebrew/scons-2.5.0.sierra.bottle.tar.gz
==> Pouring scons-2.5.0.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/scons/2.5.0: 206 files, 2.1M
==> Installing tholu/tap/subversion18
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
==> Downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.13.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18-1.8.13.tar.bz2
==> Downloading https://gist.githubusercontent.com/tholu/fb5d30c586e33b53ecba/raw/a266b1aa01f95cdc38fcedda4c6bce253dfb58c2/svn_1.8.x
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--patch-2eaee628e3161bce4b1697660281cab30f42265369bfa7074ea435e441d543e7.patch
==> Patching
patching file configure
Hunk #1 succeeded at 25386 (offset 20 lines).
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file build/get-py-info.py
==> Applying svn_1.8.x_darwin_unicode_precomp.patch
patching file subversion/libsvn_subr/io.c
patching file subversion/libsvn_subr/path.c
patching file subversion/svn/proplist-cmd.c
patching file subversion/svn/status-cmd.c
==> Downloading https://archive.apache.org/dist/serf/serf-1.3.8.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--serf-1.3.8.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion18/1.8.13/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-O
Last 15 lines from /Users/fafa/Library/Logs/Homebrew/subversion18/01.scons:
GSSAPI=/usr
CC=/usr/bin/clang
CFLAGS=-Os -w -pipe -march=native -mmacosx-version-min=10.12
LINKFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
OPENSSL=/usr/local/opt/openssl
scons: Reading SConscript files ...
/bin/sh: /usr/bin/apr-1-config: No such file or directory
OSError: '/usr/bin/apr-1-config --cflags --cppflags --ldflags --includes --link-ld --libs' exited 127:
File "/private/tmp/subversion18--serf-20160928-14911-1vbddl1/serf-1.3.8/SConstruct", line 341:
env.ParseConfig('$APR --cflags --cppflags --ldflags --includes'
File "/usr/local/Cellar/scons/2.5.0/libexec/scons-local/SCons/Environment.py", line 1557:
return function(self, self.backtick(command))
File "/usr/local/Cellar/scons/2.5.0/libexec/scons-local/SCons/Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
xcrun: error: invalid active developer path (/Applications/Xcode.app/Contents/Developer), missing xcrun at: /Applications/Xcode.app/Contents/Developer/usr/bin/xcrun
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/tholu/homebrew-tap/issues
Ok! Same issue after installing xCode 8. At least warnings.
$ brew install --with-unicode-path tholu/tap/subversion18
==> Installing subversion18 from tholu/tap
==> Downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.13.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18-1.8.13.tar.bz2
==> Downloading https://gist.githubusercontent.com/tholu/fb5d30c586e33b53ecba/raw/a266b1aa01f95cdc38fcedda4c6bce253dfb58c2/svn_1.8.x
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--patch-2eaee628e3161bce4b1697660281cab30f42265369bfa7074ea435e441d543e7.patch
==> Patching
patching file configure
Hunk #1 succeeded at 25386 (offset 20 lines).
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file build/get-py-info.py
==> Applying svn_1.8.x_darwin_unicode_precomp.patch
patching file subversion/libsvn_subr/io.c
patching file subversion/libsvn_subr/path.c
patching file subversion/svn/proplist-cmd.c
patching file subversion/svn/status-cmd.c
==> Downloading https://archive.apache.org/dist/serf/serf-1.3.8.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--serf-1.3.8.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion18/1.8.13/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-O
Last 15 lines from /Users/fafa/Library/Logs/Homebrew/subversion18/01.scons:
GSSAPI=/usr
CC=/usr/bin/clang
CFLAGS=-Os -w -pipe -march=native -mmacosx-version-min=10.12
LINKFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
OPENSSL=/usr/local/opt/openssl
scons: Reading SConscript files ...
/bin/sh: /usr/bin/apr-1-config: No such file or directory
OSError: '/usr/bin/apr-1-config --cflags --cppflags --ldflags --includes --link-ld --libs' exited 127:
File "/private/tmp/subversion18--serf-20160928-17727-1iqpflx/serf-1.3.8/SConstruct", line 341:
env.ParseConfig('$APR --cflags --cppflags --ldflags --includes'
File "/usr/local/Cellar/scons/2.5.0/libexec/scons-local/SCons/Environment.py", line 1557:
return function(self, self.backtick(command))
File "/usr/local/Cellar/scons/2.5.0/libexec/scons-local/SCons/Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
READ THIS: https://git.io/brew-troubleshooting
If reporting this issue please do so at (not Homebrew/brew):
https://github.com/tholu/homebrew-tap/issues
I figure out that there is no /usr/bin/apr-1-config
but I have a /usr/local/bin/apr-1-config
that corresponds with which apr-1-config
. Maybe the directory in the script is wrong? According to this http://stackoverflow.com/a/32661637 you should not use /usr/bin
but /usr/local/bin
...
Perhaps the XCode Command Line Tools (CLT) need to be installed?
brew info apr
This formula is keg-only, which means it was not symlinked into /usr/local. Apple's CLT package contains apr.
Download them at https://developer.apple.com/download/more/ and make sure you use the right version.
Did it work? This seem to be the the critical parts in the formula:
unless MacOS::CLT.installed?
args << "APR=#{Formula["apr"].opt_prefix}"
args << "APU=#{Formula["apr-util"].opt_prefix}"
end
if MacOS::CLT.installed?
args << "--with-apr=/usr"
args << "--with-apr-util=/usr"
else
args << "--with-apr=#{Formula["apr"].opt_prefix}"
args << "--with-apr-util=#{Formula["apr-util"].opt_prefix}"
args << "--with-apxs=no"
end
I'm not sure how to make it work.
$ brew info apr
apr: stable 1.5.2 (bottled) [keg-only]
Apache Portable Runtime library
https://apr.apache.org/
/usr/local/Cellar/apr/1.5.2_3 (56 files, 1.2M) *
Poured from bottle on 2016-09-26 at 21:41:34
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/apr.rb
==> Options
--universal
Build a universal binary
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
Apple's CLT package contains apr.
but the issue remains the same
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion18/1.8.13/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-O
Last 15 lines from /Users/fafa/Library/Logs/Homebrew/subversion18/01.scons:
GSSAPI=/usr
CC=/usr/bin/clang
CFLAGS=-Os -w -pipe -march=native -mmacosx-version-min=10.12
LINKFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names
OPENSSL=/usr/local/opt/openssl
scons: Reading SConscript files ...
/bin/sh: /usr/bin/apr-1-config: No such file or directory
OSError: '/usr/bin/apr-1-config --cflags --cppflags --ldflags --includes --link-ld --libs' exited 127:
File "/private/tmp/subversion18--serf-20160929-19731-hvak69/serf-1.3.8/SConstruct", line 341:
env.ParseConfig('$APR --cflags --cppflags --ldflags --includes'
File "/usr/local/Cellar/scons/2.5.0/libexec/scons-local/SCons/Environment.py", line 1557:
return function(self, self.backtick(command))
File "/usr/local/Cellar/scons/2.5.0/libexec/scons-local/SCons/Environment.py", line 594:
raise OSError("'%s' exited %d" % (command, status))
I'm not sure what to test now. There were some people recommending doing a symlink in /usr/bin/apr-1-config
targeting /usr/local/bin
, but i'm not sure about that.
Have you installed the XCode Command Line Tools (CLT)?
In comparison, my scons logfile looks like that:
2016-09-20 10:51:49 +0200
/usr/local/opt/scons/bin/scons
PREFIX=/usr/local/Cellar/subversion18/1.8.13/libexec/serf
GSSAPI=/usr
CC=/usr/bin/clang
CFLAGS=-Os -w -pipe -march=native -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
LINKFLAGS=-L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L/usr/local/opt/readline/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk
OPENSSL=/usr/local/opt/openssl
APR=/usr/local/opt/apr
APU=/usr/local/opt/apr-util
Notice the last two lines!
I really don't know what else to do...
$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
I also tried restarting the terminal, no luck. The APR directories are nowhere to be found. Even tried "exporting" APR=/usr/local/opt/apr
and APU=/usr/local/opt/apr-util
The question remains: why is the script trying to use /usr/bin/apr-1-config
and not the right one 😒
Can you build the normal subversion
formula in homebrew from source?
What do you mean by build? I can install latest subversion, like this:
$ brew install subversion
==> Downloading https://homebrew.bintray.com/bottles/subversion-1.9.4.sierra.bottle.tar.gz
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion-1.9.4.sierra.bottle.tar.gz
==> Pouring subversion-1.9.4.sierra.bottle.tar.gz
==> Caveats
svntools have been installed to:
/usr/local/opt/subversion/libexec
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/subversion/1.9.4: 145 files, 11.4M
But it is not unicode_path
.
And there I try using a legacy repo for brew, installing latest 1.8 version, which did compile without any warning or errors, so I think,
homebrew/versions/subversion18
version instead of tholu/tap/subversion18
?homebrew/versions/subversion18
improve over the time and tholu/tap/subversion18
might require a refresh?$ brew install homebrew/versions/subversion18
==> Installing subversion18 from homebrew/versions
==> Downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.16.tar.bz2
==> Best Mirror http://mirrors.nxnethosting.com/apache/subversion/subversion-1.8.16.tar.bz2
######################################################################## 100.0%
==> Patching
patching file configure
Hunk #1 succeeded at 25433 (offset 67 lines).
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file build/get-py-info.py
==> Downloading https://archive.apache.org/dist/serf/serf-1.3.8.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--serf-1.3.8.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion18/1.8.16/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os
==> /usr/local/opt/scons/bin/scons install
==> ./configure --prefix=/usr/local/Cellar/subversion18/1.8.16 --with-zlib=/usr --with-sqlite=/usr/local/opt/sqlite --with-serf=/usr/
==> make
==> make install
==> make tools
==> make install-tools
==> Caveats
svntools have been installed to:
/usr/local/opt/subversion18/libexec
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/subversion18/1.8.16: 127 files, 9.3M, built in 2 minutes 9 seconds
Thanks for the hint, I will take a look and compare the Formulas.
Edit: Already found something:
# macOS Sierra ships the APR libraries & headers, but has removed the
# apr-1-config & apu-1-config executables which serf demands to find
# those elements. We may need to adopt a broader solution if this problem
# expands, but currently subversion is the only breakage as a result.
if MacOS.version >= :sierra
depends_on "apr-util"
depends_on "apr"
else
depends_on :apr => :build
end
Will try to fix that.
@genuinefafa I just committed a fix, please try and let me know if it works.
look at that @tholu... :neckbeard:
$ brew install --with-unicode-path tholu/tap/subversion18
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, tholu/tap).
==> Updated Formulae
ace gedit gnome-icon-theme gtkmm3 neofetch
clutter-gtk git-archive-all gsettings-desktop-schemas gucharmap nmap
evince gnome-builder gtk+3 mongodb tholu/tap/subversion18
==> Installing subversion18 from tholu/tap
==> Downloading https://www.apache.org/dyn/closer.cgi?path=subversion/subversion-1.8.16.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18-1.8.16.tar.bz2
==> Downloading https://gist.githubusercontent.com/tholu/fb5d30c586e33b53ecba/raw/a266b1aa01f95cdc38fcedda4c6bce253dfb58c2/svn_1.8.x_darwin_unicode_precomp.
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--patch-2eaee628e3161bce4b1697660281cab30f42265369bfa7074ea435e441d543e7.patch
==> Patching
patching file configure
Hunk #1 succeeded at 25433 (offset 67 lines).
patching file subversion/bindings/swig/perl/native/Makefile.PL.in
patching file build/get-py-info.py
==> Applying svn_1.8.x_darwin_unicode_precomp.patch
patching file subversion/libsvn_subr/io.c
patching file subversion/libsvn_subr/path.c
patching file subversion/svn/proplist-cmd.c
patching file subversion/svn/status-cmd.c
==> Downloading https://archive.apache.org/dist/serf/serf-1.3.8.tar.bz2
Already downloaded: /Users/fafa/Library/Caches/Homebrew/subversion18--serf-1.3.8.tar.bz2
==> /usr/local/opt/scons/bin/scons PREFIX=/usr/local/Cellar/subversion18/1.8.16/libexec/serf GSSAPI=/usr CC=/usr/bin/clang CFLAGS=-Os -w -pipe -march=native
==> /usr/local/opt/scons/bin/scons install
==> ./configure --prefix=/usr/local/Cellar/subversion18/1.8.16 --with-zlib=/usr --with-sqlite=/usr/local/opt/sqlite --with-serf=/usr/local/Cellar/subversion
==> make
==> make install
==> make tools
==> make install-tools
==> Caveats
svntools have been installed to:
/usr/local/opt/subversion18/libexec
This unicode-path version implements a hack to deal with composed/decomposed
unicode handling on Mac OS X which is different from linux and windows.
It is borrowed from http://subversion.tigris.org/issues/show_bug.cgi?id=2464 and
_WILL_ break some setups. Please be sure you understand what you
are asking for when you install this version.
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary
🍺 /usr/local/Cellar/subversion18/1.8.16: 127 files, 9.3M, built in 2 minutes 22 seconds
:relaxed:
Great, thanks for your help fixing this problem!
I was really for my own pleasure 🦀
Maybe some issue with the latest
scons 2.5
library?