Problem Ruby on rails with missing dependencies

2

I'm starting to work with Ruby on rails on ubuntu 14.04.

When doing $ bundle install I get the following error:

An error occurred while installing sqlite3 (1.3.11), and Bundler cannot
continue.
Make sure that 'gem install sqlite3 -v '1.3.11'' succeeds before bundling.

Searching the network I found that I should enter the following command:

$sudo apt-get install libsqlite3-dev

However, I see another error.

Leyendo lista de paquetes... Hecho
Creando árbol de dependencias       
Leyendo la información de estado... Hecho
No se pudieron instalar algunos paquetes. Esto puede significar que
usted pidió una situación imposible o, si está usando la distribución
inestable, que algunos paquetes necesarios no han sido creados o han
sido movidos fuera de Incoming.
La siguiente información puede ayudar a resolver la situación:

Los siguientes paquetes tienen dependencias incumplidas:
 libsqlite3-dev : Depende: libsqlite3-0 (= 3.8.2-1ubuntu2) pero 3.8.2-1ubuntu2.1 va a ser instalado
E: No se pudieron corregir los problemas, usted ha retenido paquetes rotos.
    
asked by Andrés 03.04.2016 в 02:51
source

3 answers

0

Looking at the English version of OS I see this solution:

link

They recommend installing the following first:

sudo apt-get install libxslt-dev libxml2-dev

Apparently you have the same problem so this could work for you.

    
answered by 05.04.2016 в 18:33
0

This error usually occurs when you try to create a database or load a rails application that has sqlite as the main database, but the operating system does not have the sqlite client installed previously.

You could use the following line to install it.

sudo apt-get install sqlite3 libsqlite3-dev 
    
answered by 29.04.2016 в 21:19
0

Make the following command gem install sqlite3 -v '1.3.11' in your console then perform bundle install

    
answered by 30.01.2017 в 18:05