I am trying to install gitlab
. I installed postgresql
and I checked out the source. When I try to install by this command
我正在尝试安装gitlab。我安装了postgresql并检查了源代码。当我尝试通过此命令安装时
sudo -u git -H./bin/install
I am getting
我正进入(状态
usr/bin/env ruby no such file or directory error
I have added ruby bin to my classpath. Below is the content of environement file under /env/
我已将ruby bin添加到我的类路径中。以下是/ env /下environement文件的内容
PATH=/usr/local/rvm/rubies/ruby-2.1.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/oraclebase/app/oracle/product/12.1.0/dbhome_1/bin
ORACLE_HOME=/oraclebase/app/oracle/product/12.1.0/dbhome_1
ORACLE_SID=orcl
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64
ruby=/usr/local/rvm/rubies/ruby-2.1.1/bin
I installed rmv as root. So the rmv installation directory is usr/local/rmv If I check rmv list it shows ruby2.1.1 as default.
我以root身份安装了rmv。所以rmv安装目录是usr / local / rmv如果我检查rmv列表它默认显示ruby2.1.1。
1 个解决方案
#1
0
it seems you haven't installed ruby correctly.
好像你没有正确安装ruby。
so first remove rvm
所以先删除rvm
$ rvm implode
Are you SURE you wish for rvm to implode?
This will recursively remove /Users/gaurish/.rvm and other rvm traces?
(anything other than 'yes' will cancel) > yes
Removing rvm-shipped binaries (rvm-prompt, rvm, rvm-sudo rvm-shell and rvm-auto-ruby)
Removing rvm wrappers in /Users/gaurish/.rvm/bin
Hai! Removing /Users/gaurish/.rvm
next, install ruby: try are couple of options to install ruby
接下来,安装ruby:尝试几个选项来安装ruby
per user using rvm:$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
System-wide global
you can compile yourself from source:
你可以从源代码编译自己:
$ wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz
$ tar xf ruby-2.1.1.tar.gz
$ cd ruby-2.1.1/
$ ./configure --disable-install-doc
$ make && make install
if everything went well, you should have a system-wide ruby available:
如果一切顺利,你应该有一个系统范围的红宝石:
$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
For more see installing ruby from source
有关更多信息,请参阅从源代码安装ruby
#1
0
it seems you haven't installed ruby correctly.
好像你没有正确安装ruby。
so first remove rvm
所以先删除rvm
$ rvm implode
Are you SURE you wish for rvm to implode?
This will recursively remove /Users/gaurish/.rvm and other rvm traces?
(anything other than 'yes' will cancel) > yes
Removing rvm-shipped binaries (rvm-prompt, rvm, rvm-sudo rvm-shell and rvm-auto-ruby)
Removing rvm wrappers in /Users/gaurish/.rvm/bin
Hai! Removing /Users/gaurish/.rvm
next, install ruby: try are couple of options to install ruby
接下来,安装ruby:尝试几个选项来安装ruby
per user using rvm:$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
System-wide global
you can compile yourself from source:
你可以从源代码编译自己:
$ wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.1.tar.gz
$ tar xf ruby-2.1.1.tar.gz
$ cd ruby-2.1.1/
$ ./configure --disable-install-doc
$ make && make install
if everything went well, you should have a system-wide ruby available:
如果一切顺利,你应该有一个系统范围的红宝石:
$ ruby -v
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-linux]
For more see installing ruby from source
有关更多信息,请参阅从源代码安装ruby