0

捆绑安装不适用于共享主机,但是当我运行以下命令时,我安装了 gem bundle

我试过了

捆绑安装

-jailshell: bundle: command not found

所以我尝试评估以下命令

宝石列表捆绑器 -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 已安装,但我不知道为什么它不起作用?

当我跑的时候

宝石环境

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/

回声 $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

unname -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

红宝石-v

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

导轨-v

Rails 2.3.14

宝石-v

1.8.15

定位捆绑

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

伙计们请帮助我基本的捆绑安装命令不起作用,所以我不知道要做什么,而且我是 ruby​​ on rails 的新手。

4

1 回答 1

1

我解决了我的问题,托管人员需要给予一些权限。

您总是需要在我们的主目录上安装 gems,尤其是在共享主机中

bundle install --path /home/username/bundle
于 2012-07-31T14:19:30.960 回答