2016-04-06 24 views
1

のMac OSエルキャピタンPostgreSQLの宝石がPG 0.18.4パスをインストールし、バンドルのインストールにはバンドルをインストール

がで失敗失敗:

compiling pg_connection.c 
pg_connection.c:2394:3: warning: implicit declaration of function 'gettimeofday' is invalid in C99 [-Wimplicit-function-declaration] 
       gettimeofday(&currtime, NULL); 
       ^
1 warning generated. 
compiling pg_copy_coder.c 
compiling pg_errors.c 
compiling pg_result.c 
compiling pg_text_decoder.c 
compiling pg_text_encoder.c 
compiling pg_type_map.c 
compiling pg_type_map_all_strings.c 
compiling pg_type_map_by_class.c 
compiling pg_type_map_by_column.c 
compiling pg_type_map_by_mri_type.c 
compiling pg_type_map_by_oid.c 
compiling pg_type_map_in_ruby.c 
compiling util.c 
linking shared-object pg_ext.bundle 
ld: file not found: dynamic_lookup 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
make: *** [pg_ext.bundle] Error 1 

make failed, exit code 2 

Gem files will remain installed in /Users/jmintz/Documents/LaunchAngels/radar/vendor/bundle/gems/pg-0.18.4 for inspection. 
Results logged to /Users/jmintz/Documents/LaunchAngels/radar/vendor/bundle/extensions/x86_64-darwin-15/2.2.0-static/pg-0.18.4/gem_make.out 

... ...

An error occurred while installing pg (0.18.4), and Bundler cannot continue. 

Make sure that `gem install pg -v '0.18.4'` succeeds before bundling. 

ランニング「宝石PGをインストール-v "で0.18.4の成績:

Building native extensions. This could take a while... 
Successfully installed pg-0.18.4 
Parsing documentation for pg-0.18.4 
Done installing documentation for pg after 4 seconds 
1 gem installed 

ただし、 'bundle install'を再度実行すると失敗します。助言がありますか?私はアンインストールし、再起動してhomebrewと幸運なしで

+0

このSOスレッドはあなたの問題を解決する可能性があります:http://stackoverflow.com/questions/ 9234960/GEM-インストール-PG-PG-CONFIG-作品-バンドルは、失敗したと – born4new

+0

は、残念ながら私は、そのスレッド内のすべての提案を試してみましたが、どれも – jasonm

答えて

0

これは答えではありませんが、正しい方向にあなたを指すことがあります...確かに宝石pgが正常にコンパイルされた場合は、指示している...それはおそらく、あなたのRubyプロジェクトが、何とか正しいgemsetを参照していない可能性があります。バンドルをインストールするときに再インストールしようとしているように見えるので、pgがコンパイルされて現在のgemsetにインストールされていると、これは起こりません。システムでRVMを使用していますか?より多くの出力を提供することはできますか?

+0

良い考えを働いたが、私の知る限り、彼らは同じだ言うことができるように:jmintz-ラップトップを:レーダーコンソール$どの宝石 /Users/USER/.rbenv/sh IMS /宝石 /Users/USER/.rbenv/shims/bundleをバンドル コンソール$ – jasonm

0

回答Postgress.appをインストールすると、これはシエラに私のために働いた

bundle config build.pg --with-pg-config=[Path to pg_config] before bundling 
0

走っていた:

gem install pg -v '0.18.3' -- --with-pg-config=/Applications/Postgres.app/Contents/Versions/latest/bin/pg_config 
関連する問題