chrismccord / labrador

A loyal data retriever for your Rails development databases.
http://chrismccord.github.com/labrador/
253 stars 15 forks source link

Installation failed under OSX #23

Closed daslicht closed 11 years ago

daslicht commented 11 years ago

Hello, when I try to install Labrador under OSX like this:

cd ~ && git clone git://github.com/chrismccord/labrador.git .labrador && cd .labrador && echo "rvm use 1.9.3" > .rvmrc && cd ~/.labrador && bundle install --deployment && open -e ~/.labrador/config/initializers/auth.rb

I get this error:

daslicht:~ daslicht$ cd ~ && git clone git://github.com/chrismccord/labrador.git .labrador && cd .labrador && echo "rvm use 1.9.3" > .rvmrc && cd ~/.labrador && bundle install --deployment && open -e ~/.labrador/config/initializers/auth.rb
Cloning into '.labrador'...

remote: Counting objects: 1325, done.
remote: Compressing objects: 100% (675/675), done.
remote: Total 1325 (delta 698), reused 1224 (delta 607)
Receiving objects: 100% (1325/1325), 984.22 KiB | 357 KiB/s, done.
Resolving deltas: 100% (698/698), done.
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/.
Fetching source index from https://rubygems.org/
Installing rake (10.0.3) 
Installing i18n (0.6.4) 
Installing multi_json (1.6.1) 
Installing activesupport (3.2.12) 
Installing builder (3.0.4) 
Installing activemodel (3.2.12) 
Installing erubis (2.7.0) 
Installing journey (1.0.4) 
Installing rack (1.4.5) 
Installing rack-cache (1.2) 
Installing rack-test (0.6.2) 
Installing hike (1.2.1) 
Installing tilt (1.3.4) 
Installing sprockets (2.2.2) 
Installing actionpack (3.2.12) 
Installing mime-types (1.21) 
Installing polyglot (0.3.3) 
Installing treetop (1.4.12) 
Installing mail (2.4.4) 
Installing actionmailer (3.2.12) 
Installing arel (3.0.2) 
Installing tzinfo (0.3.36) 
Installing activerecord (3.2.12) 
Installing activeresource (3.2.12) 
Installing arrayfields (4.7.4) 
Installing fastercsv (1.5.5) 
Installing amalgalite (1.1.2) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb 
creating Makefile

make
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c amalgalite3.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c amalgalite3_blob.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c amalgalite3_constants.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c amalgalite3_database.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c amalgalite3_requires_bootstrap.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c amalgalite3_statement.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin12.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64  -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common  -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_STAT2=1 -DSQLITE_THREADSAFE=1  -c sqlite3.c
xcrun: Error: could not stat active Xcode path '/Applications/Xcode.app/Contents/Developer'. (No such file or directory)
cc -arch i386 -arch x86_64 -pipe -bundle -undefined dynamic_lookup -o amalgalite3.bundle amalgalite3.o amalgalite3_blob.o amalgalite3_constants.o amalgalite3_database.o amalgalite3_requires_bootstrap.o amalgalite3_statement.o sqlite3.o -L. -L/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib -L. -arch i386 -arch x86_64     -lruby  -lpthread -ldl -lobjc  
clang: error: no such file or directory: 'amalgalite3.o'
clang: error: no such file or directory: 'amalgalite3_blob.o'
clang: error: no such file or directory: 'amalgalite3_constants.o'
clang: error: no such file or directory: 'amalgalite3_database.o'
clang: error: no such file or directory: 'amalgalite3_requires_bootstrap.o'
clang: error: no such file or directory: 'amalgalite3_statement.o'
clang: error: no such file or directory: 'sqlite3.o'
make: *** [amalgalite3.bundle] Error 1

Gem files will remain installed in /Users/daslicht/.labrador/vendor/bundle/ruby/1.8/gems/amalgalite-1.1.2 for inspection.
Results logged to /Users/daslicht/.labrador/vendor/bundle/ruby/1.8/gems/amalgalite-1.1.2/ext/amalgalite/gem_make.out
An error occurred while installing amalgalite (1.1.2), and Bundler cannot continue.
Make sure that `gem install amalgalite -v '1.1.2'` succeeds before bundling.
daslicht:.labrador daslicht$ 

Do I NEED XCode? how to fix this, please?

davidstump commented 11 years ago

There is an older issue (now closed) that has some references to this question. [Issue #5]

Does this option help at all regarding commenting out amalgalite?

daslicht commented 11 years ago

Ok i try to find that gem file ?! I am no ruby guy so I have no clue what this is :)

daslicht commented 11 years ago

I installed XCode Full App (before i just had the tools installed) and now its compiling !