I am trying to automate ruby installation through script in amazon ec2 ubuntu instance. Through script I can download, configure and make ruby from source but while trying to install ( make install ) it throws the following error.
I placed my ruby in /opt and gave opt permissions both owner and group ubuntu.
ruby-2.2.2/lib/fileutils.rb:1392:in `initialize': Is a directory @ rb_sysopen - /usr/local/bin/ruby (Errno::EISDIR)
from /opt/ruby-2.2.2/lib/fileutils.rb:1392:in `open'
from /opt/ruby-2.2.2/lib/fileutils.rb:1392:in `block in copy_file'
from /opt/ruby-2.2.2/lib/fileutils.rb:1391:in `open'
from /opt/ruby-2.2.2/lib/fileutils.rb:1391:in `copy_file'
from /opt/ruby-2.2.2/lib/fileutils.rb:485:in `copy_file'
from /opt/ruby-2.2.2/lib/fileutils.rb:863:in `block in install'
from /opt/ruby-2.2.2/lib/fileutils.rb:1570:in `block in fu_each_src_dest'
from /opt/ruby-2.2.2/lib/fileutils.rb:1584:in `fu_each_src_dest0'
from /opt/ruby-2.2.2/lib/fileutils.rb:1568:in `fu_each_src_dest'
from /opt/ruby-2.2.2/lib/fileutils.rb:859:in `install'
from ./tool/rbinstall.rb:158:in `install'
from ./tool/rbinstall.rb:334:in `block in <main>'
from ./tool/rbinstall.rb:757:in `call'
from ./tool/rbinstall.rb:757:in `block in <main>'
from ./tool/rbinstall.rb:754:in `each'
from ./tool/rbinstall.rb:754:in `<main>'
Is it possible to install ruby from normal ubuntu user or just root user ?
/optwill not work as you expect. The place to install is usually passed as options for configuration script../configure --helpwill show you some hints – at8eqeq3 Jun 11 '15 at 12:04