Error While installing Ruby

I have used this procedure.I m using Linux Mint.

I am getting the following error while installing.

E: Unable to locate package libreadline6-dev E: Unable to locate package libyaml-dev E: Unable to locate package libgdbm-dev E: Package 'ncurses-dev' has no installation candidate E: Package 'bison' has no installation candidate E: Package 'subversion' has no installation candidate E: Package 'libffi-dev' has no installation candidate 

5 Answers

I think you didn't installed the rvm requirements .
Install the requirements like libreadline6-dev , libyaml-dev , libgdbm-dev ,etc..
I think This will solve the Problem.

Install all these with the command

sudo apt-get install build-essential openssl libreadline6 libreadline6-dev \ curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 \ libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison \ subversion pkg-config 

Or, Just refer this link.

2

This instructions are old, following rvm installation instructions:

\curl -#L | bash -s stable --autolibs=4 --ruby 

It will:

  1. Download and install RVM
  2. Enable automatic requirements installation
  3. Install ruby including all required dependencies
4

which OS you using ?
if you using Ubuntu, then use the link :

if you are using windows
then problem while installing in some gem dependence like. 'libffi-dev', less-rail

than used other OS that very well for "Ruby on Rails" like Linux/Ubuntu

0

If you're using ubuntu, the copy and paste . You might need to hit enter at some point.

1

this worked for me.

WARNING: The following packages cannot be authenticated!

 apt-get clean # Remove cached packages cd /var/lib/apt mv lists lists.old # Backup mirror info mkdir -p lists/partial # Recreate directory structure apt-get clean apt-get update # Fetch mirror info 

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like