On CentOS, you need superuser privileges to install a software package. The simplest way to do this is to enter superuser mode using the su
command.
$ su - #
yes
as prompted.# yum install ruby
# yum install ruby-devel ruby-irb ruby-rdoc ruby-ri
# yum install rubygems
# gem install af
# gem install af
# gem install sinatra
# exit $
Always exit the superuser mode after installing the software. Doing routine tasks as superuser is likely to cause security and other problems.
You will need to re-enter the superuser mode to install Gems, including the AppFog command line tool.
You can use the sudo
tool to enter single commands as superuser. On CentOS this feature is not enabled by default. Refer to the system documentation for more information.
18.218.97.75