I try to open a gem using the following command:
我尝试使用以下命令打开一个gem:
$bundle open jquery-rails
but it gives me the following error:
但它给了我以下的错误:
To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR
So,I have search a little bit at read that I should open my .bashrc file and set the BUNDLER_EDITOR variable. I did the following things:
因此,我在read中搜索了一些,我应该打开.bashrc文件并设置BUNDLER_EDITOR变量。我做了如下的事情:
sudo gedit ~/.bashrc
and at end of the file entered the line above:
在文件的末尾输入上面的行:
export BUNDLER_EDITOR=aptana
In the example they are using vim but since I am using aptana studio 3 I want to use it.
在本例中,他们使用的是vim,但是由于我使用的是aptana studio 3,所以我希望使用它。
Anyway, it give me the following error:
不管怎样,它给了我以下的错误:
Could not run 'aptana /home/gotqn/.rvm/gems/ruby-1.9.3-p286/gems/jquery-rails-2.1.3'
不能运行“aptana /home/gotqn/.rvm/gems/ruby-1.9.3-p286/gems/jquery-rails-2.1.3”
What I am doing wrong?
我做错了什么?
1 个解决方案
#1
2
I think you need to set $EDITOR
or $BUNDLER_EDITOR
in .profile
file.
我认为您需要在.profile文件中设置$EDITOR或$BUNDLER_EDITOR。
You can set it like this:
可以这样设置:
export BUNDLER_EDITOR=aptana
Hope this works for you!
希望这对你有用!
#1
2
I think you need to set $EDITOR
or $BUNDLER_EDITOR
in .profile
file.
我认为您需要在.profile文件中设置$EDITOR或$BUNDLER_EDITOR。
You can set it like this:
可以这样设置:
export BUNDLER_EDITOR=aptana
Hope this works for you!
希望这对你有用!