LockerProject/Locker — Issue #467: Can't install on current OSX (10.7.2 Lion)/Xcode 4.2.1 (4D502)
Author: zencuke
Created: 2011-11-28 03:25:35+00:00
State: open

I have spend the last two days trying to install locker. First I tried lockerbox.sh. Then I followed the link to "Detailed Install Instructions." Half the commands on this page failed for one reason or another: Macports/fink incompatability; node version incompatability with npm; npm can't cope with some of the dependencies in Locker/package.json. Apparently some of the specified package versions in this file are no longer supported by the current npm. I have gotten so many different errors and tried so many workarounds that I have probably created incompatibilities between all the things locker depends on. I believe I finally have the correct versions of most things. At least ./checkEnv.sh doesn't complain about the versions it finds. However npm install still fails.

npm ERR! error installing unshortener@0.0.8 at Request._callback (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/request.js:180:12)
npm ERR! error installing unshortener@0.0.8 at Request.callback (/usr/local/lib/node_modules/npm/node_modules/request/main.js:99:22)

I most recently deleted the Locker directory and tried lockerbox.sh again hoping iot would succeed it the dependencies were already installed, I got the following results:

1) curl https://github.com/LockerProject/lockerbox/blob/master/lockerbox.sh > lockerbox.sh
Rather than download the script this commands downloads the html web page that contains it. I fixed this by going to that page and clicking on raw and then downloading the file with my browser.

2) papas-macintosh:~ steven$ ./lockerbox.sh
... successful progress reports clipped ...
./lockerbox.sh: line 58: pkg-config: command not found
CLucene not found!

About to download, build, and install locally CLucene.
This could take a while....git://clucene.git.sourceforge.net/gitroot/clucene/clucene already downloaded.
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /Developer/usr/bin/gcc

Make Error at /Applications/CMake 2.8-6.app/Contents/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "/Developer/usr/bin/gcc" is not able to compile a simple
test program.

This is probably because Apple has restructured where and how it installs these tools in the latest version of Xcode for Lion. In particular /Developer/usr/bin/gcc doesn't exist. However I'm not sure what to do about it. clucene isn't exactly the simplest thing to install manually but I am looking into it. Is this the right approach? I've noticed that some other projects seem to have trouble coping with the newest xcode release. I have been assuming up till now that my problems were either operator error or something weird about my configuration but my problems are so egregious that I am beginning to wonder if I am the first person to attempt this with the newest xcode. Should I expect this to work?