错误的宝石在Ubuntu安装CF命令13.10

我想要把我的项目到Cloud Foundry,但是当我试图为Cloud Foundry的CLI安装CF命令,这是来了一个错误:错误的宝石在Ubuntu安装CF命令13.10

[email protected]:~$ sudo gem install cf 

Building native extensions. This could take a while...

ERROR: Error installing cf:

ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb

/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file --mkmf (LoadError)

from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'

from extconf.rb:13:in `<main>'

Gem files will remain installed in /var/lib/gems/1.9.1/gems/atomic-1.1.14 for inspection.

Results logged to /var/lib/gems/1.9.1/gems/atomic-1.1.14/ext/gem_make.out

我用Ubuntu 13.10和宝石1.8.23。 任何人都知道解决方案?

回答:

我认为你需要安装的软件包得到这个工作,特别是Ruby 1.9的-dev软件包:

sudo apt-get install ruby1.9.1-dev

如果还是不行,请尝试:

sudo apt-get install ruby-dev

回答:

您应该使用Go编写的新客户端。您可以从Github页面下载它https://github.com/cloudfoundry/cli

它比Ruby客户端更快,因为它是本地的。

以上是 错误的宝石在Ubuntu安装CF命令13.10 的全部内容, 来源链接: utcz.com/qa/258460.html

回到顶部