8

I'm trying to install the latests versions of sqlite (> 3.7.5) under Centos 6.7.

So when I launch install command :

yum install sqlite 

I get the following Message :

Package sqlite-3.6.20-1.el6_7.2.x86_64 already installed and latest version
Nothing to do

Question : How can I install the latest version of sqlite in Centos6.7?

Thanks.

2 Answers 2

9

I tried this locally just now and it's work, now I have sqlite3.10.0 installed on centos6.7 :

  1. Download last version of sqlite from : http://www.sqlite.org/download.html.

    Or on the server using : wget http://www.sqlite.org/2016/sqlite-autoconf-3100000.tar.gz.

  2. unzip it : tar xvfz sqlite-autoconf-3100000.tar.gz

  3. cd sqlite-autoconf-3100000

  4. ./configure

  5. make

  6. make install

  7. last step if you're using sqlite3 in php, you should recompile it.

Hope this will help you.

10
  • @GioMac Why "NEVER"? I've done configure, make, make install on thousands of machines and never had a problem. Commented Sep 21, 2017 at 8:11
  • 1
    @jerzy congratulations on doing things not right on thousands of machines :) Commented Sep 22, 2017 at 9:27
  • @GioMac You didn't answer the question. Why "NEVER"? Commented Sep 24, 2017 at 0:34
  • @jerzy because you break dependencies. packages exist not for easy installations, they ensure, that dependencies cannot be broken. Commented Sep 26, 2017 at 7:19
  • @GioMac How does running configure, make, or make install break dependencies? Commented Sep 27, 2017 at 6:53
2

Correct way will be to rebuild rpm with never version, but best way is to have it as separate package to maintain compatibility with old version: https://serverfault.com/a/399036/102979

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.