首页 新闻 会员 周边

Ruby2.2.3在Windows系统下使用uru管理包,当使用RubyMine打开项目,bundle install下载依赖时,报错Could not find PostgreSQL build environment

0
悬赏园豆:20 [已关闭问题] 关闭于 2020-01-05 09:00

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>bundle install
The git source `git://github.com/lostisland/faraday.git` uses the `git` protocol, which transmits data without encry
ption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep
your data secure.
The git source `git://github.com/Prepsmith/docx_replace.git` uses the `git` protocol, which transmits data without e
ncryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to k
eep your data secure.
Fetching gem metadata from https://rubygems.org/.............
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies....
Using rake 12.0.0
Using concurrent-ruby 1.0.5
Using i18n 0.8.6
Using minitest 5.10.3
Using thread_safe 0.3.6
Using tzinfo 1.2.4
Using activesupport 5.1.4
Using public_suffix 3.0.2
Using addressable 2.5.2
Using net-ssh 4.1.0
Using net-scp 1.2.1
Using sshkit 1.14.0
Using airbrussh 1.3.0
Using backports 3.6.8
Using bundler 1.16.1
Using capistrano-harrow 0.5.3
Using capistrano 3.6.1
Using capistrano-bundler 1.1.4
Using capistrano-rvm 0.1.2
Using connection_pool 2.2.1
Using rack 1.6.8
Using rack-protection 1.5.3
Using redis 3.3.5
Using sidekiq 4.2.10
Using capistrano-sidekiq 0.10.0
Using sshkit-interactive 0.2.0
Using capistrano-sinatra-console 0.1.0
Using daemons 1.2.4
Using eventmachine 1.2.3 (x64-mingw32)
Using thin 1.7.2
Using capistrano-thin 2.0.1
Using puma 3.11.2
Using capistrano3-puma 1.2.1
Using mini_portile2 2.3.0
Using nokogiri 1.8.1 (x64-mingw32)
Using rubyzip 1.2.1
Using tilt 2.0.5
Using caracal 1.1.0
Using chronic 0.10.2
Using coderay 1.1.1
Using cookiejar 0.3.3
Using safe_yaml 1.0.4
Using crack 0.4.3
Using database_cleaner 1.4.0
Using msgpack 1.1.0 (x64-mingw32)
Using ddtrace 0.5.0
Using diff-lcs 1.2.5
Using docile 1.1.5
Using docx_replace 1.2.0 from git://github.com/Prepsmith/docx_replace.git (at prepsmith@46b1efe)
Using unf_ext 0.0.7.4 (x64-mingw32)
Using unf 0.1.4
Using domain_name 0.5.20170404
Using dotenv 2.1.1
Using multipart-post 2.0.0
Using faraday 0.14.0 from git://github.com/lostisland/faraday.git (at master@6b564ee)
Using faraday_middleware 0.12.2
Using net-http-persistent 2.9.4
Using eic-api-client-helpers 0.3.0 from git@github.com:Prepsmith/eic-api-client-helpers.git (at master@1fddfdb)
Using eic-api-helpers 0.7.1 from git@github.com:Prepsmith/eic-api-helpers.git (at master@04612ed)
Using eic-auth 0.1.0 from git@github.com:Prepsmith/eic-auth.git (at master@e777141)
Using eic-crm-client 0.1.0 from git@github.com:Prepsmith/eic-crm-api-client.git (at master@87d08a3)
Using mime-types 2.99.3
Using eic-file-client 0.1.0 from git@github.com:Prepsmith/file-api-gem.git (at master@87985a8)
Using eic-paike-client 0.5.0 from git@github.com:Prepsmith/eic-paike-client.git (at master@646f1b6)
Using eic-rbac-client 0.1.0 from git@github.com:Prepsmith/eic-rbac-api-client.git (at master@634a41c)
Using ffi 1.9.23 (x64-mingw32)
Using http-cookie 1.0.3
Using netrc 0.11.0
Using rest-client 1.8.0 (x64-mingw32)
Using eic-sage-client 0.2.2 from git@github.com:Prepsmith/eic-sage-client.git (at master@bec07cc)
Using eic-sequel-helpers 0.4.1 from git@github.com:Prepsmith/eic-sequel-helpers (at master@c35cb3a)
Using hiredis 0.6.1
Using em-hiredis 0.3.1
Using em-socksify 0.3.1
Using http_parser.rb 0.6.0
Using em-http-request 1.1.5
Using facets 3.1.0
Using factory_bot 4.8.2
Using websocket-extensions 0.1.2
Using websocket-driver 0.6.5
Using faye-websocket 0.10.7
Using multi_json 1.12.1
Using faye 1.2.4
Using faye-redis 0.2.0
Using git-version-bump 0.15.1
Using hashdiff 0.3.0
Using httpclient 2.8.3
Using json 1.8.3
Using json-schema 2.8.0
Using method_source 0.8.2
Using newrelic_rpm 4.7.1.340
Using oj 2.18.0
Using oj_mimic_json 1.0.1
Using omnidocx 0.1.2
Using pg 0.18.4 (x64-mingw32)
Using slop 3.6.0
Using pry 0.10.4
Using pusher-signature 0.1.8
Using pusher 1.3.1
Using rack-contrib 1.4.0
Using rack-test 0.6.3
Using redcarpet 3.3.4
Using redis-namespace 1.5.2
Using require_all 1.3.3
Using rmb_chinese_yuan 1.1.0 from git@github.com:Prepsmith/rmb (at feature/support_bigdecimal@4f8b1c0)
Using rollbar 2.12.0
Using rspec-support 3.4.1
Using rspec-core 3.4.4
Using rspec-expectations 3.4.0
Using rspec-mocks 3.4.1
Using rspec 3.4.0
Using rspec-sidekiq 3.0.1
Using rspec_junit_formatter 0.3.0
Using sequel 4.46.0
Using sequel-approvable 0.1.0 from git@github.com:Prepsmith/sequel-approvable (at master@572017f)
Using sequel-auditable 0.1.0 from git@github.com:Prepsmith/sequel-auditable (at master@41f7be2)
Using sequel-paranoid 0.6.2
Using sequel-pg_array 0.0.1
Using sequel-seed 0.3.2
Using sequel_enum 0.0.1 from git@github.com:xinminlabs/sequel_enum (at fix-multiple-enum@41d49d9)
Fetching sequel_pg 1.6.17
Installing sequel_pg 1.6.17 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180410-14372-zx8o3g.rb extconf.rb
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for PQsetSingleRowMode()... yes
creating Makefile

current directory:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
make "DESTDIR=" clean

current directory:
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
make "DESTDIR="
generating sequel_pg-x64-mingw32.def
compiling sequel_pg.c
sequel_pg.c: In function 'parse_pg_array':
sequel_pg.c:248:3: warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
sequel_pg.c: In function 'spg_yield_hash_rows':
sequel_pg.c:660:3: warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
sequel_pg.c: In function 'spg__yield_each_row':
sequel_pg.c:929:3: warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]
sequel_pg.c:906:11: warning: variable 'conn' set but not used
[-Wunused-but-set-variable]
linking shared-object sequel_pg.so
sequel_pg.o: In function `spg_set_single_row_mode':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:898:
undefined reference to `pg_get_pgconn'
sequel_pg.o: In function `spg__flush_results':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:983:
undefined reference to `pg_get_pgconn'
sequel_pg.o: In function `spg__yield_each_row':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:922:
undefined reference to `pg_get_pgconn'
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:926:
undefined reference to `pgresult_get'
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:972:
undefined reference to `pgresult_get'
sequel_pg.o: In function `spg_yield_hash_rows':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:657:
undefined reference to `pgresult_get'
collect2.exe: error: ld returned 1 exit status
make: *** [sequel_pg.so] Error 1

make failed, exit code 2

Gem files will remain installed in
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17 for inspection.
Results logged to
C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/gem_make.out

An error occurred while installing sequel_pg (1.6.17), and Bundler cannot
continue.
Make sure that `gem install sequel_pg -v '1.6.17'` succeeds before bundling.

In Gemfile:
sequel_pg

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>gem install sequel_pg -v="1.6.17" -- --with-pg-include=C:\ProgramFiles\Pos
tgreSQL\9.6\include -- --with-pg-lib=C:\ProgramFiles\PostgreSQL\9.6\lib -- --with-pg-dir=C:\ProgramFiles\PostgreSQL
\9.6
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-pg-include=C:\ProgramFiles\PostgreSQL\9.6\include -- --with-pg-lib=C:\Progr
amFiles\PostgreSQL\9.6\lib -- --with-pg-dir=C:\ProgramFiles\PostgreSQL\9.6'
This could take a while...
ERROR: Error installing sequel_pg:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180410-8020-14mbzz3.rb extconf.rb --with-pg-include=C:\ProgramFiles\Postgr
eSQL\9.6\include -- --with-pg-lib=C:\ProgramFiles\PostgreSQL\9.6\lib -- --with-pg-dir=C:\ProgramFiles\PostgreSQL\9.6

checking for main() in -lpq... no
checking for main() in -llibpq... no
checking for main() in -lms/libpq... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-pg-dir
--with-pg-include=${pg-dir}/include
--with-pg-lib=${pg-dir}/lib
--enable-static-build
--disable-static-build
--with-pqlib
--without-pqlib
--with-libpqlib
--without-libpqlib
--with-ms/libpqlib
--without-ms/libpqlib
Could not find PostgreSQL build environment (libraries & headers): Makefile not created

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/gem_make.out

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>gem install sequel_pg -v="1.6.17" -- --with-pg-include=C:\ProgramFiles\Pos
tgreSQL\9.6\include\libpq-fe.h
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-pg-include=C:\ProgramFiles\PostgreSQL\9.6\include\libpq-fe.h'
This could take a while...
ERROR: Error installing sequel_pg:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180410-17512-1dl5iq0.rb extconf.rb --with-pg-include=C:\ProgramFiles\Postg
reSQL\9.6\include\libpq-fe.h
checking for main() in -lpq... yes
checking for libpq-fe.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-pg-dir
--without-pg-dir
--with-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--enable-static-build
--disable-static-build
--with-pqlib
--without-pqlib
Could not find PostgreSQL build environment (libraries & headers): Makefile not created

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/gem_make.out

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>gem install sequel_pg -v="1.6.17" -- --with-pg-config=C:\ProgramFiles\Post
greSQL\9.6\bin\pg_cofnig
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-pg-config=C:\ProgramFiles\PostgreSQL\9.6\bin\pg_cofnig'
This could take a while...
ERROR: Error installing sequel_pg:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180410-1100-pxdg17.rb extconf.rb --with-pg-config=C:\ProgramFiles\PostgreS
QL\9.6\bin\pg_cofnig
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for PQsetSingleRowMode()... yes
creating Makefile

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
make "DESTDIR=" clean

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
make "DESTDIR="
generating sequel_pg-x64-mingw32.def
compiling sequel_pg.c
sequel_pg.c: In function 'parse_pg_array':
sequel_pg.c:248:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
sequel_pg.c: In function 'spg_yield_hash_rows':
sequel_pg.c:660:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
sequel_pg.c: In function 'spg__yield_each_row':
sequel_pg.c:929:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
sequel_pg.c:906:11: warning: variable 'conn' set but not used [-Wunused-but-set-variable]
linking shared-object sequel_pg.so
sequel_pg.o: In function `spg_set_single_row_mode':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:898: undefined reference to `pg_ge
t_pgconn'
sequel_pg.o: In function `spg__flush_results':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:983: undefined reference to `pg_ge
t_pgconn'
sequel_pg.o: In function `spg__yield_each_row':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:922: undefined reference to `pg_ge
t_pgconn'
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:926: undefined reference to `pgres
ult_get'
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:972: undefined reference to `pgres
ult_get'
sequel_pg.o: In function `spg_yield_hash_rows':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:657: undefined reference to `pgres
ult_get'
collect2.exe: error: ld returned 1 exit status
make: *** [sequel_pg.so] Error 1

make failed, exit code 2

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/gem_make.out

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>bundle config build.pg --with-pg-config=C:\ProgramFiles\PostgreSQL\9.6\bin
\pg_config
You are replacing the current global value of build.pg, which is currently "--with-pg-config=C:\\\\Program Files\\\\
PostgreSQL\\\\9.6\\\\bin\\\\pg_config"

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>gem install sequel_pg -v="1.6.17" -- --with-pg-config=C:\ProgramFiles\Post
greSQL\9.6\bin\pg_cofnig
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-pg-config=C:\ProgramFiles\PostgreSQL\9.6\bin\pg_cofnig'
This could take a while...
ERROR: Error installing sequel_pg:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180410-11180-b8ql7z.rb extconf.rb --with-pg-config=C:\ProgramFiles\Postgre
SQL\9.6\bin\pg_cofnig
checking for main() in -lpq... yes
checking for libpq-fe.h... yes
checking for PQsetSingleRowMode()... yes
creating Makefile

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
make "DESTDIR=" clean

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
make "DESTDIR="
generating sequel_pg-x64-mingw32.def
compiling sequel_pg.c
sequel_pg.c: In function 'parse_pg_array':
sequel_pg.c:248:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
sequel_pg.c: In function 'spg_yield_hash_rows':
sequel_pg.c:660:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
sequel_pg.c: In function 'spg__yield_each_row':
sequel_pg.c:929:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
sequel_pg.c:906:11: warning: variable 'conn' set but not used [-Wunused-but-set-variable]
linking shared-object sequel_pg.so
sequel_pg.o: In function `spg_set_single_row_mode':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:898: undefined reference to `pg_ge
t_pgconn'
sequel_pg.o: In function `spg__flush_results':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:983: undefined reference to `pg_ge
t_pgconn'
sequel_pg.o: In function `spg__yield_each_row':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:922: undefined reference to `pg_ge
t_pgconn'
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:926: undefined reference to `pgres
ult_get'
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:972: undefined reference to `pgres
ult_get'
sequel_pg.o: In function `spg_yield_hash_rows':
C:\Ruby22-x64\lib\ruby\gems\2.2.0\gems\sequel_pg-1.6.17\ext\sequel_pg/sequel_pg.c:657: undefined reference to `pgres
ult_get'
collect2.exe: error: ld returned 1 exit status
make: *** [sequel_pg.so] Error 1

make failed, exit code 2

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/gem_make.out

E:\DigtalChina\Code\Ruby\QD\eic-lisa-api>gem install sequel_pg -v="1.6.17" -- --with-pg-include=C:\ProgramFiles\Pos
tgreSQL\9.6\include\libpq-fe.h
Temporarily enhancing PATH to include DevKit...
Building native extensions with: '--with-pg-include=C:\ProgramFiles\PostgreSQL\9.6\include\libpq-fe.h'
This could take a while...
ERROR: Error installing sequel_pg:
ERROR: Failed to build gem native extension.

current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17/ext/sequel_pg
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20180410-10172-1rfvu5x.rb extconf.rb --with-pg-include=C:\ProgramFiles\Postg
reSQL\9.6\include\libpq-fe.h
checking for main() in -lpq... yes
checking for libpq-fe.h... no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
--with-pg-dir
--without-pg-dir
--with-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
--enable-static-build
--disable-static-build
--with-pqlib
--without-pqlib
Could not find PostgreSQL build environment (libraries & headers): Makefile not created

To see why this extension failed to compile, please check the mkmf.log which can be found here:

C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sequel_pg-1.6.17 for inspection.
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/sequel_pg-1.6.17/gem_make.out

 

 

已经折腾一周了,这个项目依赖还没有下载成功.请熟悉Ruby的大神,看一下我的问题在哪里:

本机已经下载和安装了PostgerSQL数据库,安装的Ruby 2.2 和Ruby2.4,环境变量有包含了DevKit,PostgreSQL,uru.

但执行bundle install,就是卡在sequel.pg,,,疯了....

青松之林的主页 青松之林 | 初学一级 | 园豆:183
提问于:2018-04-10 14:49
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册