0

捆綁安裝工作不共享主機沒有找到命令,但我安裝了寶石包,當我跑以下命令捆綁安裝-jailshell:在共享主機

我試圖

包:包安裝

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

捆綁安裝了,但我不知道爲什麼它不工作?

,當我跑

寶石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/ 

回聲$ 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 /版本

Linux version 2.6.18-374.3.1.el5.lve0.8.44 ([email protected]) 
(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的。

回答

1

我解決了我的問題,主持人需要給一些權限。

你總是需要安裝在我們的主目錄寶石尤其是在共享託管

bundle install --path /home/username/bundle