我有ubuntu 14.04 LTS。我正在使用rvm和ruby。 rvm list给出以下输出:
Warning! PATH is not properly set up, '/home/rujoota/.rvm/gems/jruby-1.7.19/bin' is not at first place,
usually this is caused by shell initialization files - check them for 'PATH=...' entries,
it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
to fix temporarily in this shell session run: 'rvm use jruby-1.7.19'.
rvm rubies
=* jruby-1.7.19 [ x86_64 ]
ruby-1.9.3-p551 [ x86_64 ]
ruby-2.2.1 [ x86_64 ]
=> - current
=* - current && default
*- default
我尝试了一切,但警告仍然出现。
当我尝试运行我的ruby应用程序时,出现以下错误:
Errno::EACCES: Permission denied - /myfolder
mkdir at org/jruby/RubyDir.java:452
fu_mkdir at /home/myhome/.rvm/rubies/jruby-1.7.19/lib/ruby/1.9/fileutils.rb:247
mkdir_p at /home/myhome/.rvm/rubies/jruby-1.7.19/lib/ruby/1.9/fileutils.rb:221
reverse_each at org/jruby/RubyArray.java:1693
mkdir_p at /home/myhome/.rvm/rubies/jruby-1.7.19/lib/ruby/1.9/fileutils.rb:219
each at org/jruby/RubyArray.java:1613
mkdir_p at /home/myhome/.rvm/rubies/jruby-1.7.19/lib/ruby/1.9/fileutils.rb:205
initialize at /home/myhome/myfolder/myproject
我可以完全访问myfolder和.rvm。仍然面临这个问题,有人可以帮助我吗?