我正在尝试将passenger / nginx安装到ubuntu 12.10上.当我尝试运行rvmsudo passenger-install-nginx-module时,我得到:/usr/bin/env: passenger-install-nginx-module: No such file or directory$PATH结果bash: /u...
我正在尝试将passenger / nginx安装到ubuntu 12.10上.
当我尝试运行rvmsudo passenger-install-nginx-module时,我得到:
/usr/bin/env: passenger-install-nginx-module: No such file or directory
$PATH结果
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
/usr/local/games:/home/deploy/.rvm/bin:/home/deploy/.rvm/bin: No such file or directory
RVM信息:
ruby-2.0.0-p247:
system:
uname: "Linux rails 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:31:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux"
system: "ubuntu/12.10/x86_64"
bash: "/bin/bash => GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu)"
zsh: " => not installed"
rvm:
version: "rvm 1.22.3 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]"
updated: "22 hours 56 minutes 7 seconds ago"
path: "/home/deploy/.rvm"
ruby:
interpreter: "ruby"
version: "2.0.0p247"
date: "2013-06-27"
platform: "x86_64-linux"
patchlevel: "2013-06-27 revision 41674"
full_version: "ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]"
homes:
gem: "/home/deploy/.rvm/gems/ruby-2.0.0-p247"
ruby: "/home/deploy/.rvm/rubies/ruby-2.0.0-p247"
binaries:
ruby: "/home/deploy/.rvm/rubies/ruby-2.0.0-p247/bin/ruby"
irb: "/home/deploy/.rvm/rubies/ruby-2.0.0-p247/bin/irb"
gem: "/home/deploy/.rvm/rubies/ruby-2.0.0-p247/bin/gem"
rake: "/home/deploy/.rvm/gems/ruby-2.0.0-p247@global/bin/rake"
environment:
PATH: "/home/deploy/.rvm/gems/ruby-2.0.0-p247/bin:/home/deploy/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/deploy/.rvm/rubies/ruby-2.0.0-p247/bin:/home/deploy/.rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
GEM_HOME: "/home/deploy/.rvm/gems/ruby-2.0.0-p247"
GEM_PATH: "/home/deploy/.rvm/gems/ruby-2.0.0-p247:/home/deploy/.rvm/gems/ruby-2.0.0-p247@global"
MY_RUBY_HOME: "/home/deploy/.rvm/rubies/ruby-2.0.0-p247"
IRBRC: "/home/deploy/.rvm/rubies/ruby-2.0.0-p247/.irbrc"
RUBYOPT: ""
gemset: ""
此外,如果我尝试运行宝石安装乘客
bash: /usr/bin/gem: /usr/bin/ruby1.9.1: bad interpreter: No such file or directory
我认为这是由于我在系统范围内安装了不正确的RVM.我去安装了RVM的用户安装,并认为我已经正确删除了系统范围的RVM安装,但看起来它仍然指向/usr/bin/ruby1.9.1,它已不再存在.
解决方法:
看完这个帖子后:
Passenger installation with nginx fails
我必须运行安装程序的完整路径
rvmsudo ~/.rvm/gems/ruby-2.0.0-p247/gems/passenger-4.0.14/bin/passenger-install-nginx-module
沃梦达教程
本文标题为:ruby-on-rails – rvmsudo passenger-install-nginx-module:没有这样的文件或目录
基础教程推荐
猜你喜欢
- R语言的一个加法函数使用介绍 2022-11-14
- R语言入门使用RStudio制作包含Rcpp代码的R包 2022-12-05
- 汇编语言:比较指令、跳转指令、JCC的使用 2023-07-06
- 深入探究Golang中log标准库的使用 2023-07-25
- R语言因子型数值转数值型的操作 2022-11-23
- 详解swift中xcworkspace多项目管理 2023-07-05
- 如何将mysql数据库文件连接到Rails应用程序上的本地ruby 2023-09-21
- 解决R语言中install_github中无法安装遇到的问题 2022-11-26
- R语言向量下标和子集的使用 2022-12-10
- ruby – 如何使用Nginx,Passenger,Sinatra创建多个位置 2023-09-20
