2015-02-24 133 views
0

我使用的木偶设置护栏服务器(14.04)上的红宝石。安装似乎工作正常,但后来我找不到rbenv或捆绑软件和红宝石-v报告系统红宝石1.9.3。找不到rbenv安装

安装插件模块

puppet module install jdowning-rbenv 

模块

[$install_dir] 
# This is where rbenv will be installed to. 
# Default: '/usr/local/rbenv' 
# 
# [$owner] 
# This defines who owns the rbenv install directory. 
# Default: 'root' 

在这里,在PP文件

class rails-test_server { 
include ruby 
class { rbenv: } 
    rbenv::plugin { 'sstephenson/ruby-build': } 
    rbenv::build { '2.2.0': global => true } 
} 

是输出

Info: Retrieving plugin 
Info: Loading facts 
Info: Caching catalog for rails-test 
Info: Applying configuration version '1424804476' 
Notice: /Stage[main]/Rbenv::Deps::Debian/Package[build-essential]/ensure: ensure changed 'purged' to 'present' 
Notice: /Stage[main]/Rbenv::Deps::Debian/Package[libssl-dev]/ensure: ensure changed 'purged' to 'present' 
Notice: /Stage[main]/Rbenv::Deps::Debian/Package[libffi-dev]/ensure: ensure changed 'purged' to 'present' 
Notice: /Stage[main]/Rbenv::Deps::Debian/Package[libreadline6-dev]/ensure: ensure changed 'purged' to 'present' 
Notice: /Stage[main]/Git/Package[git]/ensure: ensure changed 'purged' to 'present' 
Notice: /Stage[main]/Rbenv/Exec[git-clone-rbenv]/returns: executed successfully 
Notice: /Stage[main]/Rbenv/File[/usr/local/rbenv]/group: group changed 'root' to 'adm' 
Notice: /Stage[main]/Rbenv/File[/usr/local/rbenv]/mode: mode changed '0755' to '0775' 
Notice: /Stage[main]/Rbenv/File[/usr/local/rbenv/shims]/ensure: created 
Notice: /Stage[main]/Rbenv/File[/usr/local/rbenv/plugins]/ensure: created 
Notice: /Stage[main]/Rbenv/File[/usr/local/rbenv/versions]/ensure: created 
Notice: /Stage[main]/Rails-test_server/Rbenv::Plugin[sstephenson/ruby-build]/Exec[install-sstephenson/ruby-build]/returns: executed successfully 
Info: /Stage[main]/Rails-test_server/Rbenv::Plugin[sstephenson/ruby-build]/Exec[install-sstephenson/ruby-build]: Scheduling refresh of Exec[rbenv-permissions-sstephenson/ruby-build] 
Notice: /Stage[main]/Rails-test_server/Rbenv::Plugin[sstephenson/ruby-build]/Exec[rbenv-permissions-sstephenson/ruby-build]: Triggered 'refresh' from 1 events 
Notice: /Stage[main]/Rbenv/File[/etc/profile.d/rbenv.sh]/ensure: defined content as '{md5}1895fedb6a7fdc5feed9b2cbbb8bbb60' 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[own-plugins-2.2.0]/returns: executed successfully 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[git-pull-rubybuild-2.2.0]/returns: executed successfully    
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[rbenv-install-2.2.0]/returns: executed successfully 
Info: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[rbenv-install-2.2.0]: Scheduling refresh of Exec[rbenv-ownit-2.2.0] 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[rbenv-ownit-2.2.0]: Triggered 'refresh' from 1 events 
Info: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[rbenv-ownit-2.2.0]: Scheduling refresh of Exec[rbenv-global-2.2.0] 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Exec[rbenv-global-2.2.0]: Triggered 'refresh' from 1 events 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Rbenv::Gem[bundler-2.2.0]/Exec[gem-install-bundler-2.2.0]/returns: executed successfully 
Info: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Rbenv::Gem[bundler-2.2.0]/Exec[gem-install-bundler-2.2.0]: Scheduling refresh of Exec[rbenv-rehash-bundler-2.2.0] 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Rbenv::Gem[bundler-2.2.0]/Exec[rbenv-rehash-bundler-2.2.0]: Triggered 'refresh' from 1 events 
Info: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Rbenv::Gem[bundler-2.2.0]/Exec[rbenv-rehash-bundler-2.2.0]: Scheduling refresh of Exec[rbenv-permissions-bundler-2.2.0] 
Notice: /Stage[main]/Rails-test_server/Rbenv::Build[2.2.0]/Rbenv::Gem[bundler-2.2.0]/Exec[rbenv-permissions-bundler-2.2.0]: Triggered 'refresh' from 1 events 
Notice: Finished catalog run in 473.25 seconds 

回答

2

rbenv模块创建一个需要sourcedrbenv将可以在命令行中前一个文件/etc/profile.d/rbenv.sh

[[email protected] modules]# which rbenv 
/usr/bin/which: no rbenv in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) 
[[email protected] modules]# source /etc/profile.d/rbenv.sh 
[[email protected] modules]# which rbenv 
/usr/local/rbenv/bin/rbenv 

您可以source文件如上,或登录和注销再次获得一个新的登录shell。

希望这会有所帮助。

+0

谢谢,我忘了EXEC $ SHELL – markhorrocks 2015-02-25 04:58:44