Problem installing

When I do "sudo make install" I'm getting these errors (from the master branch in git with --enable-cluster)...

CMake Warning at aux/broccoli/cmake_install.cmake:33 (message):
  Skipping install of /bro/etc/broccoli.conf to avoid overwrite of existing
  config file
Call Stack (most recent call first):
  cmake_install.cmake:35 (INCLUDE)

-- Up-to-date: /bro/bin/broccoli-config
-- Installing: /bro/lib/libbroccoli.3.0.0.dylib
-- Up-to-date: /bro/lib/libbroccoli.3.dylib
-- Up-to-date: /bro/lib/libbroccoli.dylib
-- Up-to-date: /bro/include/broccoli.h
-- Up-to-date: /bro/lib/broctl/broccoli.py
-- Installing: /bro/lib/broctl/broccoli.pyc
-- Installing: /bro/lib/broctl/_broccoli_intern.so
Listing BroControl ...
Can't list BroControl
-- Up-to-date: /bro/bin/broctl
CMake Error at aux/broctl/cmake_install.cmake:47 (FILE):
  file INSTALL cannot find
  "/Users/seth/bro/bro.git/build/aux/broctl/BroControl".
Call Stack (most recent call first):
  cmake_install.cmake:36 (INCLUDE)

make: *** [install] Error 1
[seth@Blake build (master)]$

  .Seth

file INSTALL cannot find
"/Users/seth/bro/bro.git/build/aux/broctl/BroControl".

At "make install" time, this is basically what should happen:

1) cp BroControl \{CURRENT\_BINARY\_DIR\}/BroControl 2\) compile Python sources in {CURRENT_BINARY_DIR}/BroControl
3) install ${CURRENT_BINARY_DIR}/BroControl

But it looks like it skipped straight to #3 and I don't understand why. Does that directory really not exist? I wasn't able to reproduce this error; can you give explicit steps/commands w/ CMake version and operating system?

- Jon

As I was going through documenting everything you asked for, I found the problem. I installed the binary copy of cmake for MacOS X and it's installed in the Applications directory with a symlink to /usr/bin/.

/Applications/CMake 2.8-2.app/Contents/bin/cmake

The space in the path makes things not work so well. :slight_smile:

  .Seth

I found the problem. I installed the binary copy of cmake for MacOS X and it's
installed in the Applications directory with a symlink to /usr/bin/.

/Applications/CMake 2.8-2.app/Contents/bin/cmake

The space in the path makes things not work so well. :slight_smile:

Ah ok, that makes sense to me now. At "make install" time I made the copy of the BroControl directory with `\{CMAKE\_COMMAND\} \-E copy\_directory\` instead of \`cp\` because I thought that would be the more 'portable' way to do things, but it seems I need to add some quotes around {CMAKE_COMMAND} so that spaces in the path get escaped.

I'll fix it on fastpath.

- Jon

add some quotes around ${CMAKE_COMMAND} so that spaces in the path get escaped.

I never would have expected to encounter spaces there either. :stuck_out_tongue:

I'll fix it on fastpath.

Thanks!

  .Seth

I'll merge in it, but for the future, please create new branches
when doing such changes across all (or many) of the repositories.
That makes merging easier as then I don't need to pay attention what
else is already in fastpath but not yet merged.

Robin