charlax/homebrew — comment on commit a5479f4eea03e2ed3b93193a225c18c25848fb42
File:  line 0
By teamgeo:

Hello,

I'm on osx Lion, 10.7.2 and the build fails. Cmake gives me an error, do you know what could be the case?

BBs-MacBook-Pro:some bartbaas$brew install http://github.com/charlax/homebrew/raw/master/Library/Formula/pgrouting.rb
######################################################################## 100.0%
==> Downloading http://download.osgeo.org/pgrouting/source/pgrouting-1.05.tar.gz
File already downloaded in /Volumes/Data/Users/bartbaas/Library/Caches/Homebrew
==> Downloading patches
######################################################################## 100.0%
==> Patching
patching file CMakeLists.txt
patching file cmake/FindPostgreSQL.cmake
patching file core/src/CMakeLists.txt
patching file core/src/astar.c
patching file core/src/dijkstra.c
patching file core/src/edge_visitors.hpp
patching file core/src/shooting_star.c
patching file core/src/shooting_star_boost_wrapper.cpp
patching file core/src/shooting_star_relax.hpp
patching file extra/driving_distance/src/alpha.c
patching file extra/driving_distance/src/drivedist.c
==> cmake . -DCMAKE_INSTALL_PREFIX='/usr/local/Cellar/pgrouting/1.05' -DCMAKE_BUILD_TYPE=None -Wno-dev -DPOSTGRESQL_INCLUDE_DIR='/usr/local/Cellar/postgresql/9.1.2/include/server/' -DPOSTGRESQL_LIBRARIES='/usr/local/Cellar/postgresql/9.1.2' -DBoost_INCLUDE_DIR=
==> make
==> make install
[100%] Built target routing
Install the project...
-- Install configuration: "None"
-- Installing: /usr/lib/postgresql/librouting.so
CMake Error at core/src/cmake_install.cmake:33 (FILE):
file INSTALL cannot copy file
"/tmp/homebrew-pgrouting-1.05-U4PJ/pgrouting-1.05/lib/librouting.so" to
"/usr/lib/postgresql/librouting.so".
Call Stack (most recent call first):
core/cmake_install.cmake:32 (INCLUDE)
cmake_install.cmake:33 (INCLUDE)

make: *** [install] Error 1
==> Exit Status: 2
http://github.com/mxcl/homebrew/blob/master/Library/Formula/.rb#L
==> Environment
HOMEBREW_VERSION: 0.8.1
HEAD: ae75008a3598c8dc61c4257ace6acb1cc3db2183
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
Hardware: dual-core 64-bit penryn
OS X: 10.7.2
Kernel Architecture: x86_64
Ruby: 1.8.7-249
/usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
Xcode: 4.1
GCC-4.0: N/A
GCC-4.2: build 5666
LLVM: build 2335
Clang: 2.1-163.7.1
MacPorts or Fink? false
X11 installed? true
==> Build Flags
CC: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CXX: /usr/bin/llvm-g++ => /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
LD: /usr/bin/llvm-gcc => /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
CFLAGS: -O3 -w -pipe -march=core2 -msse4.1
CXXFLAGS: -O3 -w -pipe -march=core2 -msse4.1
CPPFLAGS: -I/usr/local/Cellar/readline/6.2.2/include
LDFLAGS: -L/usr/local/Cellar/readline/6.2.2/lib
MAKEFLAGS: -j2
PKG_CONFIG_PATH: /usr/local/Cellar/readline/6.2.2/lib/pkgconfig

Error: Failed executing: make install
If `brew doctor' does not help diagnose the issue, please report the bug:
https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue