我很难用Vagrant设置虚拟机。
每当我使用vagrant> provision时,Chef都会失败:
[2014-03-15T19:16:08 + 00:00]错误:chef_gem [pg](postgresql :: ruby line 39)出错:Gem :: Installer :: ExtensionBuildError:错误:无法构建gem原生扩展。
> /opt/chef/embedded/bin/ruby extconf.rb checking for pg_config... yes
> Using config values from /usr/bin/pg_config 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... no
> checking for PQconnectdb() in -llibpq... no
> checking for PQconnectdb() in -lms/libpq... no
> Can't find the PostgreSQL client library (libpq)
> *** 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.
我很难理解这里要做什么。我在VM上手动安装了postgres,从cheffile中移除了postgres但仍然没有Chef失败。
任何帮助表示感谢。