bundle install -jailshell:bundle:在共享主机上找不到命令

时间:2012-07-14 17:54:30

标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-3.1 hosting shared-hosting

捆绑安装不能在共享主机上运行,​​但我安装了gem bundle,当我运行以下命令时

我试过

捆绑安装

-jailshell: bundle: command not found

所以我尝试评估以下命令

gem list bundler -v 1.1.4

*** REMOTE GEMS ***

bundler (1.1.4)
bundler-auto-update (0.0.4)
bundler-bootstrap (0.0.3)
bundler-bouncer (0.1.2)
bundler-fastupdate (0.0.3)
bundler-github (0.2.0)
bundler-maglev- (1.0.21)
bundler-talks (0.0.4)
bundler08 (0.8.5)
bundler_bash_completion (0.1.1)
bundler_geminabox (0.0.1)
bundler_local_development (0.3.0)
bundler_push_host (0.0.1)
bundler_timer (1.1.2)

bundler已安装,但我不知道为什么它无法正常工作?

当我跑

gem env

RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.15
  - RUBY VERSION: 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/username/ruby/gems
  - RUBY EXECUTABLE: /usr/bin/ruby
  - EXECUTABLE DIRECTORY: /home/username/ruby/gems/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/username/ruby/gems
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
     - "gempath" => []
     - "gem" => "--remote --gen-rdoc --run-tests"
     - "gemhome" => "/home/username/ruby/gems"
     - "rdoc" => "--inline-source --line-numbers"
  - REMOTE SOURCES:
     - http://rubygems.org/

echo $ PATH

/usr/local/jdk/bin:/home/username/perl5/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/home/username/bin

uname -mrsn

Linux osprey.arvixe.com 2.6.18-374.3.1.el5.lve0.8.44 x86_64

更多/ proc / version

Linux version 2.6.18-374.3.1.el5.lve0.8.44 (mockbuild@buildfarm.cloudlinux.com)
(gcc version 4.1.2 20080704 (Red Hat 4.1.2-51)) #1 SMP Mon Oct 3 18:27:54 EEST 2
011

哪个宝石

/usr/bin/gem

哪个红宝石

/usr/bin/ruby

导轨

/usr/bin/rails

ruby​​ -v

ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]

rails -v

Rails 2.3.14

gem -v

1.8.15

找到捆绑

locate: can not open `/var/lib/mlocate/mlocate.db': Permission denied

伙计们请帮我基本的捆绑安装命令不起作用,所以我不知道什么待办事项,而且我也是新来的ruby on rails。

1 个答案:

答案 0 :(得分:1)

我解决了我的问题,主持人需要提供一些权限。

您总是需要在我们的主目录上安装gem,特别是在共享主机

bundle install --path /home/username/bundle