厨师食谱我使用流浪到本地创建一个开发服务器。我正在写我自己的厨师食谱来安装我需要的所有东西,但我遇到了问题。因为我认为这是试图拉下版本并不稳定问题PEAR安装与流浪汉
梨不会安装。错误是:
No such file or directory - pear -d preferred_state=stable search PEAR
的配方如下
#
# Chef recipe for provisioning a LAMP
# development server.
#
require_recipe 'apt'
require_recipe 'apache2'
require_recipe 'apache2::mod_php5'
require_recipe 'php::module_gd'
require_recipe 'mysql::server'
php_pear "PEAR" do
action :upgrade
end
php_pear "MDB2" do
action :install
end
php_pear "MDB2#mysql" do
action :install
end
# Grant access to this box...
ruby_block "Create database + execute grants" do
block do
require 'rubygems'
Gem.clear_paths
require 'mysql'
m = Mysql.new('localhost', "root", node[:mysql][:server_root_password])
m.query("GRANT ALL ON *.* TO 'root'@'10.0.0.1' IDENTIFIED BY '#{node[:mysql][:server_root_password]}'")
m.query('FLUSH PRIVILEGES')
end
end
我怎样才能让PEAR安装最新稳定版本?