我卸载版本0.18.1,现在我无法安装任何版本。 我想安装0.18.2 我正在运行此命令:
gem install pg -v '0.18.2'
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/liviu-mac/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150901-1693-1wdi2b8.rb extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.
不知道如何解决安装问题?
答案 0 :(得分:0)
我使用了错误的路径,在我的情况下正确的命令是:
import * as angular from 'angular';
我使用的是9.3而不是9.4