osx - Homebrew and Permission denied issue -
i try compile , install libapreq2 via homebrew package manager.
brew create http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz
the content of libapreq2.rb
formula follows.
require 'formula' class libapreq2 < formula url 'http://www.apache.si//httpd/libapreq/libapreq2-2.13.tar.gz' homepage '' md5 'c11fb0861aa84dcc6cd0f0798b045eee' # depends_on 'cmake' def install system "./configure", "--disable-debug", "--disable-dependency-tracking", "--prefix=#{prefix}" # system "cmake . #{std_cmake_parameters}" system "make install" end end
i proceed with
brew install -vd libapreq2
but unfortunately compilation ended errors.
mkdir: /usr/include/apache2/apreq2: permission denied make[3]: *** [install-pkgincludeheaders] error 1 make[3]: *** waiting unfinished jobs.... /usr/bin/install -c .libs/mod_apreq2.so /usr/libexec/apache2/mod_apreq2.so install: /usr/libexec/apache2/mod_apreq2.so: permission denied make[3]: *** [install-pkglibltlibraries] error 71 make[2]: *** [install-am] error 2 make[1]: *** [install-recursive] error 1 make: *** [install-recursive] error 1
brew try install files outside /usr/local/cellar/libapreq2/
directory. wonder how manage these "permission denied" issues. tried root user (i.e., sudo brew install libapreq2
), if later want remove library, files in /usr/local/cellar/libapreq2/
removed.
thanks pointers.
your package really shouldn't install in system includes in /usr/include. place homebrew packaged includes /usr/local/include (as symlinks cellar). you'll have adjust ./configure
invocation use #{prefix}/include
includes (probably --incdir
or similar).
Comments
Post a Comment