nodebrew で Node.js をインストールできない

3123 PV

nodebrew で Node.js の v0.6.21 をインストールしようとするとエラーが発生して、インストールできません。


% nodebrew install v0.6.21
Install using cache.

Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for program gcc or cc           : /usr/bin/gcc 
Checking for gcc                         : ok  
Checking for library dl                  : yes 
Checking for openssl                     : not found 
Checking for function SSL_library_init   : yes 
Checking for header openssl/crypto.h     : yes 
Checking for library util                : yes 
Checking for library rt                  : not found 
Checking for fdatasync(2) with c++       : no 
'configure' finished successfully (0.704s)
Waf: Entering directory `/Users/bakorer/.nodebrew/src/node-v0.6.21/out'
DEST_OS: darwin
Parallel Jobs: 1
Product type: program
[ 4/35] uv: deps/uv/include/uv.h -> out/Release/deps/uv/uv.a
rm -f src/ares/*.o
rm -f src/unix/ev/*.o
rm -f src/unix/eio/*.o
rm -f src/unix/*.o
rm -rf test/run-tests.dSYM run-benchmarks.dSYM
rm -f -f src/*.o *.a test/run-tests test/run-benchmarks
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/core.c -o src/unix/core.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/dl.c -o src/unix/dl.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/fs.c -o src/unix/fs.o
src/unix/fs.c: In function ‘uv_fs_fdatasync’:
src/unix/fs.c:459: warning: implicit declaration of function ‘fdatasync’
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/cares.c -o src/unix/cares.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/udp.c -o src/unix/udp.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/error.c -o src/unix/error.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/process.c -o src/unix/process.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/tcp.c -o src/unix/tcp.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/pipe.c -o src/unix/pipe.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/tty.c -o src/unix/tty.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/stream.c -o src/unix/stream.o
/usr/bin/gcc --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -Iinclude -Iinclude/uv-private -Isrc/unix/ev -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_DARWIN_USE_64_BIT_INODE=1 -Isrc/ares/config_darwin -Isrc  -m64 -arch x86_64 -c src/unix/darwin.c -o src/unix/darwin.o
src/unix/darwin.c:28:39: error: CoreServices/CoreServices.h: No such file or directory
src/unix/darwin.c: In function ‘uv_hrtime’:
src/unix/darwin.c:39: error: ‘Nanoseconds’ undeclared (first use in this function)
src/unix/darwin.c:39: error: (Each undeclared identifier is reported only once
src/unix/darwin.c:39: error: for each function it appears in.)
src/unix/darwin.c:39: error: expected ‘;’ before ‘enano’
src/unix/darwin.c:41: error: ‘enano’ undeclared (first use in this function)
src/unix/darwin.c:41: warning: implicit declaration of function ‘AbsoluteToNanoseconds’
src/unix/darwin.c:41: error: ‘AbsoluteTime’ undeclared (first use in this function)
src/unix/darwin.c:41: error: expected expression before ‘)’ token
src/unix/darwin.c:43: warning: control reaches end of non-void function
src/unix/darwin.c: In function ‘uv_exepath’:
src/unix/darwin.c:60: warning: implicit declaration of function ‘malloc’
src/unix/darwin.c:60: warning: incompatible implicit declaration of built-in function ‘malloc’
src/unix/darwin.c:61: warning: implicit declaration of function ‘realpath’
src/unix/darwin.c:61: warning: assignment makes pointer from integer without a cast
src/unix/darwin.c:64: warning: implicit declaration of function ‘free’
make[1]: *** [src/unix/darwin.o] Error 1
Waf: Leaving directory `/Users/bakorer/.nodebrew/src/node-v0.6.21/out'
Build failed:  -> task failed (err #2): 
    {task: uv uv.h -> uv.a}
make: *** [program] Error 1



Command Line Tools をインストールしていなかったのが原因でした。

編集 履歴 (0)