尝试使用cygwin gem install
同事的宝石并收到以下错误:
Building native extensions. This could take a while...
0 [main] ruby 11828 child_info_fork::abort: address space needed by 'etc.so' (0x180000) is already occupied
1 [main] ruby 11924 child_info_fork::abort: address space needed by 'etc.so' (0x180000) is already occupied
ERROR: Error installing /cygdrive/c/rCE-1.0.0.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
0 [main] ruby 8700 child_info_fork::abort: address space needed by 'etc.so' (0x190000) is already occupied
2 [main] ruby 10280 child_info_fork::abort: address space needed by 'etc.so' (0x190000) is already occupied
1 [main] ruby 9424 child_info_fork::abort: address space needed by 'etc.so' (0x190000) is already occupied
153 [main] ruby 11308 child_info_fork::abort: address space needed by 'etc.so' (0x190000) is already occupied
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... no
Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
*** 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.
我在cygwin安装程序中有最新版本的PostgreSQL(8.2.11)和Ruby(1.8.7-p358)。这两项都经过psql --version
和ruby --version
验证。
当我尝试gem install pg
时,我收到了类似的错误。谢谢你的帮助。